deepline 0.3.574 → 0.3.575

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 (159) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
  3. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
  8. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +45 -7
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
  11. package/dist/cli/{agents-7ZZSF4FS.js → agents-BCLO3KQJ.js} +204 -41
  12. package/dist/cli/{agents-6WN5LYUP.mjs → agents-ULGDKUTM.mjs} +182 -19
  13. package/dist/cli/{auth-I2QVO677.mjs → auth-4WCL7A6W.mjs} +5 -5
  14. package/dist/cli/auth-DXUHEL5I.js +44 -0
  15. package/dist/cli/{billing-YPH4GEWU.mjs → billing-7JQ6EUQU.mjs} +9 -9
  16. package/dist/cli/{billing-44QFBUWA.js → billing-BF5LVXOM.js} +102 -102
  17. package/dist/cli/{chunk-MGF3MK27.mjs → chunk-2T7XOKVL.mjs} +5 -5
  18. package/dist/cli/{chunk-7UR57HPJ.js → chunk-2UM3I2MY.js} +1 -1
  19. package/dist/cli/{chunk-SRUNYWQ2.mjs → chunk-3PVKXUSJ.mjs} +1 -1
  20. package/dist/cli/{chunk-W6UCS3O6.mjs → chunk-56N3XAT6.mjs} +5 -5
  21. package/dist/cli/{chunk-LLSCFLFU.mjs → chunk-5D7OJY4W.mjs} +1 -1
  22. package/dist/cli/{chunk-5E2PAGF5.js → chunk-5H6254MJ.js} +21 -21
  23. package/dist/cli/{chunk-VYSUJMB5.js → chunk-5VSHQG5E.js} +8 -8
  24. package/dist/cli/{chunk-SLXCVPN7.js → chunk-636GD4IR.js} +2 -2
  25. package/dist/cli/{chunk-LJLM4BUL.js → chunk-6IKLITVH.js} +6 -6
  26. package/dist/cli/{chunk-D6ZVRKJ2.js → chunk-737Y7QGT.js} +41 -41
  27. package/dist/cli/{chunk-UXIUAIL2.js → chunk-7DLAJ6JJ.js} +53 -53
  28. package/dist/cli/{chunk-2QYU57RG.js → chunk-AO56MZ7D.js} +3 -3
  29. package/dist/cli/{chunk-BUBOZKH2.js → chunk-AS5XGOZY.js} +2 -2
  30. package/dist/cli/{chunk-XVBEEGI4.mjs → chunk-BM536WWR.mjs} +1 -1
  31. package/dist/cli/{chunk-DX646HO7.mjs → chunk-BONMEBWZ.mjs} +4 -4
  32. package/dist/cli/{chunk-S22FSNNC.mjs → chunk-BQUAE6LQ.mjs} +1 -1
  33. package/dist/cli/{chunk-G7OR3GVD.mjs → chunk-CVY4MBXH.mjs} +5 -5
  34. package/dist/cli/{chunk-KSHZY52O.js → chunk-DMPGJCNZ.js} +72 -10
  35. package/dist/cli/{chunk-Q3A53SWK.mjs → chunk-DWUESXDD.mjs} +1 -1
  36. package/dist/cli/{chunk-IA2LTIWO.mjs → chunk-E4RYSSXX.mjs} +2 -2
  37. package/dist/cli/{chunk-VLUBEMWM.js → chunk-EV3OPDHF.js} +20 -20
  38. package/dist/cli/{chunk-ECLCRE5P.js → chunk-EZIXKNKM.js} +3 -3
  39. package/dist/cli/{chunk-JCO226JM.mjs → chunk-FDCU3VAJ.mjs} +72 -10
  40. package/dist/cli/{chunk-6B5EZOI3.js → chunk-FXXERR52.js} +10 -10
  41. package/dist/cli/{chunk-L2NXB4WG.mjs → chunk-FYKHAT2F.mjs} +64 -3
  42. package/dist/cli/{chunk-NDDGFX4X.js → chunk-G2H6SQQY.js} +11 -11
  43. package/dist/cli/{chunk-I62ZBEKH.js → chunk-G4WPDCXA.js} +48 -48
  44. package/dist/cli/{chunk-G2HW2SAP.js → chunk-GB4IZ5TV.js} +13 -13
  45. package/dist/cli/{chunk-7334X74C.mjs → chunk-GQZFZG6R.mjs} +2 -2
  46. package/dist/cli/{chunk-JY7RKJ65.mjs → chunk-H3CG72RZ.mjs} +13 -13
  47. package/dist/cli/{chunk-N6I3BB2O.js → chunk-H6JMRLAZ.js} +274 -274
  48. package/dist/cli/{chunk-6GZIT3TH.js → chunk-HEOM3FAC.js} +20 -20
  49. package/dist/cli/{chunk-DG56RWI2.js → chunk-HO76C7AE.js} +2 -2
  50. package/dist/cli/{chunk-X7RKCAMX.mjs → chunk-IAJ65IDZ.mjs} +4 -4
  51. package/dist/cli/{chunk-ZFXDD7VM.mjs → chunk-IBYMGR5Y.mjs} +1 -1
  52. package/dist/cli/{chunk-LCAXLGAY.mjs → chunk-IOWLFWWG.mjs} +2 -2
  53. package/dist/cli/{chunk-NRVEVKXR.mjs → chunk-JGLCK2XF.mjs} +2 -2
  54. package/dist/cli/{chunk-IB225ZK4.js → chunk-KNCNFL76.js} +4 -4
  55. package/dist/cli/{chunk-QPSBV4FD.mjs → chunk-MN7JLH2T.mjs} +2 -2
  56. package/dist/cli/{chunk-OH6WOID2.mjs → chunk-MWLOBURN.mjs} +2 -2
  57. package/dist/cli/{chunk-AFPGYZBH.js → chunk-MXK4M7HP.js} +17 -17
  58. package/dist/cli/{chunk-MAMGREBW.mjs → chunk-NF722E6C.mjs} +1 -1
  59. package/dist/cli/{chunk-7GQU46SZ.js → chunk-PQYDO72W.js} +26 -26
  60. package/dist/cli/{chunk-4T2U72SP.mjs → chunk-QEDRUURT.mjs} +1 -1
  61. package/dist/cli/{chunk-B2XLIQPH.mjs → chunk-QKP3WYSZ.mjs} +2 -2
  62. package/dist/cli/{chunk-VGIDPJXM.mjs → chunk-RHRRY2BX.mjs} +3 -3
  63. package/dist/cli/{chunk-ZTCP5BHH.mjs → chunk-RW3URFZK.mjs} +2 -2
  64. package/dist/cli/{chunk-XMBTAPHR.js → chunk-SKHUWQZE.js} +7 -7
  65. package/dist/cli/{chunk-OIZUFRTE.mjs → chunk-SYQTBHRX.mjs} +3 -3
  66. package/dist/cli/{chunk-PW6NKI2A.mjs → chunk-TMFR2B45.mjs} +3 -3
  67. package/dist/cli/{chunk-YR4REP4D.mjs → chunk-TTBZ7QXX.mjs} +1 -1
  68. package/dist/cli/{chunk-GMQZFWQU.mjs → chunk-UQZP7XBQ.mjs} +7 -7
  69. package/dist/cli/{chunk-DOZIWA66.js → chunk-V5XLENWK.js} +5 -5
  70. package/dist/cli/{chunk-2TMAKJBT.mjs → chunk-X47J55ZJ.mjs} +2 -2
  71. package/dist/cli/{chunk-ID3LGPOE.js → chunk-XFV353R2.js} +23 -23
  72. package/dist/cli/{chunk-2RPRSTHD.js → chunk-YNAXKA23.js} +5 -5
  73. package/dist/cli/{chunk-IXYVHTRZ.js → chunk-ZO65VJRJ.js} +70 -9
  74. package/dist/cli/{chunk-PP5RMEQQ.js → chunk-ZQXJYO5P.js} +5 -5
  75. package/dist/cli/{chunk-H7PVSG3L.js → chunk-ZS6DT4LD.js} +15 -15
  76. package/dist/cli/{chunk-Z3XFXFRT.js → chunk-ZYSJND73.js} +9 -9
  77. package/dist/cli/command-docs.js +2 -2
  78. package/dist/cli/command-docs.mjs +1 -1
  79. package/dist/cli/{concurrent-runs-help-ROQM6UB3.mjs → concurrent-runs-help-HITK6EOO.mjs} +6 -6
  80. package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
  81. package/dist/cli/{csv-FWGSY4GE.js → csv-RS7XHQ4P.js} +13 -13
  82. package/dist/cli/{csv-R7GV33BC.mjs → csv-V2T23MXT.mjs} +4 -4
  83. package/dist/cli/{db-UWXA4RRV.mjs → db-OQ4RNTGE.mjs} +6 -6
  84. package/dist/cli/{db-OCH35YJG.js → db-WFIVRPKY.js} +27 -27
  85. package/dist/cli/describe-33PBWO5O.js +50 -0
  86. package/dist/cli/{describe-QI4HMUGE.mjs → describe-AXV2EEX3.mjs} +21 -21
  87. package/dist/cli/describe-core.d.mts +10 -1
  88. package/dist/cli/describe-core.d.ts +10 -1
  89. package/dist/cli/describe-core.js +4 -4
  90. package/dist/cli/describe-core.mjs +3 -3
  91. package/dist/cli/{executions-7CFGC24E.js → executions-5H2RIWZ3.js} +8 -8
  92. package/dist/cli/{executions-YF3KMZZN.mjs → executions-THP5ZDBQ.mjs} +6 -6
  93. package/dist/cli/{feedback-DWIWBS7O.mjs → feedback-2EJPILGE.mjs} +6 -6
  94. package/dist/cli/{feedback-YCZHHSBS.js → feedback-UOI6UEGA.js} +14 -14
  95. package/dist/cli/git-2OPYEPYW.js +26 -0
  96. package/dist/cli/{git-XCGMQQOD.mjs → git-DI3LJIAT.mjs} +5 -5
  97. package/dist/cli/index.js +148 -148
  98. package/dist/cli/index.mjs +47 -47
  99. package/dist/cli/{integrations-5ABAJBSW.mjs → integrations-DJYS5VRK.mjs} +7 -7
  100. package/dist/cli/{integrations-IEZA3TGK.js → integrations-TYN2BSQ6.js} +29 -29
  101. package/dist/cli/{legacy-noops-KNFLJ5P2.js → legacy-noops-GXQHNLGJ.js} +9 -9
  102. package/dist/cli/{legacy-noops-OZMY73Y3.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
  103. package/dist/cli/{mcp-WSPFKQPZ.mjs → mcp-NAW3GFNN.mjs} +4 -4
  104. package/dist/cli/{mcp-NLQAO7KP.js → mcp-WMBOOTQL.js} +24 -24
  105. package/dist/cli/{monitors-LPKFFTOX.mjs → monitors-A7NYAXSJ.mjs} +7 -7
  106. package/dist/cli/{monitors-BJYOB4S3.js → monitors-OOQVE7XR.js} +100 -100
  107. package/dist/cli/{org-RYPMUYUW.mjs → org-7YCDUSZE.mjs} +6 -6
  108. package/dist/cli/{org-WIVHI4WT.js → org-D2AMIVBS.js} +121 -121
  109. package/dist/cli/{outcomes-QKX7IE3O.js → outcomes-2FKZDJSQ.js} +14 -14
  110. package/dist/cli/{outcomes-FADJYC4I.mjs → outcomes-TNTKCUEO.mjs} +6 -6
  111. package/dist/cli/{play-4ZKK5Q7U.mjs → play-L6CVHSN4.mjs} +20 -20
  112. package/dist/cli/{play-ID73J3NP.js → play-NWKHCHVZ.js} +349 -349
  113. package/dist/cli/{providers-LURYBSNO.mjs → providers-22LO747B.mjs} +6 -6
  114. package/dist/cli/{providers-WCCGYGW6.js → providers-PZGOI5CN.js} +9 -9
  115. package/dist/cli/{quickstart-KCCSEE5J.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
  116. package/dist/cli/{quickstart-LVPOU25V.js → quickstart-LLWOC2GR.js} +6 -6
  117. package/dist/cli/{run-XXK7DDUF.mjs → run-D46W2GUA.mjs} +48 -27
  118. package/dist/cli/{run-2QMJRCVA.js → run-SNF23STR.js} +70 -49
  119. package/dist/cli/search-H57MZPLF.js +32 -0
  120. package/dist/cli/{search-ZYAWW3CK.mjs → search-XWVCICIX.mjs} +7 -7
  121. package/dist/cli/{search-output-YNXAZSKT.js → search-output-36GHD67U.js} +8 -8
  122. package/dist/cli/{search-output-N45AIOB4.mjs → search-output-YM5QXFQQ.mjs} +5 -5
  123. package/dist/cli/{secrets-7Q3AOUAS.mjs → secrets-7PTZEFRC.mjs} +6 -6
  124. package/dist/cli/{secrets-MHT27L2M.js → secrets-UXCIHG5I.js} +15 -15
  125. package/dist/cli/{sessions-6QKOM7M3.mjs → sessions-DTXJKRP4.mjs} +6 -6
  126. package/dist/cli/sessions-JJZMQSH4.js +23 -0
  127. package/dist/cli/{settings-NPVIDENI.mjs → settings-74B6UOS4.mjs} +12 -12
  128. package/dist/cli/{settings-OP7Q6YX6.js → settings-EYSDZE37.js} +85 -85
  129. package/dist/cli/{setup-OOT3EIMF.mjs → setup-2QRZ36CH.mjs} +9 -9
  130. package/dist/cli/{setup-RT6GHL3W.js → setup-E7PVXBPL.js} +49 -49
  131. package/dist/cli/{skills-TEXI4CLZ.mjs → skills-2WZ7N3UW.mjs} +7 -7
  132. package/dist/cli/skills-RIF2DCZI.js +37 -0
  133. package/dist/cli/tools-7VRQ4GSI.js +57 -0
  134. package/dist/cli/{tools-G5L36M3X.mjs → tools-YK5SCUZD.mjs} +19 -19
  135. package/dist/cli/{update-YNKQTE4D.mjs → update-563YQK53.mjs} +9 -9
  136. package/dist/cli/update-CMZAIAES.js +37 -0
  137. package/dist/cli/{views-IQFMUMLU.mjs → views-ISNCRZUP.mjs} +6 -6
  138. package/dist/cli/{views-OVQ5AQAU.js → views-OLPS6TPG.js} +21 -21
  139. package/dist/cli/{workflow-Y5IFMI7N.mjs → workflow-B3ZKU3OR.mjs} +7 -7
  140. package/dist/cli/{workflow-RCBYXIFZ.js → workflow-CUSCTYMW.js} +17 -17
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +6 -6
  143. package/dist/install-integrity.json +122 -122
  144. package/dist/release.d.mts +1 -1
  145. package/dist/release.d.ts +1 -1
  146. package/dist/release.js +2 -2
  147. package/dist/release.mjs +1 -1
  148. package/dist/server.js +5 -5
  149. package/dist/server.mjs +3 -3
  150. package/package.json +1 -1
  151. package/dist/cli/auth-UKPV5U2B.js +0 -44
  152. package/dist/cli/concurrent-runs-help-BFVCUJF4.js +0 -22
  153. package/dist/cli/describe-6OI5K2SH.js +0 -50
  154. package/dist/cli/git-TGLNZRS3.js +0 -26
  155. package/dist/cli/search-AQSAXA6D.js +0 -32
  156. package/dist/cli/sessions-RGD7L4LC.js +0 -23
  157. package/dist/cli/skills-ERAA734H.js +0 -37
  158. package/dist/cli/tools-D5SZSIIH.js +0 -57
  159. package/dist/cli/update-WZ6527EF.js +0 -37
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkIXYVHTRZjs = require('./chunk-IXYVHTRZ.js');
5
+ var _chunkZO65VJRJjs = require('./chunk-ZO65VJRJ.js');
6
6
 
7
7
 
8
8
 
@@ -314,7 +314,7 @@ function extractorValueType(name) {
314
314
  }
315
315
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
316
316
  if (!named) return { type: "string" };
317
- const { type, fields } = _chunkIXYVHTRZjs.schemaField.call(void 0, name, named.schema, true);
317
+ const { type, fields } = _chunkZO65VJRJjs.schemaField.call(void 0, name, named.schema, true);
318
318
  return { type, ...fields ? { fields } : {}, shape: named.shape };
319
319
  }
320
320
  function jsonSchemaOf(wrapper) {
@@ -374,7 +374,7 @@ function describedTool(tool, requestedToolId) {
374
374
  // The server's public monitor pricing sends `display`.
375
375
  cost: stringField(pricing, "display", "displayText") || void 0,
376
376
  guidance: [],
377
- inputs: _chunkIXYVHTRZjs.schemaFields.call(void 0,
377
+ inputs: _chunkZO65VJRJjs.schemaFields.call(void 0,
378
378
  recordField(tool, "payload_schema", "payloadSchema")
379
379
  ),
380
380
  outputs: [],
@@ -411,7 +411,7 @@ function describedTool(tool, requestedToolId) {
411
411
  (path) => path.replace(/^toolResponse\.raw\./, "")
412
412
  );
413
413
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
414
- const { fields, ...typed } = _chunkIXYVHTRZjs.schemaField.call(void 0, name, node, true);
414
+ const { fields, ...typed } = _chunkZO65VJRJjs.schemaField.call(void 0, name, node, true);
415
415
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
416
416
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
417
417
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -481,7 +481,7 @@ function describedTool(tool, requestedToolId) {
481
481
  ],
482
482
  rateLimit: withPlanRateLimit(
483
483
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
484
- _chunkIXYVHTRZjs.rateLimitSummary.call(void 0,
484
+ _chunkZO65VJRJjs.rateLimitSummary.call(void 0,
485
485
  recordField(contract, "executionMetadata").configuredRateLimits
486
486
  )
487
487
  ),
@@ -491,9 +491,9 @@ function describedTool(tool, requestedToolId) {
491
491
  ...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
492
492
  ...tool.auth ? { auth: tool.auth } : {},
493
493
  ...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
494
- inputs: _chunkIXYVHTRZjs.schemaFields.call(void 0, inputSchema),
494
+ inputs: _chunkZO65VJRJjs.schemaFields.call(void 0, inputSchema),
495
495
  outputs: [...lists, ...values].map(({ field }) => field),
496
- rawResponse: _chunkIXYVHTRZjs.schemaFields.call(void 0, outputSchema),
496
+ rawResponse: _chunkZO65VJRJjs.schemaFields.call(void 0, outputSchema),
497
497
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
498
498
  };
499
499
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-LLSCFLFU.mjs";
3
+ } from "./chunk-5D7OJY4W.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-2TMAKJBT.mjs";
7
+ } from "./chunk-X47J55ZJ.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-ZFXDD7VM.mjs";
12
+ } from "./chunk-IBYMGR5Y.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-2TMAKJBT.mjs";
5
+ } from "./chunk-X47J55ZJ.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-SRUNYWQ2.mjs";
25
+ } from "./chunk-3PVKXUSJ.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-ZFXDD7VM.mjs";
32
+ } from "./chunk-IBYMGR5Y.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-2TMAKJBT.mjs";
3
+ } from "./chunk-X47J55ZJ.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-JY7RKJ65.mjs";
3
+ } from "./chunk-H3CG72RZ.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-IA2LTIWO.mjs";
6
+ } from "./chunk-E4RYSSXX.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
10
10
  findNamed
