deepline 0.3.547 → 0.3.549

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 (166) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +93 -11
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/plays/check-local-play-graph.ts +3 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +11 -0
  6. package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +203 -0
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +20 -0
  8. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +33 -0
  10. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +19 -3
  11. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +21 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +83 -6
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +93 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +98 -1
  15. package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +636 -0
  16. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
  17. package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
  18. package/dist/cli/auth-UVEZIP3H.js +43 -0
  19. package/dist/cli/{auth-WJEY4IDX.mjs → auth-YENF525S.mjs} +5 -5
  20. package/dist/cli/{billing-IJITDDRQ.js → billing-52GAHIDZ.js} +95 -95
  21. package/dist/cli/{billing-PHJUDYF3.mjs → billing-XPXB27G7.mjs} +9 -9
  22. package/dist/cli/{chunk-2HPTLBNB.js → chunk-3IUQNHIG.js} +3 -3
  23. package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-4AUV5QJF.mjs} +5 -5
  24. package/dist/cli/{chunk-GZFZZQL4.js → chunk-4DJNXAPH.js} +75 -37
  25. package/dist/cli/{chunk-DZC7LMYM.js → chunk-4HSSPT73.js} +6 -6
  26. package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-4QUWXUUJ.mjs} +35 -6
  27. package/dist/cli/{chunk-SAJWYN4B.js → chunk-5622PYAP.js} +4 -4
  28. package/dist/cli/{chunk-PBMO36BP.mjs → chunk-5CXE22BI.mjs} +2 -2
  29. package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-5T37KQNG.mjs} +5 -5
  30. package/dist/cli/{chunk-YURGAKI3.js → chunk-7FY7AHR6.js} +2 -2
  31. package/dist/cli/{chunk-PVQCX6KQ.js → chunk-ADWMIZCB.js} +67 -9
  32. package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-ANOTB6V3.mjs} +4 -4
  33. package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-AZSVDAXT.mjs} +5 -5
  34. package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-BDOLPGHD.mjs} +2 -2
  35. package/dist/cli/{chunk-N63U5CRG.js → chunk-BDUZJX4V.js} +26 -26
  36. package/dist/cli/{chunk-HFIFKP3A.js → chunk-BPBPY42E.js} +5 -5
  37. package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-CX4KGWCH.mjs} +3 -3
  38. package/dist/cli/{chunk-REAFIEV5.js → chunk-CXFOYRI4.js} +99 -99
  39. package/dist/cli/{chunk-RXRC2COC.mjs → chunk-DCTEH6N5.mjs} +2 -2
  40. package/dist/cli/{chunk-ABLTVG3J.js → chunk-DIRLEJJX.js} +41 -41
  41. package/dist/cli/{chunk-VNOQEDVC.js → chunk-ETLEPHLT.js} +7 -7
  42. package/dist/cli/{chunk-QU3K3IY6.js → chunk-HPSCRVTM.js} +12 -12
  43. package/dist/cli/{chunk-MBQELFL7.js → chunk-HWCIU3KY.js} +22 -22
  44. package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-J6FINSAK.mjs} +49 -11
  45. package/dist/cli/{chunk-K3GMDSUX.js → chunk-KBMBNUUW.js} +5 -5
  46. package/dist/cli/{chunk-D6OIEH47.js → chunk-KTZ3VU6S.js} +5 -5
  47. package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-L6UMWAAY.mjs} +1 -1
  48. package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-LMFTDDAM.mjs} +2 -2
  49. package/dist/cli/{chunk-56MEAGWA.mjs → chunk-LP2VNGG3.mjs} +2 -2
  50. package/dist/cli/{chunk-RMCCB3XY.mjs → chunk-MAE3AKDR.mjs} +67 -9
  51. package/dist/cli/{chunk-L5J6UJ2X.js → chunk-NVALIJQS.js} +15 -15
  52. package/dist/cli/{chunk-MO7TGNXB.js → chunk-OWX4AAJ4.js} +13 -13
  53. package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-PLAJ6HPD.mjs} +2 -2
  54. package/dist/cli/{chunk-G6KW764N.mjs → chunk-PLJCY35C.mjs} +1 -1
  55. package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-PQX4WTBY.mjs} +1 -1
  56. package/dist/cli/{chunk-GJOGFWX3.js → chunk-QGKX2WBZ.js} +52 -23
  57. package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-QIZBUY2N.mjs} +4 -4
  58. package/dist/cli/{chunk-E2OIYPB4.js → chunk-QUELC3B2.js} +10 -10
  59. package/dist/cli/{chunk-OVYXYTEP.js → chunk-RMKRZJOS.js} +16 -16
  60. package/dist/cli/{chunk-GIGAYLY6.js → chunk-SVNAP2QI.js} +9 -9
  61. package/dist/cli/{chunk-2AHY47SI.js → chunk-TYOAOSDL.js} +3 -3
  62. package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-U6KHWIAO.mjs} +1 -1
  63. package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-UGVXHT62.mjs} +1 -1
  64. package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-V5WPYOAE.mjs} +5 -5
  65. package/dist/cli/{chunk-FFBXLFKV.js → chunk-V7WMNX4R.js} +1 -1
  66. package/dist/cli/{chunk-NBYFQZ6O.js → chunk-VLAJGF27.js} +2 -2
  67. package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-W77LBYF3.mjs} +11 -11
  68. package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-X4RGDE4J.mjs} +1 -1
  69. package/dist/cli/{chunk-IVFFCAV2.js → chunk-XPYCNA43.js} +44 -44
  70. package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XS72HELO.mjs} +1 -1
  71. package/dist/cli/{chunk-LMLSOHTU.js → chunk-Y5MDCPWA.js} +53 -53
  72. package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-Y5SKYU5X.mjs} +3 -3
  73. package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-YX7BX2FA.mjs} +2 -2
  74. package/dist/cli/{chunk-YVKLF7RW.js → chunk-YZTS3XA7.js} +2 -2
  75. package/dist/cli/{chunk-IGAK22XO.mjs → chunk-Z3DKJOUL.mjs} +1 -1
  76. package/dist/cli/command-docs.js +2 -2
  77. package/dist/cli/command-docs.mjs +1 -1
  78. package/dist/cli/concurrent-runs-help-74AFW3BD.js +21 -0
  79. package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-OYSLW55L.mjs} +6 -6
  80. package/dist/cli/{csv-X6D4ZELE.js → csv-FRO3UFMQ.js} +13 -13
  81. package/dist/cli/{csv-VAHQHYYV.mjs → csv-TFCTUYF2.mjs} +4 -4
  82. package/dist/cli/{db-4G4S2VOV.mjs → db-NHVZBT2H.mjs} +6 -6
  83. package/dist/cli/{db-YA5ZGVEX.js → db-SNFNRVZJ.js} +27 -27
  84. package/dist/cli/describe-2JCOC4AK.js +50 -0
  85. package/dist/cli/{describe-EVXEM2S6.mjs → describe-OVFPRJJL.mjs} +18 -18
  86. package/dist/cli/describe-core.d.mts +2 -2
  87. package/dist/cli/describe-core.d.ts +2 -2
  88. package/dist/cli/{executions-HR6CTN5M.mjs → executions-HWMH2LTC.mjs} +6 -6
  89. package/dist/cli/{executions-5YC7ABF6.js → executions-RZLKKPZV.js} +8 -8
  90. package/dist/cli/{feedback-MJHSYLFF.js → feedback-3D5OROCI.js} +14 -14
  91. package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-WD4JVF77.mjs} +6 -6
  92. package/dist/cli/git-GCCPCUWJ.js +25 -0
  93. package/dist/cli/{git-NPFF6QUS.mjs → git-RYUKBCUZ.mjs} +5 -5
  94. package/dist/cli/index.js +146 -146
  95. package/dist/cli/index.mjs +45 -45
  96. package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-KJPFCEXL.mjs} +7 -7
  97. package/dist/cli/{integrations-YPHFI77G.js → integrations-Y7OK23DW.js} +15 -15
  98. package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-2PU2ZVEP.mjs} +6 -6
  99. package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-G7ZY7K3K.js} +9 -9
  100. package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-D7F2RSOI.mjs} +4 -4
  101. package/dist/cli/{mcp-YTYTW67G.js → mcp-GILBYX72.js} +24 -24
  102. package/dist/cli/{monitors-73DQKCU7.mjs → monitors-IK5KXY2H.mjs} +32 -8
  103. package/dist/cli/{monitors-SA6ILD6Z.js → monitors-OXNHOT3C.js} +125 -101
  104. package/dist/cli/{org-WVQRB2KX.mjs → org-L5D7EISU.mjs} +6 -6
  105. package/dist/cli/{org-X7ELDV7B.js → org-OYM3UNTP.js} +88 -88
  106. package/dist/cli/{play-QI6V2EUQ.mjs → play-PK6QO3WX.mjs} +837 -290
  107. package/dist/cli/{play-QTYOAJPE.js → play-YK22QPYO.js} +1423 -876
  108. package/dist/cli/{providers-XXFLVREV.js → providers-5CYP7P4N.js} +9 -9
  109. package/dist/cli/{providers-DPVMVDS4.mjs → providers-Z6MNJDCG.mjs} +6 -6
  110. package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-2I73XQXB.mjs} +4 -4
  111. package/dist/cli/{quickstart-33ISXQJU.js → quickstart-2YKETYJY.js} +6 -6
  112. package/dist/cli/{run-J6FCAKQC.mjs → run-KGQ6TUBB.mjs} +23 -23
  113. package/dist/cli/{run-BWHZXLTD.js → run-YVSEAVE5.js} +43 -43
  114. package/dist/cli/{search-Z3UU3WBB.mjs → search-V2HPN6FU.mjs} +7 -7
  115. package/dist/cli/search-YG3UIZ6A.js +32 -0
  116. package/dist/cli/{search-output-YIPV74ME.js → search-output-BUSANFRN.js} +6 -6
  117. package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-OCTOSDEO.mjs} +4 -4
  118. package/dist/cli/{secrets-UXRJCEN4.js → secrets-VDKTHCVB.js} +15 -15
  119. package/dist/cli/{secrets-YZZN2WST.mjs → secrets-WZGRBWI5.mjs} +6 -6
  120. package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-5DTN55DZ.mjs} +6 -6
  121. package/dist/cli/sessions-NSPT6LHT.js +22 -0
  122. package/dist/cli/{settings-LAFYMILP.js → settings-A7VSNOLI.js} +85 -85
  123. package/dist/cli/{settings-ZP2LSVNM.mjs → settings-BK5FPQ3X.mjs} +12 -12
  124. package/dist/cli/{setup-WEQAQSYC.mjs → setup-LLQVPZTP.mjs} +9 -9
  125. package/dist/cli/{setup-4AL3XYM5.js → setup-NV27CYQ5.js} +49 -49
  126. package/dist/cli/{skills-NQH4HFW2.mjs → skills-IV6HK4XA.mjs} +7 -7
  127. package/dist/cli/skills-UA5E4DA3.js +36 -0
  128. package/dist/cli/{tools-CXK2GSI4.mjs → tools-4FKPCRD7.mjs} +17 -17
  129. package/dist/cli/tools-NJVPAG37.js +57 -0
  130. package/dist/cli/update-DKX27XZB.js +34 -0
  131. package/dist/cli/{update-3ROF3Z75.mjs → update-MH5M746E.mjs} +9 -9
  132. package/dist/cli/{views-XJFO5CEH.js → views-JW44TCGL.js} +21 -21
  133. package/dist/cli/{views-AOUHVGV2.mjs → views-KXC4JDT7.mjs} +6 -6
  134. package/dist/cli/{workflow-GY3DBHXX.js → workflow-F5AHL2ET.js} +17 -17
  135. package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-FI4DL7ZI.mjs} +7 -7
  136. package/dist/{client-D1uWA2Vc.d.mts → client-BEJqhQAj.d.mts} +1 -1
  137. package/dist/{client-Hz7SsBXs.d.ts → client-Ceo295L2.d.ts} +1 -1
  138. package/dist/{client-core-D3Ad7Flt.d.ts → client-core-BPYuWfBC.d.ts} +49 -1
  139. package/dist/{client-core-Db_e63Hb.d.mts → client-core-BqetRxx-.d.mts} +49 -1
  140. package/dist/index.d.mts +3 -3
  141. package/dist/index.d.ts +3 -3
  142. package/dist/index.js +9 -9
  143. package/dist/index.mjs +6 -6
  144. package/dist/install-integrity.json +118 -116
  145. package/dist/plays/play-description.d.mts +1 -1
  146. package/dist/plays/play-description.d.ts +1 -1
  147. package/dist/plays/run-request.d.mts +1 -1
  148. package/dist/plays/run-request.d.ts +1 -1
  149. package/dist/release.d.mts +1 -1
  150. package/dist/release.d.ts +1 -1
  151. package/dist/release.js +2 -2
  152. package/dist/release.mjs +1 -1
  153. package/dist/server.d.mts +2 -2
  154. package/dist/server.d.ts +2 -2
  155. package/dist/server.js +5 -5
  156. package/dist/server.mjs +3 -3
  157. package/package.json +1 -1
  158. package/dist/cli/auth-AC5277PI.js +0 -43
  159. package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
  160. package/dist/cli/describe-GYYSLZLV.js +0 -50
  161. package/dist/cli/git-FZIQZNI4.js +0 -25
  162. package/dist/cli/search-JCWJX2XD.js +0 -32
  163. package/dist/cli/sessions-NA4SJH6Q.js +0 -22
  164. package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
  165. package/dist/cli/tools-WJQ6Y7E4.js +0 -57
  166. package/dist/cli/update-ZLRLTBRD.js +0 -34
@@ -37,7 +37,7 @@ import {
37
37
  RETAINED_PIPELINE_RECEIVERS_HEADER,
38
38
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
39
39
  SDK_API_MAJOR
40
- } from "./chunk-DJI5CLLW.mjs";
40
+ } from "./chunk-X4RGDE4J.mjs";
41
41
  import {
42
42
  CustomerDbQueryOutcomeUnknownError
43
43
  } from "./chunk-NURW5XH4.mjs";
@@ -7336,6 +7336,13 @@ var DeeplineClient = class _DeeplineClient {
7336
7336
  * up at 60 s reported a timeout for a plan the server then committed.
7337
7337
  */
7338
7338
  static MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4;
7339
+ /**
7340
+ * The commit budget a sync asks for (#10717): the server stops a staged
7341
+ * commit this long into the request and answers `staged_commit_in_progress`
7342
+ * instead of running into its 300 s limit; the SDK re-sends to continue.
7343
+ * The server caps it at the same value.
7344
+ */
7345
+ static MONITOR_FLEET_COMMIT_BUDGET_MS = 24e4;
7339
7346
  monitorFleetPath(fleetId) {
7340
7347
  return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
7341
7348
  }
@@ -7357,17 +7364,48 @@ var DeeplineClient = class _DeeplineClient {
7357
7364
  ...options?.adoptExisting ? { adopt_existing: true } : {},
7358
7365
  ...options?.expectedGeneration !== void 0 ? { expected_generation: options.expectedGeneration } : {}
7359
7366
  };
7360
- return this.http.request(
7361
- this.monitorFleetPath(fleetId),
7362
- {
7363
- method: "PUT",
7364
- body,
7365
- timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7366
- headers: this.monitorFleetHeaders("sync", options?.idempotencyKey),
7367
- maxRetries: 0,
7368
- exactUrlOnly: true
7367
+ const headers = {
7368
+ ...this.monitorFleetHeaders("sync", options?.idempotencyKey),
7369
+ "X-Deepline-Fleet-Commit-Budget-Ms": String(
7370
+ options?.commitBudgetMs ?? _DeeplineClient.MONITOR_FLEET_COMMIT_BUDGET_MS
7371
+ )
7372
+ };
7373
+ let remainingBefore = Number.POSITIVE_INFINITY;
7374
+ let stalledRequests = 0;
7375
+ for (let attempt = 1; ; attempt += 1) {
7376
+ const result = await this.http.request(
7377
+ this.monitorFleetPath(fleetId),
7378
+ {
7379
+ method: "PUT",
7380
+ body,
7381
+ timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
7382
+ headers,
7383
+ maxRetries: 0,
7384
+ exactUrlOnly: true
7385
+ }
7386
+ );
7387
+ if (result.code !== "staged_commit_in_progress") return result;
7388
+ const staged = result.staged_commit ?? {};
7389
+ const thisRequest = Number(staged.members_committed_this_request);
7390
+ const remaining = Number(staged.members_total) - Number(staged.members_committed);
7391
+ stalledRequests = remaining < remainingBefore ? 0 : stalledRequests + 1;
7392
+ remainingBefore = remaining;
7393
+ if (!(thisRequest > 0) || stalledRequests >= 2) {
7394
+ throw new DeeplineError(
7395
+ `Monitor Fleet '${fleetId}' commit made no progress in request ${attempt}. Re-run the same command to continue from where it stopped.`,
7396
+ 202,
7397
+ "MONITOR_FLEET_COMMIT_STALLED",
7398
+ { response: result }
7399
+ );
7369
7400
  }
7370
- );
7401
+ options?.onCommitProgress?.({
7402
+ fleetId,
7403
+ generation: Number(result.generation),
7404
+ membersCommitted: Number(staged.members_committed),
7405
+ membersTotal: Number(staged.members_total),
7406
+ attempt
7407
+ });
7408
+ }
7371
7409
  }
7372
7410
  async listMonitorFleets() {
7373
7411
  return this.http.request("/api/v2/monitors/fleets", {
@@ -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 _chunkGZFZZQL4js = require('./chunk-GZFZZQL4.js');
3
+ var _chunk4DJNXAPHjs = require('./chunk-4DJNXAPH.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
7
+ var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkGZFZZQL4js.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunk4DJNXAPHjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunk2HPTLBNBjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunk2HPTLBNBjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunk3IUQNHIGjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunk3IUQNHIGjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -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 _chunkGZFZZQL4js = require('./chunk-GZFZZQL4.js');
3
+ var _chunk4DJNXAPHjs = require('./chunk-4DJNXAPH.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
7
+ var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.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 = _chunk2HPTLBNBjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkGZFZZQL4js.PlayClient)(
142
- new (0, _chunk2HPTLBNBjs.HttpClient)(config),
140
+ const config = _chunk3IUQNHIGjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunk4DJNXAPHjs.PlayClient)(
142
+ new (0, _chunk3IUQNHIGjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.547",
52
+ version: "0.3.549",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MF7PCM6C.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-XMBVHJPR.mjs";
6
+ } from "./chunk-J6FINSAK.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-LX35AXTN.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-TNJG4ZPN.mjs";
14
+ } from "./chunk-4QUWXUUJ.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-JL2OTMSG.mjs";
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-TNJG4ZPN.mjs";
5
+ } from "./chunk-4QUWXUUJ.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-GPAWLXW3.mjs";
8
+ } from "./chunk-U6KHWIAO.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1458,17 +1458,40 @@ When:
1458
1458
  every time.
1459
1459
  [[cli:
1460
1460
  Input:
1461
- A local path ending in .play.ts, or a play reference. --full adds the
1462
- diagnostics (static pipeline and diagram); --json prints JSON.
1461
+ A local path ending in .play.ts, or a play reference. --json prints JSON.
1462
+ --full also returns the complete check document under diagnostics
1463
+ (static pipeline, authoring contract with the input JSON Schema, every
1464
+ limit, feature flags).
1463
1465
  ]]
1464
1466
  [[cli:
1465
- Output (JSON):
1466
- valid (boolean), target, name, reference, inputSchema, outputSchema,
1467
- runtimeLimit, note, and for local files any errors or warnings with the
1468
- repair steps. A diagram issue adds node, line and fix (one line to paste);
1469
- diagram counts its boxes, bound, sketched, errors and warnings. Text output
1470
- lists diagram issues by box in flow order and ends with the verdict, e.g.
1471
- Diagram: 11 boxes, all bound \xB7 2 warnings.
1467
+ Output:
1468
+ Text: a verdict line, the file once, then one line each for Input,
1469
+ Datasets, Returns, Steps (kinds of step and the tools), Diagram (its
1470
+ verdict, e.g. 11 boxes, all bound \xB7 2 warnings, then every box in flow
1471
+ order with its line and a decision's arms), Limits (ok unless a limit is
1472
+ not the default or a budget is near its ceiling) and short hashes; then
1473
+ each issue with its fix, diagram issues by box in flow order; then the
1474
+ next commands, with <file> for the path. --full adds every stage and each
1475
+ box's in/out/show.
1476
+ JSON (--json): valid, target, name, issues (every error and warning, with
1477
+ its repair step), diagram (counts), input (one entry per field: name,
1478
+ type, required; nested fields dotted), recognized (datasets, row inputs,
1479
+ outputs, tools), stages (one line each, indented under the stage or
1480
+ conditional arm that runs it), docflow (nodes with id, label, kind, line;
1481
+ edges with from, to, label), sourceHash, artifactHash, graphHash, and
1482
+ actions (runExample.command, publishCmd). runtimeLimit, limits and
1483
+ runAdmission appear only when they are not the default. A named play
1484
+ returns its inputSchema and outputSchema instead.
1485
+ Recognized fields and tools come from static analysis: dataset columns
1486
+ are physical SQL names, CSV passthrough columns are not listed, and a
1487
+ check neither resolves a sample CSV nor proves a provider is available.
1488
+ The run example runs the local file without publishing and may spend
1489
+ credits.
1490
+ ]]
1491
+ [[mcp:
1492
+ Output:
1493
+ The same compact view as the CLI's --json; full: true returns the complete
1494
+ check document.
1472
1495
  ]]
1473
1496
  Cost:
1474
1497
  Free.
@@ -2193,6 +2216,41 @@ Cost:
2193
2216
  Avoid:
2194
2217
  Do not use head or wc to inspect a CSV that a play will consume; [[--summary]]
2195
2218
  gives the row count and column names in one call.
2219
+ `
2220
+ },
2221
+ "monitors fleets deploy": {
2222
+ core: `
2223
+ Purpose:
2224
+ Apply a table-backed Monitor Fleet definition: plan one monitor per
2225
+ selected Customer DB row and commit that plan. The same definition applied
2226
+ twice is the same operation and answers replayed: true.
2227
+ When:
2228
+ After [[--dry-run]] has shown the plan and credits_due_now. Re-run the same
2229
+ command after any failure; every Fleet command is idempotent.
2230
+ [[cli:
2231
+ Input:
2232
+ --file <fleet.json> (or - for stdin), or a bare <fleet-id> to re-plan the
2233
+ stored definition. --dry-run, --adopt-existing, --wait [--timeout],
2234
+ --expected-generation, --idempotency-key, --json. --commit-budget-ms <ms>
2235
+ shortens each request's commit (default and maximum 240000) when something
2236
+ between you and Deepline cuts requests off sooner.
2237
+ ]]
2238
+ Output (JSON):
2239
+ The committed plan: accepted, generation, replayed, plan (creates, updates,
2240
+ removes, blocked, deferred), credits_due_now, next. A Fleet too large to
2241
+ commit inside one request (about 100,000 members on a first deploy) is
2242
+ committed over several: the server stops each at its time budget with
2243
+ code staged_commit_in_progress and the CLI re-sends the same definition
2244
+ until it is committed, printing "Committing Fleet ... members so far" to
2245
+ stderr. Nothing is published until every member is committed; stdout is
2246
+ still the one committed result.
2247
+ Cost:
2248
+ [[--dry-run]] is free. Deploying creates monitors, which spend credits:
2249
+ credits_due_now in the plan is what the creates cost.
2250
+ Avoid:
2251
+ Do not interrupt a multi-request commit and start a different definition:
2252
+ the open stage holds the fleet against another plan for ten minutes. Re-run
2253
+ the same command to continue it.
2196
2254
  `
2197
2255
  },
2198
2256
  "db query": {
@@ -1,9 +1,9 @@
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 _chunkREAFIEV5js = require('./chunk-REAFIEV5.js');
3
+ var _chunkCXFOYRI4js = require('./chunk-CXFOYRI4.js');
4
4
 
5
5
 
6
- var _chunkVNOQEDVCjs = require('./chunk-VNOQEDVC.js');
6
+ var _chunkETLEPHLTjs = require('./chunk-ETLEPHLT.js');
7
7
 
8
8
 
9
9
 
@@ -14,16 +14,16 @@ var _chunkRKF263LRjs = require('./chunk-RKF263LR.js');
14
14
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
15
15
 
16
16
 
17
- var _chunkK3GMDSUXjs = require('./chunk-K3GMDSUX.js');
17
+ var _chunkKBMBNUUWjs = require('./chunk-KBMBNUUW.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
22
+ var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
23
23
 
24
24
 
25
25
 
26
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
26
+ var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  var _fs = require('fs');
@@ -32,14 +32,14 @@ var _path = require('path');
32
32
  // src/cli/doc-read-reporting.ts
33
33
  var REPORT_TIMEOUT_MS = 1e3;
34
34
  async function reportDocRead(docId) {
35
- if (_chunkGJOGFWX3js.isFailureReportingDisabled.call(void 0, )) return;
35
+ if (_chunkQGKX2WBZjs.isFailureReportingDisabled.call(void 0, )) return;
36
36
  try {
37
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
- const apiKey = _chunk2HPTLBNBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
37
+ const baseUrl = _chunk3IUQNHIGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
+ const apiKey = _chunk3IUQNHIGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
39
  if (!apiKey) return;
40
40
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
41
41
  method: "POST",
42
- headers: _chunkGJOGFWX3js.failureReportHeaders.call(void 0, apiKey),
42
+ headers: _chunkQGKX2WBZjs.failureReportHeaders.call(void 0, apiKey),
43
43
  body: JSON.stringify({ doc_id: docId }),
44
44
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
45
45
  });
@@ -52,16 +52,16 @@ function nothingNamed(name) {
52
52
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
53
  }
54
54
  function findNamed2(name, options) {
55
- return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunkK3GMDSUXjs.DeeplineClient)()));
55
+ return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunkKBMBNUUWjs.DeeplineClient)()));
56
56
  }
57
57
  async function describeAnything(name, options, onMissing) {
58
- const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
58
+ const client = new (0, _chunkKBMBNUUWjs.DeeplineClient)();
59
59
  const lookups = _chunkRKF263LRjs.describeLookupsFor.call(void 0, client);
60
60
  const outcome = await _chunkRKF263LRjs.describeName.call(void 0, name, options, {
61
61
  ...lookups,
62
62
  // `tools describe` has already fetched the tool for its compatibility check.
63
63
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
64
- seedStarterScript: _chunkREAFIEV5js.seedToolListScript
64
+ seedStarterScript: _chunkCXFOYRI4js.seedToolListScript
65
65
  });
66
66
  if (outcome.status === "missing") {
67
67
  if (onMissing) return onMissing();
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
87
87
  ` : text;
88
88
  _fs.writeFileSync.call(void 0, path, content);
89
89
  const bytes = Buffer.byteLength(content);
90
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
90
+ _chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
91
91
  { path, bytes },
92
92
  { json, text: `Wrote ${path} (${bytes} bytes)
93
93
  ` }
94
94
  );
95
95
  return 0;
96
96
  }
97
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, { json, text });
97
+ _chunkQGKX2WBZjs.printCommandEnvelope.call(void 0, envelope, { json, text });
98
98
  return 0;
