deepline 0.3.488 → 0.3.490

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 (139) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +7 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
  5. package/dist/cli/auth-AW34RGV5.js +43 -0
  6. package/dist/cli/{auth-3BTWD5NT.mjs → auth-RL6LOZGC.mjs} +5 -5
  7. package/dist/cli/{billing-QROEPF5K.mjs → billing-33THO76F.mjs} +6 -6
  8. package/dist/cli/{billing-CHCBRT2F.js → billing-LIDDSOSY.js} +79 -79
  9. package/dist/cli/{chunk-C5M43H4F.mjs → chunk-27IBWHR5.mjs} +4 -4
  10. package/dist/cli/{chunk-NSAI3D4H.mjs → chunk-2HYJU4LJ.mjs} +1 -1
  11. package/dist/cli/{chunk-TZSRQYKH.mjs → chunk-3M5VPIRL.mjs} +2 -2
  12. package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
  13. package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
  14. package/dist/cli/{chunk-XGQBBMSP.js → chunk-63TNO23X.js} +15 -15
  15. package/dist/cli/{chunk-SV2VOJF4.js → chunk-6TTPAGNX.js} +7 -7
  16. package/dist/cli/{chunk-HDUDLOGI.mjs → chunk-7W53Y4VH.mjs} +5 -5
  17. package/dist/cli/{chunk-KQKPDXIZ.mjs → chunk-A3D677RX.mjs} +1 -1
  18. package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
  19. package/dist/cli/{chunk-ZYJBIZLV.js → chunk-B7MPY7WH.js} +6 -6
  20. package/dist/cli/{chunk-XMBIESQ7.mjs → chunk-BL5Q5JY7.mjs} +5 -5
  21. package/dist/cli/{chunk-3T6HNVZN.mjs → chunk-CB7IFKXN.mjs} +2 -2
  22. package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
  23. package/dist/cli/{chunk-6RZ2UVFW.mjs → chunk-CSSOP7XG.mjs} +2 -2
  24. package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
  25. package/dist/cli/{chunk-4BQEGVNC.js → chunk-E26477MJ.js} +7 -7
  26. package/dist/cli/{chunk-WER5FPHI.js → chunk-EPQZ42PY.js} +6 -1
  27. package/dist/cli/{chunk-TMIWNHL4.js → chunk-FDYCUA7A.js} +16 -16
  28. package/dist/cli/{chunk-SE252VCN.js → chunk-FPYESYBO.js} +4 -4
  29. package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
  30. package/dist/cli/{chunk-MBHPAZEA.js → chunk-HHGAY2A4.js} +53 -53
  31. package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
  32. package/dist/cli/{chunk-P2IEBDEG.js → chunk-IFGBL3US.js} +7 -7
  33. package/dist/cli/{chunk-GXZK35XL.mjs → chunk-J5HMAZ34.mjs} +2 -2
  34. package/dist/cli/{chunk-N7LKHN5C.mjs → chunk-JC2M6XG2.mjs} +1 -1
  35. package/dist/cli/{chunk-CVBMI2HY.mjs → chunk-JSYCPTG6.mjs} +3 -3
  36. package/dist/cli/{chunk-QT2SPITP.mjs → chunk-JTYKW3UL.mjs} +2 -2
  37. package/dist/cli/{chunk-73H5KG5T.js → chunk-L7QSZAF6.js} +9 -9
  38. package/dist/cli/{chunk-2LNTFODA.mjs → chunk-LQIKW55V.mjs} +2 -2
  39. package/dist/cli/{chunk-KI74RLCP.js → chunk-LZ37B62K.js} +7 -7
  40. package/dist/cli/{chunk-TJRGYEDA.mjs → chunk-MBQZMHE6.mjs} +18 -4
  41. package/dist/cli/{chunk-F4W4J6BT.mjs → chunk-MDKAPUN2.mjs} +2 -2
  42. package/dist/cli/{chunk-IS24BRFV.mjs → chunk-MEYQOZPF.mjs} +1 -1
  43. package/dist/cli/{chunk-EMPGZXFN.mjs → chunk-NRM5OWH2.mjs} +6 -6
  44. package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
  45. package/dist/cli/{chunk-UUKMZK23.mjs → chunk-OFCP66VS.mjs} +2 -2
  46. package/dist/cli/{chunk-QRBDW3X6.mjs → chunk-PIENQTDE.mjs} +6 -1
  47. package/dist/cli/{chunk-4BVJ6YSN.js → chunk-PVMN4OE2.js} +5 -5
  48. package/dist/cli/{chunk-ZJVQXD7M.js → chunk-QC6QUFKY.js} +5 -5
  49. package/dist/cli/{chunk-AYJVYXES.mjs → chunk-QWJZSPCV.mjs} +12 -12
  50. package/dist/cli/{chunk-LBFU3VRY.js → chunk-QZPJWFGD.js} +26 -26
  51. package/dist/cli/{chunk-6JTJWIXZ.js → chunk-SGG3TERP.js} +3 -3
  52. package/dist/cli/{chunk-KV5MCYQE.js → chunk-TCBYQX5N.js} +52 -38
  53. package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
  54. package/dist/cli/{chunk-IXQQWEYK.mjs → chunk-TVZJ6XWM.mjs} +1 -1
  55. package/dist/cli/{chunk-G52LFTXC.js → chunk-UQXHBCHU.js} +2 -2
  56. package/dist/cli/{chunk-OWYXDSU5.js → chunk-UTKNSD6T.js} +21 -21
  57. package/dist/cli/{chunk-HO4PLJHS.mjs → chunk-V47SUOAE.mjs} +4 -4
  58. package/dist/cli/{chunk-GBQLNEB7.js → chunk-WNVZV6VK.js} +53 -53
  59. package/dist/cli/{chunk-2OHR2B5U.js → chunk-XSGJKXMP.js} +2 -2
  60. package/dist/cli/{chunk-QWEQV3R3.js → chunk-Y2KHSQEF.js} +8 -8
  61. package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
  62. package/dist/cli/{chunk-QHMEOHN4.js → chunk-YPUDIEZX.js} +261 -261
  63. package/dist/cli/{chunk-BU2MZXN6.js → chunk-YYN2O43C.js} +3 -3
  64. package/dist/cli/{chunk-TKK4TR7B.mjs → chunk-Z7W6VJFN.mjs} +1 -1
  65. package/dist/cli/command-docs.js +2 -2
  66. package/dist/cli/command-docs.mjs +1 -1
  67. package/dist/cli/{csv-WQ5IPBPJ.js → csv-PLJNQPLE.js} +13 -13
  68. package/dist/cli/{csv-74EFMI3L.mjs → csv-TELSH4ND.mjs} +4 -4
  69. package/dist/cli/{db-JMTHP7J2.mjs → db-GISAU665.mjs} +6 -6
  70. package/dist/cli/{db-LUU3EFBM.js → db-QDJ6GWF5.js} +27 -27
  71. package/dist/cli/{describe-PKBLERG6.mjs → describe-F4K54VXB.mjs} +21 -20
  72. package/dist/cli/describe-R6NVISAS.js +50 -0
  73. package/dist/cli/describe-core.js +4 -4
  74. package/dist/cli/describe-core.mjs +3 -3
  75. package/dist/cli/{executions-SM32REFN.mjs → executions-3QE7MRBG.mjs} +6 -6
  76. package/dist/cli/{executions-LVMXG5GY.js → executions-VKUTKQNN.js} +8 -8
  77. package/dist/cli/{feedback-AECGZDEG.js → feedback-HH5AUYLA.js} +8 -8
  78. package/dist/cli/{feedback-V7PEANAR.mjs → feedback-JU7PJGDL.mjs} +4 -4
  79. package/dist/cli/getting-started.d.mts +17 -2
  80. package/dist/cli/getting-started.d.ts +17 -2
  81. package/dist/cli/getting-started.js +8 -2
  82. package/dist/cli/getting-started.mjs +9 -3
  83. package/dist/cli/{git-BDX3U6NA.mjs → git-ACXH7K7D.mjs} +5 -5
  84. package/dist/cli/git-CXRU4CRW.js +25 -0
  85. package/dist/cli/index.js +142 -141
  86. package/dist/cli/index.mjs +42 -41
  87. package/dist/cli/{legacy-noops-W6E7TXE4.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
  88. package/dist/cli/{legacy-noops-JRGBSX4O.js → legacy-noops-NRPYJZOP.js} +8 -8
  89. package/dist/cli/{monitors-JT6QZITH.js → monitors-4SKMAAMR.js} +91 -91
  90. package/dist/cli/{monitors-RKWUYNER.mjs → monitors-PMQUOIOI.mjs} +7 -7
  91. package/dist/cli/{org-PALGDO5U.js → org-WJM7X6WB.js} +72 -72
  92. package/dist/cli/{org-5XOHJY6O.mjs → org-XNT3W6OU.mjs} +6 -6
  93. package/dist/cli/{pages-UKICE2RA.js → pages-WXY4GGZG.js} +17 -17
  94. package/dist/cli/{pages-Q5MG4J6F.mjs → pages-Y3JKBS4B.mjs} +6 -6
  95. package/dist/cli/{play-MR324ZTD.js → play-NKSRPIAV.js} +321 -321
  96. package/dist/cli/{play-PY5AT3JQ.mjs → play-NPWWAQYK.mjs} +18 -18
  97. package/dist/cli/{providers-V3YMXJFB.mjs → providers-CUIKFE6F.mjs} +6 -6
  98. package/dist/cli/{providers-MGBLIMRF.js → providers-VNPJHXK5.js} +9 -9
  99. package/dist/cli/{quickstart-LYQ5N6VI.js → quickstart-6OTS2HDR.js} +13 -13
  100. package/dist/cli/{quickstart-MMETU4RG.mjs → quickstart-PJYPKFZI.mjs} +5 -5
  101. package/dist/cli/{run-A5CNTDYQ.js → run-2DLJBYFC.js} +48 -152
  102. package/dist/cli/{run-PZ7CWOJJ.mjs → run-AGX3EUK4.mjs} +33 -137
  103. package/dist/cli/{search-IRDHHP7N.mjs → search-DVIEJ2UQ.mjs} +7 -7
  104. package/dist/cli/search-Y7VFEFJJ.js +32 -0
  105. package/dist/cli/{search-output-N7RQNWBW.js → search-output-PFLNDCA7.js} +6 -6
  106. package/dist/cli/{search-output-7UAKSD7H.mjs → search-output-TXSIPSPS.mjs} +4 -4
  107. package/dist/cli/{secrets-XJGQ3BLJ.js → secrets-O5OQTFVD.js} +15 -15
  108. package/dist/cli/{secrets-XN4UDYNN.mjs → secrets-OAGXFXEX.mjs} +6 -6
  109. package/dist/cli/{sessions-324MFEFP.mjs → sessions-GBR5PGB6.mjs} +5 -5
  110. package/dist/cli/{sessions-4UUVDBAO.js → sessions-WT7P3F73.js} +6 -6
  111. package/dist/cli/{settings-4EZEUQOS.mjs → settings-KGNBIFOU.mjs} +12 -11
  112. package/dist/cli/{settings-REBKKLBF.js → settings-U7UNDUDB.js} +79 -78
  113. package/dist/cli/{setup-ELPVMUCK.js → setup-4MZNDFKM.js} +60 -55
  114. package/dist/cli/{setup-G3VQ5NCJ.mjs → setup-PYWSU4YM.mjs} +17 -12
  115. package/dist/cli/{skills-RLUDQJWB.mjs → skills-7Y6OBM7Z.mjs} +10 -7
  116. package/dist/cli/skills-BQC2323O.js +36 -0
  117. package/dist/cli/tools-732SZ4KV.js +57 -0
  118. package/dist/cli/{tools-MRAFK3MJ.mjs → tools-O7L435CR.mjs} +19 -18
  119. package/dist/cli/update-PCYIUORM.js +34 -0
  120. package/dist/cli/{update-WRTYTP3Y.mjs → update-SPHIBY5L.mjs} +10 -9
  121. package/dist/cli/{workflow-LHS32WIT.js → workflow-GTDKPIEV.js} +17 -17
  122. package/dist/cli/{workflow-ALJ3HLW4.mjs → workflow-ZRYO5J3K.mjs} +7 -7
  123. package/dist/index.js +9 -9
  124. package/dist/index.mjs +6 -6
  125. package/dist/install-integrity.json +108 -108
  126. package/dist/release.d.mts +5 -1
  127. package/dist/release.d.ts +5 -1
  128. package/dist/release.js +2 -2
  129. package/dist/release.mjs +1 -1
  130. package/dist/server.js +5 -5
  131. package/dist/server.mjs +3 -3
  132. package/package.json +1 -1
  133. package/dist/cli/auth-F3OYGJ7T.js +0 -43
  134. package/dist/cli/describe-35UK3DNO.js +0 -49
  135. package/dist/cli/git-3KBELBUI.js +0 -25
  136. package/dist/cli/search-4SG3UMIQ.js +0 -32
  137. package/dist/cli/skills-X5FY5KJM.js +0 -33
  138. package/dist/cli/tools-PCRPD5XD.js +0 -56
  139. package/dist/cli/update-Q4ND4F7E.js +0 -33
@@ -1,53 +1,54 @@
1
1
  import {
2
2
  looksLikeFilePath,
3
3
  resolvePlayRunCliOptions
4
- } from "./chunk-F4W4J6BT.mjs";
4
+ } from "./chunk-MDKAPUN2.mjs";
5
5
  import {
6
6
  findNamed,
7
7
  nothingNamed
8
- } from "./chunk-EMPGZXFN.mjs";
9
- import "./chunk-AYJVYXES.mjs";
8
+ } from "./chunk-NRM5OWH2.mjs";
9
+ import "./chunk-QWJZSPCV.mjs";
10
10
  import {
11
11
  openLogDestination,
12
12
  preflightExecutionOutput,
13
13
  writeExecutionOutput
14
- } from "./chunk-6RZ2UVFW.mjs";
15
- import "./chunk-HO4PLJHS.mjs";
14
+ } from "./chunk-CSSOP7XG.mjs";
15
+ import "./chunk-V47SUOAE.mjs";
16
16
  import "./chunk-5AEDYVB6.mjs";