11
- } from "./chunk-ZTCP5BHH.mjs";
11
+ } from "./chunk-RW3URFZK.mjs";
12
12
  import {
13
13
  SCHEMA_LINE_LIMIT
14
- } from "./chunk-L2NXB4WG.mjs";
14
+ } from "./chunk-FYKHAT2F.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-LCAXLGAY.mjs";
17
+ } from "./chunk-IOWLFWWG.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled,
21
21
  printCommandEnvelope
22
- } from "./chunk-2TMAKJBT.mjs";
22
+ } from "./chunk-X47J55ZJ.mjs";
23
23
  import {
24
24
  autoDetectBaseUrl,
25
25
  resolveApiKeyForBaseUrl,
26
26
  resolveCliDashboardOrgId
27
- } from "./chunk-SRUNYWQ2.mjs";
27
+ } from "./chunk-3PVKXUSJ.mjs";
28
28
 
29
29
  // src/cli/commands/describe.ts
30
30
  import { writeFileSync } from "fs";
@@ -1,13 +1,13 @@
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 _chunkUXIUAIL2js = require('./chunk-UXIUAIL2.js');
3
+ var _chunk7DLAJ6JJjs = require('./chunk-7DLAJ6JJ.js');
4
4
 
5
5
 
6
6
  var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
