deepline 0.3.374 → 0.3.376

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 (99) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +56 -4
  3. package/dist/cli/auth-BTFXJQLT.js +35 -0
  4. package/dist/cli/{auth-YGCDA4WG.mjs → auth-MLCDUTJY.mjs} +6 -4
  5. package/dist/cli/{billing-ZXRKPD5D.js → billing-IONI4V7P.js} +73 -73
  6. package/dist/cli/{billing-3ZLR3CJU.mjs → billing-OUGNDBL4.mjs} +4 -4
  7. package/dist/cli/{chunk-TZTGK5JQ.js → chunk-34KUUN3Z.js} +52 -51
  8. package/dist/cli/{chunk-MOBOAZMA.js → chunk-47X6MQ7J.js} +60 -60
  9. package/dist/cli/{chunk-O7KJYX7R.js → chunk-4V2Q3JO6.js} +15 -15
  10. package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
  11. package/dist/cli/{chunk-T35LCTC7.js → chunk-5HDB7XXT.js} +235 -235
  12. package/dist/cli/{chunk-62IBVKWB.mjs → chunk-5HJHTZI6.mjs} +1 -1
  13. package/dist/cli/{chunk-RT5ICJ5V.js → chunk-6EYTKUDI.js} +2 -2
  14. package/dist/cli/{chunk-IZVGMVNX.mjs → chunk-7LX2G2PU.mjs} +1 -1
  15. package/dist/cli/{chunk-NOSIMGZV.js → chunk-7ZZSGV4A.js} +1 -1
  16. package/dist/cli/{chunk-YPVTQRUM.js → chunk-A6ZTYKYF.js} +33 -7
  17. package/dist/cli/{chunk-HC5L6KGE.js → chunk-ETUV6RRK.js} +1495 -1495
  18. package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
  19. package/dist/cli/{chunk-GT6KGIWV.mjs → chunk-GMRWUGXB.mjs} +3 -3
  20. package/dist/cli/{chunk-A62HBMHY.mjs → chunk-H7SLESX6.mjs} +1467 -1467
  21. package/dist/cli/{chunk-VZSVYNZH.mjs → chunk-HDB4GAWY.mjs} +12 -12
  22. package/dist/cli/{chunk-RXR7A2MX.js → chunk-KHZ6WEVF.js} +26 -26
  23. package/dist/cli/{chunk-OS7GXARW.mjs → chunk-L6OSOKS6.mjs} +7 -7
  24. package/dist/cli/{chunk-NNYQ24O5.mjs → chunk-MHRDXS7J.mjs} +1 -1
  25. package/dist/cli/{chunk-JK547IDB.js → chunk-N6KIEYZV.js} +15 -15
  26. package/dist/cli/{chunk-3XKAOV74.js → chunk-QSH5CHRI.js} +6 -6
  27. package/dist/cli/{chunk-OYTPVM2R.mjs → chunk-SPZNLE2D.mjs} +2 -2
  28. package/dist/cli/{chunk-2DAWTVNN.mjs → chunk-UABI2T3Z.mjs} +2 -2
  29. package/dist/cli/{chunk-E6BZWURC.mjs → chunk-UE2UHYT3.mjs} +33 -7
  30. package/dist/cli/{chunk-MQ5UW5AZ.mjs → chunk-V7ZREPSD.mjs} +4 -4
  31. package/dist/cli/{chunk-SBB27CIJ.mjs → chunk-VL5ERG22.mjs} +2 -2
  32. package/dist/cli/{chunk-FT6O2ZVJ.mjs → chunk-VNBAOWN3.mjs} +13 -32
  33. package/dist/cli/{chunk-PCYCNZLR.js → chunk-Y4MXBE3V.js} +8 -8
  34. package/dist/cli/{chunk-X5V2QTDR.js → chunk-Y5W5IIA4.js} +65 -84
  35. package/dist/cli/{chunk-YFFH6NDU.mjs → chunk-YXQ7SRL3.mjs} +3 -2
  36. package/dist/cli/{chunk-53PZA4EP.js → chunk-ZXFGA2VK.js} +8 -8
  37. package/dist/cli/command-docs.js +2 -2
  38. package/dist/cli/command-docs.mjs +1 -1
  39. package/dist/cli/{csv-WSRTANXI.js → csv-LPC7BGZ2.js} +12 -12
  40. package/dist/cli/{csv-VEHHRUG4.mjs → csv-NITSP7QJ.mjs} +3 -3
  41. package/dist/cli/{db-BH25DX2G.mjs → db-JVDYEXNC.mjs} +4 -4
  42. package/dist/cli/{db-JXZNMFCE.js → db-WGD54UKM.js} +29 -29
  43. package/dist/cli/{describe-N2OBGVJM.js → describe-GA7LSJRY.js} +144 -34
  44. package/dist/cli/{describe-TMBECHTX.mjs → describe-SVMLA6SN.mjs} +130 -20
  45. package/dist/cli/{executions-Y4HQHYSO.mjs → executions-CXBJDGMU.mjs} +4 -4
  46. package/dist/cli/{executions-TX5CQF66.js → executions-P47HEI4N.js} +6 -6
  47. package/dist/cli/{feedback-W7SRXYSP.mjs → feedback-34OSXUQ2.mjs} +3 -3
  48. package/dist/cli/{feedback-ASEJ5A7I.js → feedback-GWKWE5CU.js} +7 -7
  49. package/dist/cli/git-MIPISCON.js +23 -0
  50. package/dist/cli/{git-2W7CZZRC.mjs → git-YAROF6D3.mjs} +4 -4
  51. package/dist/cli/index.js +106 -91
  52. package/dist/cli/index.mjs +63 -48
  53. package/dist/cli/{legacy-noops-TXMPY3P7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
  54. package/dist/cli/{legacy-noops-NJYAAGBY.js → legacy-noops-MDZQL3QH.js} +7 -7
  55. package/dist/cli/{monitors-G4L65QGQ.mjs → monitors-KUGKMABN.mjs} +4 -4
  56. package/dist/cli/{monitors-YLKTQ57D.js → monitors-X7QYWFSP.js} +85 -85
  57. package/dist/cli/{org-ENXO2A33.js → org-6XL3IBT2.js} +64 -64
  58. package/dist/cli/{org-BCHOWKIA.mjs → org-CNBBAN4W.mjs} +4 -4
  59. package/dist/cli/{play-JBY7HUYN.mjs → play-33ZMPAR5.mjs} +8 -8
  60. package/dist/cli/play-3CM3P2DS.js +155 -0
  61. package/dist/cli/{providers-JV2DZG43.mjs → providers-3OSQNFPE.mjs} +4 -4
  62. package/dist/cli/{providers-GWFX3E7C.js → providers-5POAURDT.js} +7 -7
  63. package/dist/cli/{quickstart-CASPK7F4.js → quickstart-LQGPDJTS.js} +5 -5
  64. package/dist/cli/{quickstart-AIXURXZQ.mjs → quickstart-QICTOOW6.mjs} +3 -3
  65. package/dist/cli/search-A2YLJ4I5.js +26 -0
  66. package/dist/cli/{search-DYQB7LHK.mjs → search-HBIX4SF4.mjs} +5 -5
  67. package/dist/cli/{secrets-RQZPIPO5.mjs → secrets-6MRGZPHT.mjs} +4 -4
  68. package/dist/cli/{secrets-AZQG2E4U.js → secrets-QKPBNQ3E.js} +13 -13
  69. package/dist/cli/{sessions-3FJJDMBB.mjs → sessions-NODY2OW4.mjs} +4 -4
  70. package/dist/cli/{sessions-ZY6RBYD4.js → sessions-NP7BLZD2.js} +5 -5
  71. package/dist/cli/{settings-GXKWNR5V.js → settings-42QHXUB2.js} +74 -74
  72. package/dist/cli/{settings-UNZDQGSE.mjs → settings-JCEIOTNL.mjs} +7 -7
  73. package/dist/cli/{setup-PIRXJ2KJ.mjs → setup-3QR4RGMG.mjs} +6 -6
  74. package/dist/cli/{setup-UURZD4YO.js → setup-5XXWP54Y.js} +41 -41
  75. package/dist/cli/skills-4JJEAA66.js +28 -0
  76. package/dist/cli/{skills-B4AQEIAF.mjs → skills-U4OMXLNS.mjs} +4 -4
  77. package/dist/cli/{tools-UMGQKUSW.mjs → tools-45OROEZQ.mjs} +7 -7
  78. package/dist/cli/tools-FDCFSA7W.js +40 -0
  79. package/dist/cli/{update-SFUTMEKL.mjs → update-2XCRMJ4R.mjs} +6 -6
  80. package/dist/cli/update-VYL4TXIE.js +28 -0
  81. package/dist/cli/{workflow-CDAJCMT7.js → workflow-47P4LQNC.js} +15 -15
  82. package/dist/cli/{workflow-ON6XVW36.mjs → workflow-7X3GCOPY.mjs} +5 -5
  83. package/dist/index.js +8 -8
  84. package/dist/index.mjs +7 -7
  85. package/dist/install-integrity.json +76 -78
  86. package/dist/release.d.mts +1 -1
  87. package/dist/release.d.ts +1 -1
  88. package/dist/release.js +2 -2
  89. package/dist/release.mjs +1 -1
  90. package/package.json +1 -1
  91. package/dist/cli/auth-IFXXXZP6.js +0 -33
  92. package/dist/cli/client-O6IEMURJ.js +0 -20
  93. package/dist/cli/client-TV254HC4.mjs +0 -20
  94. package/dist/cli/git-SSSOIQ2L.js +0 -23
  95. package/dist/cli/play-SSJ3PO4D.js +0 -155
  96. package/dist/cli/search-N7K6A2YV.js +0 -26
  97. package/dist/cli/skills-4OUZLKTW.js +0 -28
  98. package/dist/cli/tools-MIZS5UN6.js +0 -40
  99. package/dist/cli/update-3CO7LA4M.js +0 -28
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.374',
203
+ version: '0.3.376',
204
204
  updateSummary:
205
205
  '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.',
206
206
  packageCapabilities: {
@@ -1,6 +1,56 @@
1
+ /**
2
+ * Gateway statuses the edge in front of Convex answers with when it could not
3
+ * get a response from the deployment. 504 is deliberately absent: it means the
4
+ * deployment accepted the request and did not answer in time, so a caller that
5
+ * replays on this classification could apply a mutation twice.
6
+ */
7
+ export const CONVEX_EDGE_UNAVAILABLE_STATUSES: ReadonlySet<number> = new Set([
8
+ 502, 503,
9
+ ]);
10
+
11
+ /**
12
+ * Convex answered a request with a gateway status and no Convex response body.
13
+ * Convex reports its own failures as JSON, so a non-JSON 502/503 came from
14
+ * the edge in front of the deployment (Cloudflare), not from a function. The
15
+ * Convex HTTP clients raise this from their fetch, before the SDK turns the
16
+ * page into an untyped `Error(body)`, so the classifier never depends on the
17
+ * wording of a page the edge provider can change.
18
+ */
19
+ export class ConvexEdgeUnavailableError extends Error {
20
+ readonly status: number;
21
+ /** Cloudflare's request id for the failed hop, when the edge sent one. */
22
+ readonly cfRay: string | null;
23
+
24
+ constructor(input: {
25
+ status: number;
26
+ statusText: string;
27
+ cfRay: string | null;
28
+ }) {
29
+ // The ray id stays a field: other classifiers read status codes out of
30
+ // error messages, and a hex id can contain one.
31
+ super(
32
+ `Convex edge returned HTTP ${input.status}${
33
+ input.statusText ? ` ${input.statusText}` : ''
34
+ } without a Convex response.`,
35
+ );
36
+ this.name = 'ConvexEdgeUnavailableError';
37
+ this.status = input.status;
38
+ this.cfRay = input.cfRay;
39
+ }
40
+ }
41
+
1
42
  export function transientServiceUnavailableDetail(
2
43
  error: unknown,
3
44
  ): string | null {
45
+ // The name check covers an error raised by another copy of this module: the
46
+ // client registry is global, so a cached client keeps the class it was
47
+ // built with.
48
+ if (
49
+ error instanceof ConvexEdgeUnavailableError ||
50
+ (error instanceof Error && error.name === 'ConvexEdgeUnavailableError')
51
+ ) {
52
+ return error.message;
53
+ }
4
54
  const detail = error instanceof Error ? error.message : String(error);
5
55
  // The Convex HTTP client surfaces socket/DNS interruptions as the native
6
56
  // Undici `TypeError: fetch failed`, without an HTTP envelope. Callers only
@@ -9,10 +59,12 @@ export function transientServiceUnavailableDetail(
9
59
  return detail;
10
60
  }
11
61
  // A Convex deployment can also be briefly unreachable at its Cloudflare
12
- // edge. Unlike the normal JSON envelope, the HTTP client passes that 502
13
- // page through as its error message. Keep this narrow to Convex's own
14
- // branded page: an arbitrary application response that happens to mention
15
- // a gateway must never make a caller retryable.
62
+ // edge. The server clients raise that as ConvexEdgeUnavailableError above;
63
+ // this branded-page match remains for any client that does not fetch through
64
+ // them, where the SDK passes the page through as its error message. Keep
65
+ // this narrow to Convex's own branded page: an arbitrary application
66
+ // response that happens to mention a gateway must never make a caller
67
+ // retryable.
16
68
  if (
17
69
  /convex\.cloud\s*\|\s*502\s*:\s*Bad gateway[\s\S]*Error code\s*502/i.test(
18
70
  detail,
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+ var _chunk34KUUN3Zjs = require('./chunk-34KUUN3Z.js');
15
+ require('./chunk-QSH5CHRI.js');
16
+ require('./chunk-N6KIEYZV.js');
17
+ require('./chunk-XNYIZMNQ.js');
18
+ require('./chunk-7P5AA3SN.js');
19
+ require('./chunk-7ZZSGV4A.js');
20
+ require('./chunk-OG64RBAC.js');
21
+ require('./chunk-COGTRVWW.js');
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ exports.EXIT_WORKSPACE_MISMATCH = _chunk34KUUN3Zjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunk34KUUN3Zjs.authStatusLine; exports.clearPendingClaim = _chunk34KUUN3Zjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunk34KUUN3Zjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunk34KUUN3Zjs.handleRegister; exports.handleStatus = _chunk34KUUN3Zjs.handleStatus; exports.handleWait = _chunk34KUUN3Zjs.handleWait; exports.httpJson = _chunk34KUUN3Zjs.httpJson; exports.readPendingAuthClaim = _chunk34KUUN3Zjs.readPendingAuthClaim; exports.registerAuthCommands = _chunk34KUUN3Zjs.registerAuthCommands; exports.reportSetupCompleted = _chunk34KUUN3Zjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunk34KUUN3Zjs.resolvePendingAuthClaimForResume;
@@ -6,16 +6,17 @@ import {
6
6
  handleRegister,
7
7
  handleStatus,
8
8
  handleWait,
9
+ httpJson,
9
10
  readPendingAuthClaim,
10
11
  registerAuthCommands,
11
12
  reportSetupCompleted,
12
13
  resolvePendingAuthClaimForResume
13
- } from "./chunk-YFFH6NDU.mjs";
14
- import "./chunk-NNYQ24O5.mjs";
15
- import "./chunk-VZSVYNZH.mjs";
14
+ } from "./chunk-YXQ7SRL3.mjs";
15
+ import "./chunk-MHRDXS7J.mjs";
16
+ import "./chunk-HDB4GAWY.mjs";
16
17
  import "./chunk-DLIRSHV6.mjs";
17
18
  import "./chunk-NXGCO4JB.mjs";
18
- import "./chunk-IZVGMVNX.mjs";
19
+ import "./chunk-7LX2G2PU.mjs";
19
20
  import "./chunk-WZYKRD7T.mjs";
20
21
  import "./chunk-KRD6H754.mjs";
21
22
  export {
@@ -26,6 +27,7 @@ export {
26
27
  handleRegister,
27
28
  handleStatus,
28
29
  handleWait,
30
+ httpJson,
29
31
  readPendingAuthClaim,
30
32
  registerAuthCommands,
31
33
  reportSetupCompleted,