17
17
  import {
18
18
  DEEPLINE_NAMESPACE
19
- } from "./chunk-J7EENGKJ.mjs";
20
- import "./chunk-INW22YP7.mjs";
21
- import "./chunk-JVHOS3K3.mjs";
19
+ } from "./chunk-CGDUFVNE.mjs";
20
+ import "./chunk-FTXIJTV2.mjs";
21
+ import "./chunk-DEJIN4DF.mjs";
22
22
  import "./chunk-OVDNJAJN.mjs";
23
23
  import "./chunk-XRDXNAAY.mjs";
24
24
  import "./chunk-F6QV42MC.mjs";
25
25
  import "./chunk-FR2ILQ4G.mjs";
26
26
  import "./chunk-FIVKWNMT.mjs";
27
- import "./chunk-TZSRQYKH.mjs";
27
+ import "./chunk-3M5VPIRL.mjs";
28
28
  import "./chunk-3RGWTKK3.mjs";
29
- import "./chunk-IS24BRFV.mjs";
29
+ import "./chunk-MEYQOZPF.mjs";
30
30
  import "./chunk-L2VKAASU.mjs";
31
31
  import "./chunk-ONONSV2Q.mjs";
32
32
  import "./chunk-S3A4IXBQ.mjs";
33
33
  import "./chunk-UBKA33KY.mjs";