10
+ var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunk2QYU57RGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunkUXIUAIL2js.httpJson.call(void 0,
31
+ const { status, data } = await _chunk7DLAJ6JJjs.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -4,14 +4,14 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-SRUNYWQ2.mjs";
7
+ } from "./chunk-3PVKXUSJ.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime,
13
13
  readToolFailureHint
14
- } from "./chunk-ZFXDD7VM.mjs";
14
+ } from "./chunk-IBYMGR5Y.mjs";
15
15
  import {
16
16
  DeeplineError,
17
17
  normalizeToolExecutionFailure,
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk6GZIT3THjs = require('./chunk-6GZIT3TH.js');
7
+ var _chunkHEOM3FACjs = require('./chunk-HEOM3FAC.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkI62ZBEKHjs = require('./chunk-I62ZBEKH.js');
12
+ var _chunkG4WPDCXAjs = require('./chunk-G4WPDCXA.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
16
+ var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
17
17
 
18
18
 
19
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
19
+ var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
20
20
 
21
21
 
22
- var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
22
+ var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunk2QYU57RGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkIB225ZK4js.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunkKNCNFL76js.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkIB225ZK4js.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkIB225ZK4js.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunkKNCNFL76js.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunkKNCNFL76js.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkIB225ZK4js.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkKNCNFL76js.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
92
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk6GZIT3THjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkI62ZBEKHjs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkHEOM3FACjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkG4WPDCXAjs.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkIB225ZK4js.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkKNCNFL76js.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunk6GZIT3THjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkHEOM3FACjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunkI62ZBEKHjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunkG4WPDCXAjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkIB225ZK4js.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkKNCNFL76js.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunk6GZIT3THjs.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkHEOM3FACjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunk6GZIT3THjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkHEOM3FACjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkVLUBEMWMjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkVLUBEMWMjs.addJsonNotice.call(void 0, {
173
+ _chunkEV3OPDHFjs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunk6GZIT3THjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkHEOM3FACjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunk6GZIT3THjs.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkHEOM3FACjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkI62ZBEKHjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunkG4WPDCXAjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkVLUBEMWMjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,16 +1,16 @@
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 _chunkVYSUJMB5js = require('./chunk-VYSUJMB5.js');
3
+ var _chunk5VSHQG5Ejs = require('./chunk-5VSHQG5E.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
7
+ var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkVYSUJMB5js.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunk5VSHQG5Ejs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunk2QYU57RGjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunk2QYU57RGjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkAO56MZ7Djs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkAO56MZ7Djs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -118,7 +118,7 @@ function schemaField(name, node, required) {
118
118
  const { type, fields } = schemaType(schema);
119
119
  const example = [
120
120
  schema.example,
121
- schema.default,
121
+ schema.deprecatedDefault === true ? void 0 : schema.default,
122
122
  type === "string" ? NAMED_EXAMPLES[name.toLowerCase()] : void 0
123
123
  ].find((value) => value !== void 0);
124
124
  return {
@@ -709,6 +709,7 @@ function describedLines(described, view) {
709
709
  `${described.id} [${described.kind.replace("_", " ")}]`,
710
710
  ...described.displayName ? [described.displayName] : [],
711
711
  ...described.description ? [described.description] : [],
712
+ ...described.signature ? [`Signature: ${described.signature}`] : [],
712
713
  ...described.cost ? [`Cost: ${described.cost}`] : [],
713
714
  ...described.guidance.map((line) => `Guidance: ${line}`),
714
715
  ...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
@@ -736,6 +737,16 @@ function describedLines(described, view) {
736
737
  ...view.explain ? indented(explanation.cli) : []
737
738
  ] : []
738
739
  ),
740
+ ...section(
741
+ view.cli && _optionalChain([described, 'access', _20 => _20.namedExamples, 'optionalAccess', _21 => _21.length]) ? [
742
+ "Run a named example:",
743
+ ...described.namedExamples.flatMap(
744
+ (example) => indented(
745
+ `deepline run ${described.id} --example ${example.name}${example.description ? ` # ${example.description}` : ""}`
746
+ )
747
+ )
748
+ ] : []
749
+ ),
739
750
  ...section(
740
751
  view.play && play ? [
741
752
  "Run in a play:",
@@ -761,16 +772,16 @@ function jsonFields(fields, options) {
761
772
  return [
762
773
  field.name,
763
774
  {
764
- type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess', _20 => _20.name]), () => ( "object"))),
775
+ type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess', _22 => _22.name]), () => ( "object"))),
765
776
  ...options.input ? { required: field.required } : {},
766
777
  ...field.means ? { means: field.means } : {},
767
778
  ...field.example !== void 0 ? { example: field.example } : {},
768
779
  ...field.pageSize ? { page_size: field.pageSize } : {},
769
- ...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _21 => _21.description]) ? { description: field.description } : {},
780
+ ...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _23 => _23.description]) ? { description: field.description } : {},
770
781
  ...field.secondary ? { secondary: true } : {},
771
782
  ...field.read ? { read: field.read } : {},
772
783
  ...field.in ? { in: field.in } : {},
773
- ..._optionalChain([field, 'access', _22 => _22.paths, 'optionalAccess', _23 => _23.length]) ? { paths: field.paths } : {},
784
+ ..._optionalChain([field, 'access', _24 => _24.paths, 'optionalAccess', _25 => _25.length]) ? { paths: field.paths } : {},
774
785
  ...field.fields && !shape ? { fields: jsonFields(field.fields, options) } : {}
775
786
  }
776
787
  ];
@@ -791,7 +802,7 @@ function describedJson(described, view) {
791
802
  const used = /* @__PURE__ */ new Set();
792
803
  const blocks = Object.fromEntries(
793
804
  sections.flatMap(
794
- ([key, fields, input2]) => _optionalChain([fields, 'optionalAccess', _24 => _24.length]) ? [
805
+ ([key, fields, input2]) => _optionalChain([fields, 'optionalAccess', _26 => _26.length]) ? [
795
806
  [
796
807
  key,
797
808
  jsonFields(fields, {
@@ -826,6 +837,7 @@ function describedJson(described, view) {
826
837
  ...described.provider ? { provider: described.provider } : {},
827
838
  ...described.displayName ? { displayName: described.displayName } : {},
828
839
  ...described.description ? { description: described.description } : {},
840
+ ...described.signature ? { signature: described.signature } : {},
829
841
  ...described.cost ? { cost: described.cost } : {},
830
842
  ...described.rateLimit ? { rateLimit: described.rateLimit } : {},
831
843
  ...described.byok ? { byok: described.byok } : {},
@@ -834,7 +846,7 @@ function describedJson(described, view) {
834
846
  ...described.connectCommand ? { connectCommand: described.connectCommand } : {},
835
847
  ...described.auth ? { auth: described.auth } : {},
836
848
  ...described.toolUsage ? { toolUsage: described.toolUsage } : {},
837
- ..._optionalChain([described, 'access', _25 => _25.features, 'optionalAccess', _26 => _26.length]) ? { features: described.features } : {},
849
+ ..._optionalChain([described, 'access', _27 => _27.features, 'optionalAccess', _28 => _28.length]) ? { features: described.features } : {},
838
850
  ...described.guidance.length ? { guidance: described.guidance } : {},
839
851
  ...blocks,
840
852
  // The input that takes the CSV whose columns are rowInputs.
@@ -848,15 +860,60 @@ function describedJson(described, view) {
848
860
  // On Windows `cli` reads `input` from this file instead of inline.
849
861
  ...inputFile ? { inputFile: inputFile.path } : {}
850
862
  },
863
+ ..._optionalChain([described, 'access', _29 => _29.namedExamples, 'optionalAccess', _30 => _30.length]) ? { namedExamples: described.namedExamples } : {},
851
864
  ...described.source ? { source: described.source } : {},
852
865
  ...hidden.length ? { hidden } : {}
853
866
  };
854
867
  }
855
- var DASHBOARD_WORKSPACE_PARAM = "workspace";
868
+ function pythonValue(value) {
869
+ if (value === null || value === void 0) return "None";
870
+ if (value === true) return "True";
871
+ if (value === false) return "False";
872
+ if (typeof value === "string") return `'${value.replace(/'/g, "\\'")}'`;
873
+ if (Array.isArray(value)) return `[${value.map(pythonValue).join(", ")}]`;
874
+ if (isRecord(value)) {
875
+ return `{${Object.entries(value).map(([key, item]) => `'${key}': ${pythonValue(item)}`).join(", ")}}`;
876
+ }
877
+ return String(value);
878
+ }
879
+ function playSignature(reference, schema) {
880
+ if (!isRecord(schema) || !isRecord(schema.properties)) return null;
881
+ const required = new Set(
882
+ Array.isArray(schema.required) ? schema.required.map(String) : []
883
+ );
884
+ const entries = Object.entries(schema.properties);
885
+ const parameters = [
886
+ ...entries.filter(([name]) => required.has(name)).map(([name]) => name),
887
+ ...entries.filter(([name]) => !required.has(name)).map(([name, node]) => {
888
+ const property = isRecord(node) ? node : {};
889
+ if (!("default" in property)) return `${name}=None`;
890
+ const notes = [
891
+ property.deprecatedDefault === true ? "deprecated default" : null,
892
+ property.defaultWhen === "empty_request" ? "only when no search input is given" : null
893
+ ].filter(Boolean);
894
+ return `${name}=${pythonValue(property.default)}${notes.length ? ` (${notes.join(", ")})` : ""}`;
895
+ })
896
+ ];
897
+ return `${reference}(${parameters.join(", ")})`;
898
+ }
899
+ function playNamedExamples(schema) {
900
+ const declared = isRecord(schema) ? schema.namedExamples : null;
901
+ if (!isRecord(declared)) return [];
902
+ return Object.entries(declared).flatMap(
903
+ ([name, value]) => isRecord(value) && isRecord(value.input) ? [
904
+ {
905
+ name,
906
+ ...typeof value.description === "string" ? { description: value.description } : {},
907
+ input: value.input
908
+ }
909
+ ] : []
910
+ );
911
+ }
912
+ var DASHBOARD_ORG_PARAM = "org";
856
913
  function buildDashboardUrl(baseUrl, path, orgId) {
857
914
  const url = `${baseUrl.replace(/\/$/, "")}${path}`;
858
915
  if (!orgId) return url;
859
- const param = new URLSearchParams({ [DASHBOARD_WORKSPACE_PARAM]: orgId });
916
+ const param = new URLSearchParams({ [DASHBOARD_ORG_PARAM]: orgId });
860
917
  return `${url}${url.includes("?") ? "&" : "?"}${param.toString()}`;
861
918
  }
862
919
  function buildPlayDashboardUrl(baseUrl, playName, orgId) {
@@ -898,6 +955,8 @@ function describedPlay(play) {
898
955
  description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
899
956
  } : field;
900
957
  });
958
+ const signature = playSignature(reference, play.inputSchema);
959
+ const namedExamples = playNamedExamples(play.inputSchema);
901
960
  const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
902
961
  const added = isRecord(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
903
962
  const rowOutputs = schemaFields(
@@ -920,10 +979,12 @@ function describedPlay(play) {
920
979
  rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
921
980
  } : {},
922
981
  runner: { via: "play", reference, inputSchema: play.inputSchema },
982
+ ...signature ? { signature } : {},
983
+ ...namedExamples.length ? { namedExamples } : {},
923
984
  ...starter ? { source: starter.command } : {},
924
985
  ...exclusive ? { exclusive } : {},
925
986
  // A prebuilt's cost is what its recent runs were charged; there is no rate.
926
- ..._optionalChain([play, 'access', _27 => _27.observedCost, 'optionalAccess', _28 => _28.displayText]) ? { cost: play.observedCost.displayText } : {}
987
+ ..._optionalChain([play, 'access', _31 => _31.observedCost, 'optionalAccess', _32 => _32.displayText]) ? { cost: play.observedCost.displayText } : {}
927
988
  };
928
989
  }
929
990
 
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkVYSUJMB5js = require('./chunk-VYSUJMB5.js');
3
+ var _chunk5VSHQG5Ejs = require('./chunk-5VSHQG5E.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
7
+ var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunk2QYU57RGjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkVYSUJMB5js.PlayClient)(
142
- new (0, _chunk2QYU57RGjs.HttpClient)(config),
140
+ const config = _chunkAO56MZ7Djs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunk5VSHQG5Ejs.PlayClient)(
142
+ new (0, _chunkAO56MZ7Djs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }