deepline 0.3.486 → 0.3.488

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 (121) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +7 -2
  4. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +27 -2
  5. package/dist/cli/{auth-B4DJO4FB.mjs → auth-3BTWD5NT.mjs} +5 -5
  6. package/dist/cli/auth-F3OYGJ7T.js +43 -0
  7. package/dist/cli/{billing-GDWAMARK.js → billing-CHCBRT2F.js} +79 -79
  8. package/dist/cli/{billing-IIQ3VNXU.mjs → billing-QROEPF5K.mjs} +6 -6
  9. package/dist/cli/{chunk-UEJLWUJ3.mjs → chunk-2LNTFODA.mjs} +2 -2
  10. package/dist/cli/{chunk-YS6JOYYS.js → chunk-2OHR2B5U.js} +2 -2
  11. package/dist/cli/{chunk-P6KGYOCM.mjs → chunk-3T6HNVZN.mjs} +2 -2
  12. package/dist/cli/{chunk-BYEDI5PM.js → chunk-4BQEGVNC.js} +7 -7
  13. package/dist/cli/{chunk-BNB2RK4L.js → chunk-4BVJ6YSN.js} +5 -5
  14. package/dist/cli/{chunk-QEQ3KHVY.js → chunk-6JTJWIXZ.js} +22 -8
  15. package/dist/cli/{chunk-5Y7LLRWO.mjs → chunk-6RZ2UVFW.mjs} +1 -1
  16. package/dist/cli/{chunk-PCYZDTDC.js → chunk-73H5KG5T.js} +9 -9
  17. package/dist/cli/{chunk-2DVFQYPG.mjs → chunk-AYJVYXES.mjs} +10 -10
  18. package/dist/cli/{chunk-BJL7RYQN.js → chunk-BU2MZXN6.js} +3 -3
  19. package/dist/cli/{chunk-TE2QT2MX.mjs → chunk-C5M43H4F.mjs} +4 -4
  20. package/dist/cli/{chunk-WCOJH4W4.mjs → chunk-CVBMI2HY.mjs} +3 -3
  21. package/dist/cli/{chunk-PYDHVRAF.mjs → chunk-EMPGZXFN.mjs} +4 -4
  22. package/dist/cli/{chunk-PV7AYBKQ.mjs → chunk-F4W4J6BT.mjs} +2 -2
  23. package/dist/cli/{chunk-PHWFY26F.js → chunk-G52LFTXC.js} +2 -2
  24. package/dist/cli/{chunk-S5EYODEG.js → chunk-GBQLNEB7.js} +53 -53
  25. package/dist/cli/{chunk-5QYZ4MEW.mjs → chunk-GXZK35XL.mjs} +2 -2
  26. package/dist/cli/{chunk-ZMRZ3BXG.mjs → chunk-HDUDLOGI.mjs} +5 -5
  27. package/dist/cli/{chunk-TBE2K5W4.mjs → chunk-HO4PLJHS.mjs} +4 -4
  28. package/dist/cli/{chunk-PKOFEHZL.mjs → chunk-IS24BRFV.mjs} +1 -1
  29. package/dist/cli/{chunk-F3G2HAUQ.mjs → chunk-IXQQWEYK.mjs} +1 -1
  30. package/dist/cli/{chunk-NSPMJLYA.js → chunk-KI74RLCP.js} +3 -3
  31. package/dist/cli/{chunk-MJ56FCYU.mjs → chunk-KQKPDXIZ.mjs} +1 -1
  32. package/dist/cli/{chunk-PTM3QRAT.js → chunk-KV5MCYQE.js} +37 -37
  33. package/dist/cli/{chunk-C4GFBB52.js → chunk-LBFU3VRY.js} +26 -26
  34. package/dist/cli/{chunk-5YILTBF7.js → chunk-MBHPAZEA.js} +53 -53
  35. package/dist/cli/{chunk-T3Q6BMVH.mjs → chunk-N7LKHN5C.mjs} +1 -1
  36. package/dist/cli/{chunk-VJLL5XIP.mjs → chunk-NSAI3D4H.mjs} +1 -1
  37. package/dist/cli/{chunk-5DUP4ZUE.js → chunk-OWYXDSU5.js} +21 -21
  38. package/dist/cli/{chunk-GCEUOHJW.js → chunk-P2IEBDEG.js} +7 -7
  39. package/dist/cli/{chunk-KPIVQFXZ.js → chunk-QHMEOHN4.js} +94 -94
  40. package/dist/cli/{chunk-5RLVCOKH.mjs → chunk-QRBDW3X6.mjs} +1 -1
  41. package/dist/cli/{chunk-FGPJXQEJ.mjs → chunk-QT2SPITP.mjs} +2 -2
  42. package/dist/cli/{chunk-TNHY3ATN.js → chunk-QWEQV3R3.js} +8 -8
  43. package/dist/cli/{chunk-DFHS5XVZ.js → chunk-SE252VCN.js} +4 -4
  44. package/dist/cli/{chunk-QD22TY33.js → chunk-SV2VOJF4.js} +7 -7
  45. package/dist/cli/{chunk-YIKHNZ6B.mjs → chunk-TJRGYEDA.mjs} +4 -4
  46. package/dist/cli/{chunk-A456YVDE.mjs → chunk-TKK4TR7B.mjs} +15 -1
  47. package/dist/cli/{chunk-ZQI26KE4.js → chunk-TMIWNHL4.js} +16 -16
  48. package/dist/cli/{chunk-U23L57VU.mjs → chunk-TZSRQYKH.mjs} +2 -2
  49. package/dist/cli/{chunk-PQHDZHZG.mjs → chunk-UUKMZK23.mjs} +2 -2
  50. package/dist/cli/{chunk-S7OILDJH.js → chunk-WER5FPHI.js} +1 -1
  51. package/dist/cli/{chunk-7FTQKEZ6.js → chunk-XGQBBMSP.js} +10 -10
  52. package/dist/cli/{chunk-XAZWUW6I.mjs → chunk-XMBIESQ7.mjs} +5 -5
  53. package/dist/cli/{chunk-FCAKAW6S.js → chunk-ZJVQXD7M.js} +5 -5
  54. package/dist/cli/{chunk-FSCOYTRV.js → chunk-ZYJBIZLV.js} +6 -6
  55. package/dist/cli/{csv-LFCT3WQ4.mjs → csv-74EFMI3L.mjs} +4 -4
  56. package/dist/cli/{csv-3PSMPZM5.js → csv-WQ5IPBPJ.js} +13 -13
  57. package/dist/cli/{db-HULKVAMU.mjs → db-JMTHP7J2.mjs} +6 -6
  58. package/dist/cli/{db-R7I2PPTV.js → db-LUU3EFBM.js} +27 -27
  59. package/dist/cli/describe-35UK3DNO.js +49 -0
  60. package/dist/cli/{describe-D55V42LH.mjs → describe-PKBLERG6.mjs} +17 -17
  61. package/dist/cli/{executions-O37FN2SK.js → executions-LVMXG5GY.js} +8 -8
  62. package/dist/cli/{executions-ICVVOYVG.mjs → executions-SM32REFN.mjs} +6 -6
  63. package/dist/cli/{feedback-MAZQ7C6S.js → feedback-AECGZDEG.js} +8 -8
  64. package/dist/cli/{feedback-3K3QPGCQ.mjs → feedback-V7PEANAR.mjs} +4 -4
  65. package/dist/cli/git-3KBELBUI.js +25 -0
  66. package/dist/cli/{git-2MMD5KJS.mjs → git-BDX3U6NA.mjs} +5 -5
  67. package/dist/cli/index.js +137 -137
  68. package/dist/cli/index.mjs +40 -40
  69. package/dist/cli/{legacy-noops-2OX2Y3Y2.js → legacy-noops-JRGBSX4O.js} +8 -8
  70. package/dist/cli/{legacy-noops-VLSWJ6VE.mjs → legacy-noops-W6E7TXE4.mjs} +5 -5
  71. package/dist/cli/{monitors-UCSV5FOR.js → monitors-JT6QZITH.js} +91 -91
  72. package/dist/cli/{monitors-2NODQQWG.mjs → monitors-RKWUYNER.mjs} +7 -7
  73. package/dist/cli/{org-W7AUQCDE.mjs → org-5XOHJY6O.mjs} +6 -6
  74. package/dist/cli/{org-4YY73VTW.js → org-PALGDO5U.js} +72 -72
  75. package/dist/cli/{pages-ZRP7U5PO.mjs → pages-Q5MG4J6F.mjs} +6 -6
  76. package/dist/cli/{pages-FBZEUMXK.js → pages-UKICE2RA.js} +17 -17
  77. package/dist/cli/{play-LFCTQJXA.js → play-MR324ZTD.js} +312 -312
  78. package/dist/cli/{play-XF2BSGTP.mjs → play-PY5AT3JQ.mjs} +17 -17
  79. package/dist/cli/{providers-5456JNHP.js → providers-MGBLIMRF.js} +9 -9
  80. package/dist/cli/{providers-SICAPKGI.mjs → providers-V3YMXJFB.mjs} +6 -6
  81. package/dist/cli/{quickstart-2KLLIPIU.js → quickstart-LYQ5N6VI.js} +6 -6
  82. package/dist/cli/{quickstart-IBVG6GX6.mjs → quickstart-MMETU4RG.mjs} +4 -4
  83. package/dist/cli/{run-DNLDGJRC.js → run-A5CNTDYQ.js} +37 -36
  84. package/dist/cli/{run-XPIZIQ7H.mjs → run-PZ7CWOJJ.mjs} +23 -22
  85. package/dist/cli/search-4SG3UMIQ.js +32 -0
  86. package/dist/cli/{search-PW22AEAL.mjs → search-IRDHHP7N.mjs} +7 -7
  87. package/dist/cli/{search-output-JFD53H2N.mjs → search-output-7UAKSD7H.mjs} +4 -4
  88. package/dist/cli/{search-output-H6F6QMRF.js → search-output-N7RQNWBW.js} +6 -6
  89. package/dist/cli/{secrets-LCCRRAN7.js → secrets-XJGQ3BLJ.js} +15 -15
  90. package/dist/cli/{secrets-542CTZRZ.mjs → secrets-XN4UDYNN.mjs} +6 -6
  91. package/dist/cli/{sessions-CALLS2XD.mjs → sessions-324MFEFP.mjs} +5 -5
  92. package/dist/cli/{sessions-5FYDQE3N.js → sessions-4UUVDBAO.js} +6 -6
  93. package/dist/cli/{settings-GSKPHUEC.mjs → settings-4EZEUQOS.mjs} +11 -11
  94. package/dist/cli/{settings-ORGKOBP6.js → settings-REBKKLBF.js} +78 -78
  95. package/dist/cli/{setup-4BUWJKB6.js → setup-ELPVMUCK.js} +47 -47
  96. package/dist/cli/{setup-V57GHVAF.mjs → setup-G3VQ5NCJ.mjs} +9 -9
  97. package/dist/cli/{skills-NGLCFQFT.mjs → skills-RLUDQJWB.mjs} +7 -7
  98. package/dist/cli/skills-X5FY5KJM.js +33 -0
  99. package/dist/cli/{tools-G2YNCFNX.mjs → tools-MRAFK3MJ.mjs} +16 -16
  100. package/dist/cli/tools-PCRPD5XD.js +56 -0
  101. package/dist/cli/update-Q4ND4F7E.js +33 -0
  102. package/dist/cli/{update-IZ3Z5T5C.mjs → update-WRTYTP3Y.mjs} +9 -9
  103. package/dist/cli/{workflow-L7ROQIM7.mjs → workflow-ALJ3HLW4.mjs} +7 -7
  104. package/dist/cli/{workflow-7AHST2XV.js → workflow-LHS32WIT.js} +17 -17
  105. package/dist/index.js +9 -9
  106. package/dist/index.mjs +6 -6
  107. package/dist/install-integrity.json +98 -98
  108. package/dist/release.d.mts +1 -1
  109. package/dist/release.d.ts +1 -1
  110. package/dist/release.js +2 -2
  111. package/dist/release.mjs +1 -1
  112. package/dist/server.js +5 -5
  113. package/dist/server.mjs +3 -3
  114. package/package.json +1 -1
  115. package/dist/cli/auth-ARKH3OAU.js +0 -43
  116. package/dist/cli/describe-H47BLOEP.js +0 -49
  117. package/dist/cli/git-RQ2XLFYZ.js +0 -25
  118. package/dist/cli/search-2KQA65LH.js +0 -32
  119. package/dist/cli/skills-KYZPPGSN.js +0 -33
  120. package/dist/cli/tools-AFYXUEMD.js +0 -56
  121. package/dist/cli/update-T6JJ7A3K.js +0 -33
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
205
205
  // getters keep their established compatibility behavior.