34
- import "./chunk-HDUDLOGI.mjs";
35
- import "./chunk-NSAI3D4H.mjs";
36
- import "./chunk-XMBIESQ7.mjs";
37
- import "./chunk-IXQQWEYK.mjs";
38
- import "./chunk-TJRGYEDA.mjs";
39
- import "./chunk-C5M43H4F.mjs";
34
+ import "./chunk-7W53Y4VH.mjs";
35
+ import "./chunk-2HYJU4LJ.mjs";
36
+ import "./chunk-BL5Q5JY7.mjs";
37
+ import "./chunk-TVZJ6XWM.mjs";
38
+ import "./chunk-MBQZMHE6.mjs";
39
+ import "./chunk-27IBWHR5.mjs";
40
40
  import {
41
41
  createCliProgress
42
- } from "./chunk-TKK4TR7B.mjs";
43
- import "./chunk-UUKMZK23.mjs";
44
- import "./chunk-N7LKHN5C.mjs";
45
- import "./chunk-KQKPDXIZ.mjs";
42
+ } from "./chunk-Z7W6VJFN.mjs";
43
+ import "./chunk-OFCP66VS.mjs";
44
+ import "./chunk-JC2M6XG2.mjs";
45
+ import "./chunk-A3D677RX.mjs";
46
46
  import "./chunk-4QF2K7TM.mjs";
