deepline 0.3.355 → 0.3.356

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 (103) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +1 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +24 -0
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
  6. package/dist/cli/auth-IHV3XXSN.js +31 -0
  7. package/dist/cli/{auth-3IQKHFUS.mjs → auth-PFLCB6IL.mjs} +4 -4
  8. package/dist/cli/{billing-2O2HPRIQ.mjs → billing-T3K2KS55.mjs} +4 -4
  9. package/dist/cli/{billing-QACLO2L4.js → billing-TJOZMRIV.js} +73 -73
  10. package/dist/cli/{chunk-J6I4RSDG.js → chunk-26FD35VW.js} +16 -8
  11. package/dist/cli/{chunk-R2O2BKDH.mjs → chunk-2CTZ4MRZ.mjs} +1 -1
  12. package/dist/cli/{chunk-QYKLKWQO.js → chunk-2EYFTDKU.js} +2 -2
  13. package/dist/cli/{chunk-IQJBKSMD.mjs → chunk-2RMJLL3R.mjs} +2 -2
  14. package/dist/cli/{chunk-B2C2PR6I.mjs → chunk-35AZMPQV.mjs} +1 -1
  15. package/dist/cli/{chunk-63CWWQE6.js → chunk-447A2YBS.js} +45 -45
  16. package/dist/cli/{chunk-CG5JEYRX.js → chunk-6GOZN6ZF.js} +60 -60
  17. package/dist/cli/{chunk-5TFTY4H5.mjs → chunk-6S2HRJIV.mjs} +1 -1
  18. package/dist/cli/{chunk-DYWM3EZG.mjs → chunk-7LFNGGH6.mjs} +2 -2
  19. package/dist/cli/{chunk-WMULUP2K.js → chunk-A544Z3OR.js} +4 -4
  20. package/dist/cli/{chunk-6745OKK5.mjs → chunk-AUQYSGGD.mjs} +3 -2
  21. package/dist/cli/{chunk-UAPP5IVJ.mjs → chunk-GD4YCB5C.mjs} +2 -2
  22. package/dist/cli/{chunk-J2WSV37F.js → chunk-HBN5ORV2.js} +6 -6
  23. package/dist/cli/{chunk-CL6NZN6X.js → chunk-HXL4ZESY.js} +227 -224
  24. package/dist/cli/{chunk-GGM6CX2R.js → chunk-LDOOR6AE.js} +15 -15
  25. package/dist/cli/{chunk-CKBJ2PQR.js → chunk-MK3WFSJN.js} +8 -8
  26. package/dist/cli/{chunk-XXC7ST6U.mjs → chunk-NAMT3YP5.mjs} +9 -6
  27. package/dist/cli/{chunk-56UZ4LCT.js → chunk-OIJR6SCZ.js} +26 -26
  28. package/dist/cli/{chunk-CQXFJZ57.js → chunk-OXNEO6OS.js} +48 -48
  29. package/dist/cli/{chunk-FC2SOWXT.mjs → chunk-RPALAI2R.mjs} +5 -5
  30. package/dist/cli/{chunk-PGBSGPQ3.js → chunk-UC27KYXC.js} +11 -10
  31. package/dist/cli/{chunk-USB6LFMD.mjs → chunk-W3VTKDQK.mjs} +11 -3
  32. package/dist/cli/{chunk-SDZW7NSO.mjs → chunk-WF5BHZWA.mjs} +1 -1
  33. package/dist/cli/{chunk-VALEHQXO.mjs → chunk-X4PJURJH.mjs} +2 -2
  34. package/dist/cli/{chunk-64YA2SCL.mjs → chunk-YFLAUIJN.mjs} +4 -4
  35. package/dist/cli/{chunk-TKWCYYIM.js → chunk-YILVDBYO.js} +1 -1
  36. package/dist/cli/client-TDH32IGR.js +20 -0
  37. package/dist/cli/{client-QQMVHMOY.mjs → client-XMFAODL2.mjs} +3 -3
  38. package/dist/cli/{csv-DQBAUFB6.js → csv-4TMZI4RY.js} +12 -12
  39. package/dist/cli/{csv-DWIYPLLH.mjs → csv-NLCVCEZ3.mjs} +3 -3
  40. package/dist/cli/{db-LFLTGHKA.mjs → db-IMLYZF3N.mjs} +4 -4
  41. package/dist/cli/{db-QET2DLHP.js → db-PWID5GLT.js} +29 -29
  42. package/dist/cli/{describe-LR5QXOKB.mjs → describe-LFKBFDRQ.mjs} +8 -8
  43. package/dist/cli/{describe-Z2YFVBNO.js → describe-LTYF5NWH.js} +15 -15
  44. package/dist/cli/{executions-ARKMIMHM.mjs → executions-6UVFDX2O.mjs} +4 -4
  45. package/dist/cli/{executions-5T2TL6CL.js → executions-RB4WIKFH.js} +6 -6
  46. package/dist/cli/{feedback-4POM6CBJ.js → feedback-EOUSGLRS.js} +7 -7
  47. package/dist/cli/{feedback-YAEIOXMS.mjs → feedback-PH3WH5LE.mjs} +3 -3
  48. package/dist/cli/{git-OCMBR5FC.mjs → git-BLVZPTBC.mjs} +4 -4
  49. package/dist/cli/git-V6HWB6JB.js +23 -0
  50. package/dist/cli/index.js +79 -79
  51. package/dist/cli/index.mjs +31 -31
  52. package/dist/cli/{legacy-noops-DCZUS7ES.mjs → legacy-noops-5JDDNT4H.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-IKM26VQP.js → legacy-noops-KQBQ4WMC.js} +7 -7
  54. package/dist/cli/{monitors-P5FGTRL3.js → monitors-IETMP6ER.js} +85 -85
  55. package/dist/cli/{monitors-FYDK5HOY.mjs → monitors-JL7A5ZOX.mjs} +4 -4
  56. package/dist/cli/{org-HAQEVMOO.js → org-HL2CWV6W.js} +60 -60
  57. package/dist/cli/{org-P3EKASXE.mjs → org-L6TG5MRM.mjs} +4 -4
  58. package/dist/cli/{play-VQPA3FJM.mjs → play-42RA7JRU.mjs} +7 -7
  59. package/dist/cli/play-QQLZQILD.js +153 -0
  60. package/dist/cli/{providers-M34KOQTE.js → providers-MASSERVB.js} +7 -7
  61. package/dist/cli/{providers-ATI5HUBZ.mjs → providers-RH5ZPZXO.mjs} +4 -4
  62. package/dist/cli/{quickstart-WBAHFDVT.js → quickstart-6AYK534A.js} +5 -5
  63. package/dist/cli/{quickstart-7YP5G2PM.mjs → quickstart-OMZY743O.mjs} +3 -3
  64. package/dist/cli/search-FR6FXEXN.js +26 -0
  65. package/dist/cli/{search-5DI73SZD.mjs → search-TBOZ5R36.mjs} +5 -5
  66. package/dist/cli/{secrets-C4HJ7BTJ.js → secrets-74CH44OT.js} +13 -13
  67. package/dist/cli/{secrets-F6TOYGUG.mjs → secrets-IN4XCGBJ.mjs} +4 -4
  68. package/dist/cli/{sessions-JG5Y4YHP.mjs → sessions-BAMVNM3F.mjs} +4 -4
  69. package/dist/cli/{sessions-P6ED3JWC.js → sessions-KK47BDGG.js} +5 -5
  70. package/dist/cli/{settings-YERL4MKN.mjs → settings-HZFVYTEW.mjs} +7 -7
  71. package/dist/cli/{settings-UVT6MUZH.js → settings-VSKWLX2B.js} +74 -74
  72. package/dist/cli/{setup-C6NYXZX4.mjs → setup-3YOU6BBX.mjs} +6 -6
  73. package/dist/cli/{setup-LREJO56L.js → setup-IYVMYYZW.js} +41 -41
  74. package/dist/cli/skills-3HFZGYM7.js +28 -0
  75. package/dist/cli/{skills-4HU5RV5M.mjs → skills-DB3TE5LF.mjs} +4 -4
  76. package/dist/cli/{tools-SR46KMKA.mjs → tools-AMNLACHH.mjs} +6 -6
  77. package/dist/cli/tools-GJ7TH2T3.js +40 -0
  78. package/dist/cli/{update-XFV6ELFK.mjs → update-3PBHH5FL.mjs} +6 -6
  79. package/dist/cli/update-SUNCN4SV.js +28 -0
  80. package/dist/cli/{workflow-E2BSA6OI.js → workflow-5YDAWSKH.js} +15 -15
  81. package/dist/cli/{workflow-OHS4NXMP.mjs → workflow-C2KGKJJD.mjs} +5 -5
  82. package/dist/{client-jV6bQunU.d.mts → client-BmKft6Pr.d.mts} +25 -0
  83. package/dist/{client-Chzd2LFo.d.ts → client-Bra0Nc2D.d.ts} +25 -0
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +6 -6
  87. package/dist/index.mjs +3 -3
  88. package/dist/install-integrity.json +76 -76
  89. package/dist/plays/run-request.d.mts +1 -1
  90. package/dist/plays/run-request.d.ts +1 -1
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-Q4OX2XOA.js +0 -31
  97. package/dist/cli/client-ISC4LLIX.js +0 -20
  98. package/dist/cli/git-RZCZI3ER.js +0 -23
  99. package/dist/cli/play-YEQ4JQUW.js +0 -153
  100. package/dist/cli/search-USWDT7PW.js +0 -26
  101. package/dist/cli/skills-74GBPOGS.js +0 -28
  102. package/dist/cli/tools-GUFCJGVW.js +0 -40
  103. package/dist/cli/update-K47QQUCB.js +0 -28