206
206
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
207
207
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
208
- version: '0.3.486',
208
+ version: '0.3.488',
209
209
  updateSummary: {
210
210
  introducedIn: '0.3.90',
211
211
  summary:
@@ -1432,6 +1432,24 @@
1432
1432
  "failureAlert": "better_stack_heartbeat",
1433
1433
  "domainReportRequired": true
1434
1434
  },
1435
+ {
1436
+ "id": "play.deepline-play-latency-canary",
1437
+ "name": "Play latency canary",
1438
+ "scheduler": "scheduled_play",
1439
+ "cadence": "7,22,37,52 * * * *",
1440
+ "timezone": "UTC",
1441
+ "source": "scripts/status-page/plays/play-latency-canary.play.ts",
1442
+ "locator": "deepline-play-latency-canary",
1443
+ "owner": "reliability",
1444
+ "criticality": "operational",
1445
+ "purpose": "Launch the provider-free latency workload (scripts/status-page/plays/play-latency-workload.play.ts) through the public run API, as a new user launches a starter, and judge its launch, queue, park, wake and total times and its sandbox count. Ping Better Stack: Deepline Play latency unless the workload failed, and Deepline Play latency (warning) only when it was healthy.",
1446
+ "successDefinition": "The workload completes within 180 s of acceptance with its marker and the paging heartbeat is pinged. The warning heartbeat is also pinged when launch took at most 10 s, queue 15 s, the work before the park 20 s, the wake overshoot 20 s, the work after the wake 10 s and the whole run 60 s, with exactly two sandboxes and all 20 rows.",
1447
+ "failureDefinition": "The run fails when the workload's launch is refused, it does not complete, takes over 180 s or omits its marker, or when a Better Stack call fails. Any healthy limit exceeded, an extra sandbox or a missing row withholds only the warning heartbeat, and the run still completes.",
1448
+ "startGraceMs": 120000,
1449
+ "runTimeoutMs": 600000,
1450
+ "failureAlert": "better_stack_heartbeat",
1451
+ "domainReportRequired": true
1452
+ },
1435
1453
  {
1436
1454
  "id": "convex.monitor-fleet-convergence-tick",
1437
1455
  "name": "Monitor fleet convergence tick",
@@ -2,6 +2,7 @@ import {
2
2
  PLAY_SECRET_UNAVAILABLE,
3
3
  playSecretUnavailableErrorFrom,
4
4
  } from '../plays/secrets/errors';
5
+ import { WORKSPACE_STORAGE_PLANE_FAILED_CODE } from './/run-failure';
5
6
 
6
7
  /**
7
8
  * Stable failure codes written onto a durable webhook receipt or cron
@@ -55,7 +56,8 @@ export type PlayAdmissionBlockedCode =
55
56
  | typeof RUNTIME_DB_SESSION_PRELOAD_INCOMPLETE
56
57
  | typeof PLAY_RUN_ADMISSION_REPLAY_MISSING
57
58
  | typeof PLAY_RUN_LAUNCH_CONFLICT
58
- | typeof PLAY_RUNTIME_CALLBACK_UNCONFIGURED;
59
+ | typeof PLAY_RUNTIME_CALLBACK_UNCONFIGURED
60
+ | typeof WORKSPACE_STORAGE_PLANE_FAILED_CODE;
59
61
 
60
62
  export type PlayAdmissionRetryableCode = typeof PLAY_ADMISSION_INTERNAL_FAILURE;
61
63
 
@@ -85,6 +87,7 @@ const TERMINAL_PRE_ADMISSION_CODES = new Set<PlayAdmissionBlockedCode>([
85
87
  PLAY_RUN_ADMISSION_REPLAY_MISSING,
86
88
  PLAY_RUN_LAUNCH_CONFLICT,
87
89
  PLAY_RUNTIME_CALLBACK_UNCONFIGURED,
90
+ WORKSPACE_STORAGE_PLANE_FAILED_CODE,
88
91
  ]);
89
92
 
90
93
  function stableErrorCode(error: unknown): string | null {
@@ -117,7 +120,9 @@ export function playAdmissionBlockedMessage(code: string): string {
117
120
  ? 'This run identity is already bound to a different launch. Repair the trigger identity before retrying this delivery.'
118
121
  : code === PLAY_RUNTIME_CALLBACK_UNCONFIGURED
119
122
  ? 'This deployment has no public runtime callback URL, so Play workers cannot report progress. Configure the callback (local dev: start the dev tunnel), then retry this delivery.'
120
- : 'This delivery needs attention before it can be retried.';
123
+ : code === WORKSPACE_STORAGE_PLANE_FAILED_CODE
124
+ ? 'Workspace storage is in a failed state, so this Play delivery did not start. Contact Deepline support with the run ID before retrying. This blocked delivery did not use Deepline credits.'
125
+ : 'This delivery needs attention before it can be retried.';
121
126
  }
122
127
 
123
128
  /**
@@ -73,6 +73,9 @@ export const MODAL_PAYLOAD_UPLOAD_TIMEOUT_MESSAGE =
73
73
  'The execution sandbox payload upload timed out before this play began. Re-run the same command; if this keeps happening, contact Deepline support with the run ID.';
74
74
 
75
75
  export const WORKSPACE_STORAGE_NOT_READY_CODE = 'WORKSPACE_STORAGE_NOT_READY';
76
+ /** The workspace data plane is durably failed and needs operator repair. */
77
+ export const WORKSPACE_STORAGE_PLANE_FAILED_CODE =
78
+ 'WORKSPACE_STORAGE_PLANE_FAILED';
76
79
 
77
80
  export const ALL_ADMITTED_ROWS_FAILED_CODE = 'ALL_ADMITTED_ROWS_FAILED';
78
81
 
@@ -173,7 +176,10 @@ export const WORKSPACE_STORAGE_NOT_READY_MESSAGE =
173
176
  'If this keeps happening, contact Deepline support with the run ID.';
174
177
 
175
178
  export class WorkspaceStorageNotReadyError extends Error {
176
- readonly code = WORKSPACE_STORAGE_NOT_READY_CODE;
179
+ readonly code:
180
+ | typeof WORKSPACE_STORAGE_NOT_READY_CODE
181
+ | typeof WORKSPACE_STORAGE_PLANE_FAILED_CODE =
182
+ WORKSPACE_STORAGE_NOT_READY_CODE;
177
183
  constructor(options?: { cause?: unknown }) {
178
184
  // Prefix the code token so `String(error)` and any stored error string
179
185
  // carry it. The run doc persists only the message string, and the read
@@ -192,12 +198,31 @@ export class WorkspaceStorageNotReadyError extends Error {
192
198
  }
193
199
  }
194
200
 
201
+ /**
202
+ * A failed ingestion plane cannot recover through admission retries. Keep the
203
+ * public storage failure text, while giving durable trigger admission a
204
+ * specific code it can park until an operator repairs the plane.
205
+ */
206
+ export class WorkspaceStoragePlaneFailedError extends WorkspaceStorageNotReadyError {
207
+ override readonly code = WORKSPACE_STORAGE_PLANE_FAILED_CODE;
208
+
209
+ constructor(options?: { cause?: unknown }) {
210
+ super(options);
211
+ this.name = 'WorkspaceStoragePlaneFailedError';
212
+ }
213
+ }
214
+
195
215
  export function isWorkspaceStorageNotReadyFailure(error: unknown): boolean {
196
216
  if (error instanceof WorkspaceStorageNotReadyError) return true;
197
217
  if (!error) return false;
198
218
  if (typeof error === 'object') {
199
219
  const code = (error as { code?: unknown }).code;
200
- if (code === WORKSPACE_STORAGE_NOT_READY_CODE) return true;
220
+ if (
221
+ code === WORKSPACE_STORAGE_NOT_READY_CODE ||
222
+ code === WORKSPACE_STORAGE_PLANE_FAILED_CODE
223
+ ) {
224
+ return true;
225
+ }
201
226
  const nestedErrors = (error as { errors?: unknown }).errors;
202
227
  if (
203
228
  Array.isArray(nestedErrors) &&
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-WCOJH4W4.mjs";
18
- import "./chunk-PQHDZHZG.mjs";
19
- import "./chunk-T3Q6BMVH.mjs";
20
- import "./chunk-MJ56FCYU.mjs";
17
+ } from "./chunk-CVBMI2HY.mjs";
18
+ import "./chunk-UUKMZK23.mjs";
19
+ import "./chunk-N7LKHN5C.mjs";
20
+ import "./chunk-KQKPDXIZ.mjs";
21
21
  import "./chunk-4QF2K7TM.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-HBL4PM5Q.mjs";
24
- import "./chunk-5RLVCOKH.mjs";
24
+ import "./chunk-QRBDW3X6.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27
  export {
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkGBQLNEB7js = require('./chunk-GBQLNEB7.js');
18
+ require('./chunk-4BQEGVNC.js');
19
+ require('./chunk-BU2MZXN6.js');
20
+ require('./chunk-SE252VCN.js');
21
+ require('./chunk-ALJJRZNJ.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-DIAWYWT5.js');
24
+ require('./chunk-WER5FPHI.js');
25
+ require('./chunk-OG64RBAC.js');
26
+ require('./chunk-COGTRVWW.js');
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkGBQLNEB7js.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkGBQLNEB7js.authStatusLine; exports.clearPendingClaim = _chunkGBQLNEB7js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkGBQLNEB7js.clearSatisfiedPendingClaim; exports.handleRegister = _chunkGBQLNEB7js.handleRegister; exports.handleStatus = _chunkGBQLNEB7js.handleStatus; exports.handleWait = _chunkGBQLNEB7js.handleWait; exports.httpJson = _chunkGBQLNEB7js.httpJson; exports.readPendingAuthClaim = _chunkGBQLNEB7js.readPendingAuthClaim; exports.readStatusBanner = _chunkGBQLNEB7js.readStatusBanner; exports.registerAuthCommands = _chunkGBQLNEB7js.registerAuthCommands; exports.reportApprovalLinkShown = _chunkGBQLNEB7js.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkGBQLNEB7js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkGBQLNEB7js.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkGBQLNEB7js.statusBannerLine;