47
47
  import "./chunk-DLIRSHV6.mjs";
48
48
  import "./chunk-HBL4PM5Q.mjs";
49
- import "./chunk-QRBDW3X6.mjs";
49
+ import "./chunk-PIENQTDE.mjs";
50
50
  import "./chunk-WZYKRD7T.mjs";
51
+ import "./chunk-TKLDKIJU.mjs";
51
52
  import "./chunk-KRD6H754.mjs";
52
53
 
53
54
  // src/cli/commands/run.ts
@@ -115,7 +116,7 @@ async function runAnything(name, options) {
115
116
  throw new Error("--max-credits takes a number of credits above 0.");
116
117
  }
117
118
  if (options.timeout !== void 0 && options.timeout !== "0") {
118
- const { parseToolExecuteTimeout } = await import("./tools-MRAFK3MJ.mjs");
119
+ const { parseToolExecuteTimeout } = await import("./tools-O7L435CR.mjs");
119
120
  timeoutMs = parseToolExecuteTimeout(options.timeout);
120
121
  }
121
122
  } catch (error) {
@@ -136,7 +137,7 @@ async function runAnything(name, options) {
136
137
  if (name !== void 0) {
137
138
  return refuse("Use a name or -e, not both.", output);
138
139
  }
139
- const { writeInlinePlay } = await import("./play-PY5AT3JQ.mjs");
140
+ const { writeInlinePlay } = await import("./play-NPWWAQYK.mjs");
140
141
  let file;
141
142
  try {
142
143
  file = writeInlinePlay(options.eval);
@@ -196,7 +197,7 @@ async function runAnything(name, options) {
196
197
  if (runner.via === "play") {
197
198
  return runPlay(runner.reference, { ...play, revision });
198
199
  }
199
- const { executeToolForReceipt } = await import("./tools-MRAFK3MJ.mjs");
200
+ const { executeToolForReceipt } = await import("./tools-O7L435CR.mjs");
200
201
  return executeToolForReceipt({
201
202
  toolId: runner.toolId,
202
203
  params: input,
@@ -227,7 +228,7 @@ function dryRun(described, input, output) {
227
228
  return missing.length ? 2 : 0;
228
229
  }
229
230
  async function runPlay(reference, play) {
230
- const { handlePlayRun, writePlayRunReceipt } = await import("./play-PY5AT3JQ.mjs");
231
+ const { handlePlayRun, writePlayRunReceipt } = await import("./play-NPWWAQYK.mjs");
231
232
  const { output, options, revision } = play;
232
233
  if (options.dryRun) {
233
234
  return handlePlayRun(
@@ -320,122 +321,17 @@ async function runPlay(reference, play) {
320
321
  }
321
322
  }
322
323
  function registerRunCommand(program) {
323
- program.command("run [name]").description(
324
- "Run anything search returns: a tool, a play, or a local play file."
325
- ).option(
324
+ program.command("run [name]").description("Run a tool, a play, a play file, or inline code.").option(
326
325
  "-e, --eval <code>",
327
- "Run code as the body of a play function, in place of a name"
328
- ).option("--input <json>", "Input as a JSON object").option(
329
- "--input-file <path>",
330
- "Input as a JSON object read from a file; - reads stdin"
331
- ).option(
332
- "--json-out <path>",
333
- "Save the whole result as JSON to this new file; - writes it to stdout"
334
- ).option(
326
+ "Code to run as a play body, instead of a name"
327
+ ).option("--input <json>", "Input as a JSON object").option("--input-file <path>", "Input from a JSON file; - reads stdin").option("--json-out <path>", "Save the result as JSON to this new file").option(
335
328
  "--csv-out <[list=]path>",
336
- "Save a row list as CSV to this new file; [list=] picks which; repeatable",
329
+ "Save rows as CSV to this new file; repeat for more lists",
337
330
  (value, previous = []) => [...previous, value]
338
- ).option(
339
- "--fields <paths>",
340
- "Only these comma-separated dotted paths, in the receipt and the CSV"
341
- ).option("--full", "Show every field's type and first value").option("--lines <n>", "Show up to this many lines of values (default 32)").option("--json", "Print the receipt as JSON instead of text").option(
342
- "--receipt-out <path>",
343
- "Also save the JSON receipt to this new file"
344
- ).option(
345
- "--dry-run",
346
- "Check the input against the contract and show the price; nothing is sent"
347
- ).option(
348
- "--fresh",
349
- "Call providers again instead of reusing results saved by earlier runs"
350
- ).option(
351
- "--max-credits <credits>",
352
- "Stop a play run that would spend more Deepline credits than this"
353
- ).option(
331
+ ).option("--fields <paths>", "Only these dotted paths, comma-separated").option("--dry-run", "Check the input and show the price; runs nothing").option(
354
332
  "--timeout <duration>",
355
- "Stop waiting after this long (90s, 10m, 1h); 0 returns a play at once"
356
- ).option(
357
- "--logs-out <path>",
358
- "Write a play's live logs to this new file; - writes them to stdout"
359
- ).addHelpText(
360
- "after",
361
- `
362
- Name:
363
- Any id deepline search returns: a tool id, a play name or reference, or a
364
- local play file. It resolves as deepline describe resolves it.
365
- deepline/<name> the Deepline tool or play, when a play your workspace
366
- created has the same name (that one runs by default)
367
- <play>@latest the newest saved revision; <play>@<revision-id> one
368
- revision. The live revision runs by default.
369
- -e '<code>' in place of a name: the code is the body of a play
370
- function, input holds --input, and deepline is the
371
- runtime, as in a .play.ts file in this directory.
372
-
373
- Input:
374
- One JSON object whose fields are the inputs deepline describe lists.
375
- A play that reads a CSV takes the path as a field: '{"csv":"leads.csv"}'.
376
-
377
- Output:
378
- The data is always saved to a file: a new temporary one unless --json-out
379
- or --csv-out names one. Output paths must not exist yet. A tool's data is
380
- the provider's response; a play's is its result, each dataset handle
381
- replaced by that dataset's rows.
382
- The receipt says what ran, how it ended and what it cost, where the data
383
- is, and what came back, within 32 lines (--lines changes it):
384
- default the tool's declared outputs, else the data itself, read
385
- breadth-first: every top-level field before nested ones
386
- --fields only the paths you name; a path through a list applies to
387
- each item, so people.email is every person's email
388
- --full every field's type and first value
389
- --csv-out writes the row list it names, else the one --fields reaches
390
- into, else the tool's declared row list, else the largest:
391
- --csv-out people=people.csv. Repeat it for more lists. --fields under a
392
- list's path choose its columns; company.domain becomes its own column.
393
- The full JSON Schema goes to a file the receipt names. --json prints the
394
- receipt as JSON; --receipt-out also saves it to a file.
395
-
396
- Where things are printed:
397
- stdout the receipt; or the data, under --json-out - or --csv-out -
398
- stderr progress, the live logs' path, and the receipt when the data
399
- is on stdout
400
- Only one of --json-out, --csv-out and --logs-out may use -.
401
-
402
- Waiting:
403
- run waits for the result. --timeout stops waiting, not the work: a play
404
- keeps running and the receipt says how to check on it. --timeout 0
405
- returns a play's run id at once. A play's live logs go to a temporary
406
- file named on stderr when it starts; --logs-out chooses the file.
407
-
408
- Reuse:
409
- A tool call is saved under a retry key before it is sent. Running the same
410
- call again within the hour, after an interruption, replays it instead of
411
- paying twice. Plays reuse the results of calls they made before.
412
- --fresh calls the providers again.
413
-
414
- Cost:
415
- --dry-run shows the price first. --max-credits caps one play run, in
416
- place of the play's own billing.maxCreditsPerRun: a run that reaches it
417
- stops, and its receipt says so. A tool call has one price, so the cap
418
- applies to plays.
419
-
420
- Follow-up:
421
- deepline runs get <id> reads a run, or a tool call for 24 hours, again
422
- by the id its receipt gave.
423
-
424
- Exit codes:
425
- 0 completed
426
- 1 the tool or play failed, or is still running after --timeout
427
- 2 nothing ran: bad input or flags, an existing output file, an unknown
428
- name, a monitor type, or a --dry-run that found missing input
429
-
430
- Examples:
431
- deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
432
- deepline run person-linkedin-to-email --input-file input.json --dry-run
433
- deepline run my.play.ts --input '{"csv":"leads.csv"}' --csv-out out.csv
434
- deepline run company-search --input-file - --json-out - < input.json
435
- deepline run my-play@latest --timeout 0
436
- deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
437
- `
438
- ).action(async (name, options) => {
333
+ "Stop waiting after 90s, 10m, 1h; 0 returns at once"
334
+ ).option("--max-credits <credits>", "Stop a play run that would spend more").option("--fresh", "Call providers again instead of reusing saved results").option("--json", "Print the receipt as JSON").option("--full", "Show every field of the result").option("--lines <n>", "Lines of values in the receipt (default 32)").option("--receipt-out <path>", "Also save the receipt as JSON").option("--logs-out <path>", "Save a play's live logs here; - prints them").action(async (name, options) => {
439
335
  process.exitCode = await runAnything(name, options);
440
336
  });
441
337
  }
@@ -5,21 +5,21 @@ import {
5
5
  pointAtDescribe,
6
6
  registerDeprecatedSearchCommand,
7
7
  registerSearchCommand
8
- } from "./chunk-HO4PLJHS.mjs";
8
+ } from "./chunk-V47SUOAE.mjs";
9
9
  import "./chunk-5AEDYVB6.mjs";
10
- import "./chunk-TZSRQYKH.mjs";
11
- import "./chunk-IS24BRFV.mjs";
10
+ import "./chunk-3M5VPIRL.mjs";
11
+ import "./chunk-MEYQOZPF.mjs";
12
12
  import "./chunk-L2VKAASU.mjs";
13
13
  import "./chunk-ONONSV2Q.mjs";
14
14
  import "./chunk-S3A4IXBQ.mjs";
15
15
  import "./chunk-UBKA33KY.mjs";
16
- import "./chunk-UUKMZK23.mjs";
17
- import "./chunk-N7LKHN5C.mjs";
18
- import "./chunk-KQKPDXIZ.mjs";
16
+ import "./chunk-OFCP66VS.mjs";
17
+ import "./chunk-JC2M6XG2.mjs";
18
+ import "./chunk-A3D677RX.mjs";
19
19
  import "./chunk-4QF2K7TM.mjs";
20
20
  import "./chunk-DLIRSHV6.mjs";
21
21
  import "./chunk-HBL4PM5Q.mjs";
22
- import "./chunk-QRBDW3X6.mjs";
22
+ import "./chunk-PIENQTDE.mjs";
23
23
  import "./chunk-WZYKRD7T.mjs";
24
24
  import "./chunk-KRD6H754.mjs";
25
25
  export {
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _chunkIFGBL3USjs = require('./chunk-IFGBL3US.js');
9
+ require('./chunk-D3BCSAN7.js');
10
+ require('./chunk-PVMN4OE2.js');
11
+ require('./chunk-6TTPAGNX.js');
12
+ require('./chunk-E4CABWXL.js');
13
+ require('./chunk-AUQQVDAB.js');
14
+ require('./chunk-NMU3VR5U.js');
15
+ require('./chunk-XDVT3GOM.js');
16
+ require('./chunk-E26477MJ.js');
17
+ require('./chunk-YYN2O43C.js');
18
+ require('./chunk-FPYESYBO.js');
19
+ require('./chunk-ALJJRZNJ.js');
20
+ require('./chunk-XNYIZMNQ.js');
21
+ require('./chunk-DIAWYWT5.js');
22
+ require('./chunk-EPQZ42PY.js');
23
+ require('./chunk-OG64RBAC.js');
24
+ require('./chunk-COGTRVWW.js');
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ exports.SEARCH_TYPES = _chunkIFGBL3USjs.SEARCH_TYPES; exports.appendCsv = _chunkIFGBL3USjs.appendCsv; exports.parseTypes = _chunkIFGBL3USjs.parseTypes; exports.pointAtDescribe = _chunkIFGBL3USjs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkIFGBL3USjs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkIFGBL3USjs.registerSearchCommand;
@@ -6,13 +6,13 @@ var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
6
6
  var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
7
7
 
8
8
 
9
- var _chunk4BQEGVNCjs = require('./chunk-4BQEGVNC.js');
10
- require('./chunk-BU2MZXN6.js');
11
- require('./chunk-SE252VCN.js');
9
+ var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
10
+ require('./chunk-YYN2O43C.js');
11
+ require('./chunk-FPYESYBO.js');
12
12
  require('./chunk-ALJJRZNJ.js');
13
13
  require('./chunk-XNYIZMNQ.js');
14
14
  require('./chunk-DIAWYWT5.js');
15
- require('./chunk-WER5FPHI.js');
15
+ require('./chunk-EPQZ42PY.js');
16
16
  require('./chunk-OG64RBAC.js');
17
17
 
18
18
 
@@ -5854,7 +5854,7 @@ var OPTIONAL_COLUMNS = [
5854
5854
  ];
5855
5855
  function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
5856
5856
  if (result.results.length === 0)
5857
- return _chunk4BQEGVNCjs.renderCommandEnvelopeText.call(void 0, result);
5857
+ return _chunkE26477MJjs.renderCommandEnvelopeText.call(void 0, result);
5858
5858
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5859
5859
  const kinds = new Set(rows.map((row) => row.kind));
5860
5860
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5879,7 +5879,7 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
5879
5879
  actions: _optionalChain([render, 'optionalAccess', _16 => _16.actions])
5880
5880
  };
5881
5881
  const followUps = _optionalChain([remaining, 'access', _17 => _17.sections, 'optionalAccess', _18 => _18.length]) || _optionalChain([remaining, 'access', _19 => _19.actions, 'optionalAccess', _20 => _20.length]) ? `
5882
- ${_chunk4BQEGVNCjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5882
+ ${_chunkE26477MJjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5883
5883
  const notes = rows.flatMap(
5884
5884
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5885
5885
  );
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-XRDXNAAY.mjs";
7
7
  import {
8
8
  renderCommandEnvelopeText
9
- } from "./chunk-UUKMZK23.mjs";
10
- import "./chunk-N7LKHN5C.mjs";
11
- import "./chunk-KQKPDXIZ.mjs";
9
+ } from "./chunk-OFCP66VS.mjs";
10
+ import "./chunk-JC2M6XG2.mjs";
11
+ import "./chunk-A3D677RX.mjs";
12
12
  import "./chunk-4QF2K7TM.mjs";
13
13
  import "./chunk-DLIRSHV6.mjs";
14
14
  import "./chunk-HBL4PM5Q.mjs";
15
- import "./chunk-QRBDW3X6.mjs";
15
+ import "./chunk-PIENQTDE.mjs";
16
16
  import "./chunk-WZYKRD7T.mjs";
17
17
  import {
18
18
  __commonJS,
@@ -1,7 +1,7 @@
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 _chunk4BVJ6YSNjs = require('./chunk-4BVJ6YSN.js');
4
- require('./chunk-SV2VOJF4.js');
3
+ var _chunkPVMN4OE2js = require('./chunk-PVMN4OE2.js');
4
+ require('./chunk-6TTPAGNX.js');
5
5
  require('./chunk-E4CABWXL.js');
6
6
  require('./chunk-AUQQVDAB.js');
7
7
  require('./chunk-NMU3VR5U.js');
@@ -9,13 +9,13 @@ require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk4BQEGVNCjs = require('./chunk-4BQEGVNC.js');
13
- require('./chunk-BU2MZXN6.js');
14
- require('./chunk-SE252VCN.js');
12
+ var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
13
+ require('./chunk-YYN2O43C.js');
14
+ require('./chunk-FPYESYBO.js');
15
15
  require('./chunk-ALJJRZNJ.js');
16
16
  require('./chunk-XNYIZMNQ.js');
17
17
  require('./chunk-DIAWYWT5.js');
18
- require('./chunk-WER5FPHI.js');
18
+ require('./chunk-EPQZ42PY.js');
19
19
  require('./chunk-OG64RBAC.js');
20
20
  require('./chunk-COGTRVWW.js');
21
21
 
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
207
207
  }
208
208
  }
209
209
  async function handleList(options) {
210
- const client = new (0, _chunk4BVJ6YSNjs.DeeplineClient)();
210
+ const client = new (0, _chunkPVMN4OE2js.DeeplineClient)();
211
211
  const secrets = await client.listSecrets();
212
- _chunk4BQEGVNCjs.printCommandEnvelope.call(void 0,
212
+ _chunkE26477MJjs.printCommandEnvelope.call(void 0,
213
213
  {
214
214
  secrets,
215
215
  count: secrets.length,
@@ -227,14 +227,14 @@ async function handleList(options) {
227
227
  }
228
228
  async function handleCheck(nameInput, options) {
229
229
  const name = normalizeSecretName(nameInput);
230
- const client = new (0, _chunk4BVJ6YSNjs.DeeplineClient)();
230
+ const client = new (0, _chunkPVMN4OE2js.DeeplineClient)();
231
231
  const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
232
232
  const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
233
233
  const secret = check ? check.secret : await client.checkSecret(name);
234
234
  const ok = check ? check.ok : Boolean(secret);
235
235
  const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
236
236
  const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
237
- _chunk4BQEGVNCjs.printCommandEnvelope.call(void 0,
237
+ _chunkE26477MJjs.printCommandEnvelope.call(void 0,
238
238
  {
239
239
  ok,
240
240
  name,
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
262
262
  const name = normalizeSecretName(nameInput);
263
263
  const { scope, playName } = resolveSecretWriteScope(options);
264
264
  const value = await readSecretValueFromOptions(options);
265
- const { http } = _chunk4BQEGVNCjs.getAuthedHttpClient.call(void 0, );
265
+ const { http } = _chunkE26477MJjs.getAuthedHttpClient.call(void 0, );
266
266
  const response = await http.post(
267
267
  "/api/v2/secrets",
268
268
  {
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
274
274
  }
275
275
  );
276
276
  const secret = response.secret;
277
- _chunk4BQEGVNCjs.printCommandEnvelope.call(void 0,
277
+ _chunkE26477MJjs.printCommandEnvelope.call(void 0,
278
278
  {
279
279
  ok: true,
280
280
  secret,
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
302
302
  }
303
303
  const note = options.clear ? "" : noteInput;
304
304
  if (options.dryRun) {
305
- _chunk4BQEGVNCjs.printCommandEnvelope.call(void 0,
305
+ _chunkE26477MJjs.printCommandEnvelope.call(void 0,
306
306
  {
307
307
  ok: true,
308
308
  dryRun: true,
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
323
323
  );
324
324
  return;
325
325
  }
326
- const client = new (0, _chunk4BVJ6YSNjs.DeeplineClient)();
326
+ const client = new (0, _chunkPVMN4OE2js.DeeplineClient)();
327
327
  const secret = await client.updateSecretNote(secretId, note);
328
- _chunk4BQEGVNCjs.printCommandEnvelope.call(void 0,
328
+ _chunkE26477MJjs.printCommandEnvelope.call(void 0,
329
329
  {
330
330
  ok: true,
331
331
  secret,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-TZSRQYKH.mjs";
4
- import "./chunk-IS24BRFV.mjs";
3
+ } from "./chunk-3M5VPIRL.mjs";
4
+ import "./chunk-MEYQOZPF.mjs";
5
5
  import "./chunk-L2VKAASU.mjs";
6
6
  import "./chunk-ONONSV2Q.mjs";
7
7
  import "./chunk-S3A4IXBQ.mjs";
@@ -9,13 +9,13 @@ import "./chunk-UBKA33KY.mjs";
9
9
  import {
10
10
  getAuthedHttpClient,
11
11
  printCommandEnvelope
12
- } from "./chunk-UUKMZK23.mjs";
13
- import "./chunk-N7LKHN5C.mjs";
14
- import "./chunk-KQKPDXIZ.mjs";
12
+ } from "./chunk-OFCP66VS.mjs";
13
+ import "./chunk-JC2M6XG2.mjs";
14
+ import "./chunk-A3D677RX.mjs";
15
15
  import "./chunk-4QF2K7TM.mjs";
16
16
  import "./chunk-DLIRSHV6.mjs";
17
17
  import "./chunk-HBL4PM5Q.mjs";
18
- import "./chunk-QRBDW3X6.mjs";
18
+ import "./chunk-PIENQTDE.mjs";
19
19
  import "./chunk-WZYKRD7T.mjs";
20
20
  import "./chunk-KRD6H754.mjs";
21
21
 
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands,
3
3
  registerSessionsCommands
4
- } from "./chunk-2LNTFODA.mjs";
5
- import "./chunk-UUKMZK23.mjs";
6
- import "./chunk-N7LKHN5C.mjs";
7
- import "./chunk-KQKPDXIZ.mjs";
4
+ } from "./chunk-LQIKW55V.mjs";
5
+ import "./chunk-OFCP66VS.mjs";
6
+ import "./chunk-JC2M6XG2.mjs";
7
+ import "./chunk-A3D677RX.mjs";
8
8
  import "./chunk-4QF2K7TM.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-HBL4PM5Q.mjs";
11
- import "./chunk-QRBDW3X6.mjs";
11
+ import "./chunk-PIENQTDE.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
  export {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQWEQV3R3js = require('./chunk-QWEQV3R3.js');
5
- require('./chunk-4BQEGVNC.js');
6
- require('./chunk-BU2MZXN6.js');
7
- require('./chunk-SE252VCN.js');
4
+ var _chunkY2KHSQEFjs = require('./chunk-Y2KHSQEF.js');
5
+ require('./chunk-E26477MJ.js');
6
+ require('./chunk-YYN2O43C.js');
7
+ require('./chunk-FPYESYBO.js');
8
8
  require('./chunk-ALJJRZNJ.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
10
  require('./chunk-DIAWYWT5.js');
11
- require('./chunk-WER5FPHI.js');
11
+ require('./chunk-EPQZ42PY.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
14
14
 
15
15
 
16
16
 
17
- exports.registerSessionSendRenderCommands = _chunkQWEQV3R3js.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkQWEQV3R3js.registerSessionsCommands;
17
+ exports.registerSessionSendRenderCommands = _chunkY2KHSQEFjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkY2KHSQEFjs.registerSessionsCommands;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-TZSRQYKH.mjs";
3
+ } from "./chunk-3M5VPIRL.mjs";
4
4
  import {
5
5
  PRODUCT_NOTIFICATION_EVENT_CATALOG,
6
6
  resolveLegacySlackNotification
7
- } from "./chunk-IS24BRFV.mjs";
7
+ } from "./chunk-MEYQOZPF.mjs";
8
8
  import "./chunk-L2VKAASU.mjs";
9
9
  import "./chunk-ONONSV2Q.mjs";
10
10
  import "./chunk-S3A4IXBQ.mjs";
@@ -13,22 +13,23 @@ import {
13
13
  readCliUpdatePreferences,
14
14
  runUpdateCommand,
15
15
  setCliAutoUpdateEnabled
16
- } from "./chunk-XMBIESQ7.mjs";
17
- import "./chunk-IXQQWEYK.mjs";
18
- import "./chunk-TJRGYEDA.mjs";
19
- import "./chunk-C5M43H4F.mjs";
20
- import "./chunk-TKK4TR7B.mjs";
16
+ } from "./chunk-BL5Q5JY7.mjs";
17
+ import "./chunk-TVZJ6XWM.mjs";
18
+ import "./chunk-MBQZMHE6.mjs";
19
+ import "./chunk-27IBWHR5.mjs";
20
+ import "./chunk-Z7W6VJFN.mjs";
21
21
  import {
22
22
  openInBrowser,
23
23
  printCommandEnvelope
24
- } from "./chunk-UUKMZK23.mjs";
25
- import "./chunk-N7LKHN5C.mjs";
26
- import "./chunk-KQKPDXIZ.mjs";
24
+ } from "./chunk-OFCP66VS.mjs";
25
+ import "./chunk-JC2M6XG2.mjs";
26
+ import "./chunk-A3D677RX.mjs";
27
27
  import "./chunk-4QF2K7TM.mjs";
28
28
  import "./chunk-DLIRSHV6.mjs";
29
29
  import "./chunk-HBL4PM5Q.mjs";
30
- import "./chunk-QRBDW3X6.mjs";
30
+ import "./chunk-PIENQTDE.mjs";
31
31
  import "./chunk-WZYKRD7T.mjs";
32
+ import "./chunk-TKLDKIJU.mjs";
32
33
  import "./chunk-KRD6H754.mjs";
33
34
 
34
35
  // src/cli/commands/settings.ts