99
99
  }
100
100
  function registerDescribeCommand(program) {
101
- _chunkVNOQEDVCjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
101
+ _chunkETLEPHLTjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
102
102
  "Describe anything search returns: a tool, monitor type, or play."
103
103
  ).addHelpText(
104
104
  "after",
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkYURGAKI3js = require('./chunk-YURGAKI3.js');
3
+ var _chunk7FY7AHR6js = require('./chunk-7FY7AHR6.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
7
+ var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkSAJWYN4Bjs = require('./chunk-SAJWYN4B.js');
12
+ var _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkSAJWYN4Bjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunk5622PYAPjs.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkSAJWYN4Bjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunk5622PYAPjs.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkSAJWYN4Bjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunk5622PYAPjs.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkSAJWYN4Bjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkSAJWYN4Bjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunk5622PYAPjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5622PYAPjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkSAJWYN4Bjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunk5622PYAPjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkQGKX2WBZjs.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkYURGAKI3js.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunk7FY7AHR6js.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
565
+ _chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
597
+ _chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
705
+ _chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-G6KW764N.mjs";
3
+ } from "./chunk-PLJCY35C.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-VPF54TXQ.mjs";
8
+ } from "./chunk-AZSVDAXT.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-TNJG4ZPN.mjs";
3
+ } from "./chunk-4QUWXUUJ.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-TNJG4ZPN.mjs";
3
+ } from "./chunk-4QUWXUUJ.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";