@@ -3204,6 +3204,7 @@ export class DeeplineClient {
3204
3204
  ...(play.activeScheduledPlays
3205
3205
  ? { activeScheduledPlays: play.activeScheduledPlays }
3206
3206
  : {}),
3207
+ ...(play.observedCost ? { observedCost: play.observedCost } : {}),
3207
3208
  };
3208
3209
  }
3209
3210
 
@@ -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.355',
203
+ version: '0.3.356',
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: {
@@ -1393,6 +1393,26 @@ export interface PlayRuntimeLimit {
1393
1393
  }
1394
1394
 
1395
1395
  /** Read-only scheduled-Play capacity guidance for a Play with a cron trigger. */
1396
+ /**
1397
+ * What a prebuilt Play has cost in Deepline credits across recent successful
1398
+ * runs in every workspace. Per-row figures are a run's credits over its output
1399
+ * rows. Observed, not a quote.
1400
+ */
1401
+ export type PrebuiltPlayObservedCost =
1402
+ | {
1403
+ status: 'available';
1404
+ unit: 'row' | 'run';
1405
+ avgCredits: number;
1406
+ maxCredits: number;
1407
+ /** Null until enough runs exist for a median to mean something. */
1408
+ medianCredits: number | null;
1409
+ sampleRunCount: number;
1410
+ windowDays: number;
1411
+ computedAt: string;
1412
+ displayText: string;
1413
+ }
1414
+ | { status: 'unavailable'; reason: string; displayText: string };
1415
+
1396
1416
  export interface PlayScheduledCapacity {
1397
1417
  used: number;
1398
1418
  limit: number;
@@ -1521,6 +1541,8 @@ export interface PlayDefinitionDetail {
1521
1541
  runtimeLimit?: PlayRuntimeLimit | null;
1522
1542
  /** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
1523
1543
  activeScheduledPlays?: PlayScheduledCapacity | null;
1544
+ /** Prebuilt Plays only. */
1545
+ observedCost?: PrebuiltPlayObservedCost | null;
1524
1546
  /** Compatibility field for older readers. */
1525
1547
  currentPublishedVersion?: number | null;
1526
1548
  }
@@ -1702,6 +1724,8 @@ export interface PlayDescription {
1702
1724
  runtimeLimit?: PlayRuntimeLimit | null;
1703
1725
  /** Present for a Play with a cron trigger. Advisory only; publish remains authoritative. */
1704
1726
  activeScheduledPlays?: PlayScheduledCapacity | null;
1727
+ /** Prebuilt Plays only. */
1728
+ observedCost?: PrebuiltPlayObservedCost | null;
1705
1729
  }
1706
1730
 
1707
1731
  /**
@@ -1049,6 +1049,24 @@
1049
1049
  "failureAlert": "convex_action_wrapper",
1050
1050
  "domainReportRequired": true
1051
1051
  },
1052
+ {
1053
+ "id": "convex.refresh-prebuilt-play-cost-stats",
1054
+ "name": "Refresh prebuilt Play cost stats",
1055
+ "scheduler": "convex_cron",
1056
+ "cadence": "53 0 * * *",
1057
+ "timezone": "UTC",
1058
+ "source": "packages/convex/crons.ts",
1059
+ "locator": "refresh prebuilt Play cost stats",
1060
+ "owner": "integrations",
1061
+ "criticality": "operational",
1062
+ "purpose": "Summarize each prebuilt Play's observed Deepline credits per run and per output row over the last 30 days into the figures plays describe and search show.",
1063
+ "successDefinition": "Every system Play's summary row is rewritten; a Play with no measurable run is a valid empty summary.",
1064
+ "failureDefinition": "Listing system Plays, sampling runs, or writing a summary fails, leaving describe and search on the previous figures.",
1065
+ "startGraceMs": 120000,
1066
+ "runTimeoutMs": 1800000,
1067
+ "failureAlert": "convex_action_wrapper",
1068
+ "domainReportRequired": true
1069
+ },
1052
1070
  {
1053
1071
  "id": "convex.salesforce-oauth-refresh-maintenance",
1054
1072
  "name": "Maintain Salesforce OAuth refresh tokens",
@@ -19,6 +19,7 @@ export const MANUALLY_RUNNABLE_CONVEX_CRON_JOB_IDS = [
19
19
  'convex.cleanup-expired-analytics-ip2company-cache',
20
20
  'convex.cleanup-expired-domain-health-cache',
21
21
  'convex.refresh-tool-usage-popularity',
22
+ 'convex.refresh-prebuilt-play-cost-stats',
22
23
  'convex.salesforce-oauth-refresh-maintenance',
23
24
  'convex.monitor-fleet-convergence-tick',
24
25
  'convex.monitor-provider-repair-recovery-tick',
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkOXNEO6OSjs = require('./chunk-OXNEO6OS.js');
13
+ require('./chunk-HBN5ORV2.js');
14
+ require('./chunk-A544Z3OR.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-YILVDBYO.js');
17
+ require('./chunk-7P5AA3SN.js');
18
+ require('./chunk-OG64RBAC.js');
19
+ require('./chunk-COGTRVWW.js');
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkOXNEO6OSjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkOXNEO6OSjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkOXNEO6OSjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkOXNEO6OSjs.handleRegister; exports.handleStatus = _chunkOXNEO6OSjs.handleStatus; exports.handleWait = _chunkOXNEO6OSjs.handleWait; exports.readPendingAuthClaim = _chunkOXNEO6OSjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkOXNEO6OSjs.registerAuthCommands; exports.reportSetupCompleted = _chunkOXNEO6OSjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkOXNEO6OSjs.resolvePendingAuthClaimForResume;
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-VALEHQXO.mjs";
13
- import "./chunk-5TFTY4H5.mjs";
14
- import "./chunk-SDZW7NSO.mjs";
12
+ } from "./chunk-X4PJURJH.mjs";
13
+ import "./chunk-6S2HRJIV.mjs";
14
+ import "./chunk-WF5BHZWA.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-R2O2BKDH.mjs";
16
+ import "./chunk-2CTZ4MRZ.mjs";
17
17
  import "./chunk-NXGCO4JB.mjs";
18
18
  import "./chunk-WZYKRD7T.mjs";
19
19
  import "./chunk-KRD6H754.mjs";
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-6745OKK5.mjs";
5
+ } from "./chunk-AUQYSGGD.mjs";
6
6
  import "./chunk-CBVIJSHF.mjs";
7
7
  import {
8
8
  createTimestampedName,
@@ -10,13 +10,13 @@ import {
10
10
  openInBrowser,
11
11
  printCommandEnvelope,
12
12
  shouldEmitJson
13
- } from "./chunk-5TFTY4H5.mjs";
13
+ } from "./chunk-6S2HRJIV.mjs";
14
14
  import {
15
15
  AuthError,
16
16
  ConfigError
17
- } from "./chunk-SDZW7NSO.mjs";
17
+ } from "./chunk-WF5BHZWA.mjs";
18
18
  import "./chunk-DLIRSHV6.mjs";
19
- import "./chunk-R2O2BKDH.mjs";
19
+ import "./chunk-2CTZ4MRZ.mjs";
20
20
  import "./chunk-6IKARAYD.mjs";
21
21
  import {
22
22
  DeeplineError