deepline 0.3.442 → 0.3.443

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 (123) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +4 -0
  3. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +34 -21
  4. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +11 -0
  6. package/dist/cli/auth-AZVWLMZN.js +40 -0
  7. package/dist/cli/{auth-CUZJMTNS.mjs → auth-CP2CAI7J.mjs} +4 -4
  8. package/dist/cli/{billing-W2U5VKFI.js → billing-JYSP3C76.js} +73 -73
  9. package/dist/cli/{billing-SWH3WAMC.mjs → billing-N36FL3GI.mjs} +4 -4
  10. package/dist/cli/{chunk-P4GMPKMW.mjs → chunk-4A45A2MH.mjs} +1 -1
  11. package/dist/cli/{chunk-TP4TMEML.mjs → chunk-6NUGMJQA.mjs} +4 -1
  12. package/dist/cli/{chunk-C4WXHMKN.js → chunk-6RKZVPFA.js} +2 -2
  13. package/dist/cli/{chunk-7BH4ZOWE.js → chunk-757V3FDW.js} +2 -2
  14. package/dist/cli/{chunk-RWK35AB3.js → chunk-75VUSWF3.js} +6 -6
  15. package/dist/cli/{chunk-YGMUSZLV.mjs → chunk-B6AWQQK6.mjs} +3 -3
  16. package/dist/cli/{chunk-HYJKJJUM.js → chunk-BE2GX674.js} +20 -20
  17. package/dist/cli/{chunk-SOCWFREM.js → chunk-CGZ2KKPM.js} +10 -10
  18. package/dist/cli/{chunk-2GNX6SCO.mjs → chunk-CO3S56DX.mjs} +7 -2
  19. package/dist/cli/{chunk-VLQWLPQU.mjs → chunk-DOKTNYMQ.mjs} +1 -1
  20. package/dist/cli/{chunk-5ZQEDZDQ.mjs → chunk-DPEPHLAF.mjs} +1 -1
  21. package/dist/cli/{chunk-L3JU24MF.js → chunk-EWXXWSQM.js} +11 -8
  22. package/dist/cli/{chunk-KPKU53YO.mjs → chunk-FKAHVFPJ.mjs} +1 -1
  23. package/dist/cli/{chunk-WY4W6PRD.mjs → chunk-FRZLWUM6.mjs} +3 -3
  24. package/dist/cli/{chunk-SMM2EKDC.mjs → chunk-FU7ELMKS.mjs} +1 -1
  25. package/dist/cli/{chunk-KKTRHDLN.mjs → chunk-GVPHPLAX.mjs} +3 -3
  26. package/dist/cli/{chunk-GEHYAQSI.mjs → chunk-HHOJXBQQ.mjs} +2 -2
  27. package/dist/cli/{chunk-DM6Q634K.js → chunk-HTAXXY66.js} +7 -2
  28. package/dist/cli/{chunk-SKXQZUMX.mjs → chunk-HU6PIQDF.mjs} +2 -2
  29. package/dist/cli/{chunk-D7IDBZDR.js → chunk-K4ELTQAT.js} +8 -8
  30. package/dist/cli/{chunk-77DW6WSO.js → chunk-KJH4C2IJ.js} +249 -245
  31. package/dist/cli/{chunk-GEQOPXOS.js → chunk-KNAKCMGJ.js} +17 -17
  32. package/dist/cli/{chunk-2JHQ24IT.js → chunk-KZ2VAXB6.js} +16 -16
  33. package/dist/cli/{chunk-6YWIRIOI.mjs → chunk-L3CW2G7L.mjs} +2 -2
  34. package/dist/cli/{chunk-VUYUI35Q.js → chunk-LRNYRGCN.js} +20 -11
  35. package/dist/cli/{chunk-NBFXQCWM.js → chunk-LVM7CSAH.js} +8 -8
  36. package/dist/cli/{chunk-O765GAOA.mjs → chunk-MQYBXB2J.mjs} +15 -11
  37. package/dist/cli/{chunk-7ICMVQL5.mjs → chunk-MRW6XPDH.mjs} +1 -1
  38. package/dist/cli/{chunk-SZUU2WTZ.js → chunk-MWUTMJCU.js} +1 -1
  39. package/dist/cli/{chunk-AR5YQQF5.mjs → chunk-MZLZNISS.mjs} +2 -2
  40. package/dist/cli/{chunk-K2DHO3IM.js → chunk-OSYT3QQD.js} +26 -26
  41. package/dist/cli/{chunk-GXOQRZXG.js → chunk-PP66EATA.js} +2 -2
  42. package/dist/cli/{chunk-2GVUZA6C.js → chunk-PXXIBSBG.js} +4 -4
  43. package/dist/cli/{chunk-R2QWSSAG.js → chunk-QFXPA2E4.js} +7 -7
  44. package/dist/cli/{chunk-L2FWEP4G.mjs → chunk-VXGLDGOF.mjs} +4 -4
  45. package/dist/cli/{chunk-MLJBCS3E.mjs → chunk-W25OALCJ.mjs} +10 -1
  46. package/dist/cli/{chunk-ODWSTSRJ.mjs → chunk-WOUFCLTM.mjs} +5 -5
  47. package/dist/cli/{chunk-LXTSVUZN.mjs → chunk-WQPJQEDE.mjs} +1 -1
  48. package/dist/cli/{chunk-RR2LZVRA.js → chunk-XIJL6UMV.js} +35 -35
  49. package/dist/cli/{chunk-DUUY2JKP.mjs → chunk-Y45RAHEA.mjs} +2 -2
  50. package/dist/cli/{chunk-D5IOUCJS.js → chunk-YV6N4BF2.js} +52 -52
  51. package/dist/cli/{chunk-LCT6MTYQ.js → chunk-ZXJQ26QG.js} +50 -50
  52. package/dist/cli/command-docs.js +2 -2
  53. package/dist/cli/command-docs.mjs +1 -1
  54. package/dist/cli/{csv-HSR32EPA.mjs → csv-Z53PJEPZ.mjs} +3 -3
  55. package/dist/cli/{csv-C5Z4OZQN.js → csv-ZQFVZ4R3.js} +12 -12
  56. package/dist/cli/{db-JJGI4J5I.mjs → db-4CNIBR5P.mjs} +4 -4
  57. package/dist/cli/{db-AK4ZYYRP.js → db-OHBRQL2N.js} +25 -25
  58. package/dist/cli/{describe-JVSD6F2G.js → describe-AEM7SYXF.js} +24 -24
  59. package/dist/cli/{describe-C35MTKF4.mjs → describe-GAR4MEGX.mjs} +16 -16
  60. package/dist/cli/describe-core.d.mts +1 -1
  61. package/dist/cli/describe-core.d.ts +1 -1
  62. package/dist/cli/describe-core.js +4 -4
  63. package/dist/cli/describe-core.mjs +3 -3
  64. package/dist/cli/{executions-ZEA7O4PX.js → executions-CST4IDL3.js} +6 -6
  65. package/dist/cli/{executions-ZECDB4NA.mjs → executions-YBZPFAD6.mjs} +4 -4
  66. package/dist/cli/{feedback-W7UL4V47.mjs → feedback-FHJE6YDU.mjs} +3 -3
  67. package/dist/cli/{feedback-WQC4SX75.js → feedback-MEJZGB4C.js} +7 -7
  68. package/dist/cli/{git-QBB7LEAV.mjs → git-FIGXIUM5.mjs} +4 -4
  69. package/dist/cli/git-PANOVLJC.js +24 -0
  70. package/dist/cli/index.js +135 -135
  71. package/dist/cli/index.mjs +37 -37
  72. package/dist/cli/{legacy-noops-E5NFHPKQ.mjs → legacy-noops-AXHAIAMH.mjs} +4 -4
  73. package/dist/cli/{legacy-noops-2QPJTEF4.js → legacy-noops-BE3VVOYG.js} +7 -7
  74. package/dist/cli/{monitors-MWBA46VZ.js → monitors-5OTJUY43.js} +84 -84
  75. package/dist/cli/{monitors-E56RLT6N.mjs → monitors-YTWELXP7.mjs} +4 -4
  76. package/dist/cli/{org-KE2DDK5A.mjs → org-WCKS4ZDK.mjs} +4 -4
  77. package/dist/cli/{org-HGIWXACI.js → org-Y5DMTECB.js} +66 -66
  78. package/dist/cli/{play-WO5UXBZM.js → play-B6Y6ZCPV.js} +296 -296
  79. package/dist/cli/{play-LGTF4IYG.mjs → play-UYAZYXHV.mjs} +12 -12
  80. package/dist/cli/{providers-77KQS23B.mjs → providers-IZVVGFAO.mjs} +4 -4
  81. package/dist/cli/{providers-AIJPT54M.js → providers-U7BLFNT4.js} +7 -7
  82. package/dist/cli/{quickstart-EFMHLU4T.mjs → quickstart-BY7N6GXZ.mjs} +3 -3
  83. package/dist/cli/{quickstart-CZQFBJVH.js → quickstart-MTNOTGIH.js} +5 -5
  84. package/dist/cli/{search-U5KEPKNV.mjs → search-SJXJKATQ.mjs} +5 -5
  85. package/dist/cli/search-W7VXB4YP.js +30 -0
  86. package/dist/cli/{secrets-CBBR73U4.js → secrets-C2FN2YMO.js} +13 -13
  87. package/dist/cli/{secrets-JYHZIRO4.mjs → secrets-IA6JBZEF.mjs} +4 -4
  88. package/dist/cli/{sessions-XA2EZDXD.js → sessions-HGJQTLZP.js} +5 -5
  89. package/dist/cli/{sessions-T74U74J7.mjs → sessions-MNK7ZR2Y.mjs} +4 -4
  90. package/dist/cli/{settings-C45BH4CU.mjs → settings-7UBMCVFK.mjs} +8 -8
  91. package/dist/cli/{settings-ND4437UB.js → settings-MRMSITAL.js} +75 -75
  92. package/dist/cli/{setup-QDH6FAEZ.mjs → setup-MD4F55X4.mjs} +7 -7
  93. package/dist/cli/{setup-FQ7JS4HM.js → setup-UX7KNUOW.js} +42 -42
  94. package/dist/cli/{skills-ZFSBA754.mjs → skills-W7SAJDG6.mjs} +5 -5
  95. package/dist/cli/skills-ZY4KFM33.js +29 -0
  96. package/dist/cli/tools-6G4PXAZ3.js +44 -0
  97. package/dist/cli/{tools-OVGOFORB.mjs → tools-VAWJLJAK.mjs} +15 -15
  98. package/dist/cli/update-3D4R5FW6.js +31 -0
  99. package/dist/cli/{update-BNU7VX5M.mjs → update-B2UOERFE.mjs} +7 -7
  100. package/dist/cli/{workflow-FX6GLQ3H.mjs → workflow-3BYE3YFQ.mjs} +5 -5
  101. package/dist/cli/{workflow-JSSXWU3T.js → workflow-K2YJNF64.js} +15 -15
  102. package/dist/{client-BqQ7Rb11.d.ts → client-CBitBZpr.d.ts} +15 -3
  103. package/dist/{client-BCmnJaL9.d.mts → client-CTUbBRgg.d.mts} +15 -3
  104. package/dist/index.d.mts +2 -2
  105. package/dist/index.d.ts +2 -2
  106. package/dist/index.js +6 -6
  107. package/dist/index.mjs +3 -3
  108. package/dist/install-integrity.json +90 -90
  109. package/dist/plays/play-description.d.mts +1 -1
  110. package/dist/plays/play-description.d.ts +1 -1
  111. package/dist/plays/run-request.d.mts +1 -1
  112. package/dist/plays/run-request.d.ts +1 -1
  113. package/dist/release.d.mts +1 -1
  114. package/dist/release.d.ts +1 -1
  115. package/dist/release.js +2 -2
  116. package/dist/release.mjs +1 -1
  117. package/package.json +1 -1
  118. package/dist/cli/auth-HAO2GLGH.js +0 -40
  119. package/dist/cli/git-E7CXCBZZ.js +0 -24
  120. package/dist/cli/search-XMNR7CYI.js +0 -30
  121. package/dist/cli/skills-CSA2YFW6.js +0 -29
  122. package/dist/cli/tools-GUALRDI7.js +0 -44
  123. package/dist/cli/update-K4WJSWDB.js +0 -31
@@ -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.442',
208
+ version: '0.3.443',
209
209
  updateSummary: {
210
210
  introducedIn: '0.3.90',
211
211
  summary:
@@ -445,6 +445,10 @@ export type ToolExecutionMetadata = {
445
445
  windowMs: number;
446
446
  usage: 'queue_hint' | 'enforced' | 'queue_hint_and_enforced' | 'disabled';
447
447
  explicitMaxConcurrency: number | null;
448
+ /** Present when a daily quota restarts at a calendar boundary. */
449
+ resetsAt?: 'utc_midnight';
450
+ /** Present when the rule meters only these credential sources; `env` is Deepline's managed key. */
451
+ credentialSources?: string[];
448
452
  }>;
449
453
  queueHint: {
450
454
  requestsPerSecondHint: number;
@@ -21,6 +21,11 @@ import {
21
21
  BILLING_SALES_GROUP_KEY,
22
22
  } from './billing-sales';
23
23
 
24
+ export const DEFAULT_PLAY_FAILURE_SETTINGS = {
25
+ scope: 'automated',
26
+ failureCount: 1,
27
+ } as const satisfies ProductNotificationPlayFailureSettings;
28
+
24
29
  type NotificationTypeDefinition = {
25
30
  id: string;
26
31
  eventName: ProductNotificationEventName;
@@ -244,19 +249,22 @@ function webhookDeliveryPresentation(
244
249
  };
245
250
  }
246
251
 
247
- /** Narrow a Play rule to all Plays, one trigger kind, or a single Play. */
248
- function applyPlayScope(
249
- eventFilter: ProductNotificationFacts,
252
+ /** Translate a Play scope into the facts its events must match. */
253
+ function playScopeFilter(
250
254
  settings: ProductNotificationPlayFailureSettings,
251
- ) {
252
- if (settings.scope === 'cron') eventFilter.triggerKind = 'cron';
253
- if (settings.scope === 'webhook') eventFilter.triggerKind = 'webhook';
255
+ ): ProductNotificationFacts {
256
+ if (settings.scope === 'automated') return { isAutomated: true };
257
+ if (settings.scope === 'cron' || settings.scope === 'webhook') {
258
+ return { triggerKind: settings.scope };
259
+ }
254
260
  if (settings.scope === 'specific') {
255
261
  if (!settings.playId) throw new Error('Choose a specific Play.');
256
- eventFilter.playId = settings.playId;
257
- if (settings.playName) eventFilter.playName = settings.playName;
262
+ return {
263
+ playId: settings.playId,
264
+ ...(settings.playName ? { playName: settings.playName } : {}),
265
+ };
258
266
  }
259
- return eventFilter;
267
+ return {};
260
268
  }
261
269
 
262
270
  function defaultThreshold(
@@ -967,19 +975,22 @@ const PRODUCT_NOTIFICATION_TYPE_REGISTRY = [
967
975
  description:
968
976
  'Notify for all, scheduled, webhook-triggered, or specific Play failures.',
969
977
  allowMultiple: true,
970
- editor: { kind: 'play_failure', defaultFailureCount: 1 },
978
+ editor: {
979
+ kind: 'play_failure',
980
+ defaultFailureCount: DEFAULT_PLAY_FAILURE_SETTINGS.failureCount,
981
+ },
971
982
  },
972
983
  rule: {
984
+ default: {
985
+ ruleKey: 'default.automated_play_failed',
986
+ groupKey: 'default',
987
+ },
973
988
  create: (input, base) => {
974
- const settings = input.playFailure ?? {
975
- scope: 'all' as const,
976
- failureCount: 1,
977
- };
978
- const eventFilter = applyPlayScope({ ...base.eventFilter }, settings);
989
+ const settings = input.playFailure ?? DEFAULT_PLAY_FAILURE_SETTINGS;
979
990
  const count = Math.max(1, Math.floor(settings.failureCount));
980
991
  return {
981
992
  ...base,
982
- eventFilter,
993
+ eventFilter: { ...base.eventFilter, ...playScopeFilter(settings) },
983
994
  repeatMode: count === 1 ? 'every_match' : 'on_enter',
984
995
  trigger:
985
996
  count === 1
@@ -1013,10 +1024,12 @@ const PRODUCT_NOTIFICATION_TYPE_REGISTRY = [
1013
1024
  rule: {
1014
1025
  create: (input, base) => ({
1015
1026
  ...base,
1016
- eventFilter: applyPlayScope(
1017
- { ...base.eventFilter },
1018
- input.playFailure ?? { scope: 'all', failureCount: 1 },
1019
- ),
1027
+ eventFilter: {
1028
+ ...base.eventFilter,
1029
+ ...playScopeFilter(
1030
+ input.playFailure ?? { scope: 'all', failureCount: 1 },
1031
+ ),
1032
+ },
1020
1033
  repeatMode: 'every_match',
1021
1034
  trigger: { kind: 'each_match' },
1022
1035
  }),
@@ -1096,7 +1109,7 @@ export const PRODUCT_NOTIFICATION_TYPE_DEFINITIONS: readonly NotificationTypeDef
1096
1109
  }));
1097
1110
 
1098
1111
  export type ProductNotificationPlayFailureSettings = {
1099
- scope: 'all' | 'cron' | 'webhook' | 'specific';
1112
+ scope: 'all' | 'automated' | 'cron' | 'webhook' | 'specific';
1100
1113
  playId?: string;
1101
1114
  playName?: string;
1102
1115
  failureCount: number;
@@ -20,7 +20,7 @@ import {
20
20
  * they create sparse copy-on-write overrides.
21
21
  */
22
22
  export const CURRENT_PRODUCT_NOTIFICATION_DEFAULT_POLICY = {
23
- version: 11,
23
+ version: 12,
24
24
  groups: [
25
25
  {
26
26
  groupKey: 'default',
@@ -14,6 +14,16 @@ export const PRODUCT_NOTIFICATION_MAX_EVENT_AGE_MS = 30 * 24 * 60 * 60 * 1_000;
14
14
  export const PRODUCT_NOTIFICATION_MAX_IDENTIFIER_LENGTH = 512;
15
15
  export const PRODUCT_NOTIFICATION_MAX_SOURCE_CLOCK_SKEW_MS = 5 * 60 * 1_000;
16
16
 
17
+ export const AUTOMATED_PLAY_TRIGGER_KINDS = ['cron', 'webhook'] as const;
18
+ export type AutomatedPlayTriggerKind =
19
+ (typeof AUTOMATED_PLAY_TRIGGER_KINDS)[number];
20
+
21
+ export function isAutomatedPlayTrigger(
22
+ triggerKind: unknown,
23
+ ): triggerKind is AutomatedPlayTriggerKind {
24
+ return AUTOMATED_PLAY_TRIGGER_KINDS.some((kind) => kind === triggerKind);
25
+ }
26
+
17
27
  export const ProductNotificationEvent = {
18
28
  CreditsBalanceChanged: 'credits.balance.changed',
19
29
  CreditsPurchaseCompleted: 'credits.purchase.completed',
@@ -162,6 +172,7 @@ export const PRODUCT_NOTIFICATION_EVENT_DEFINITIONS: readonly ProductNotificatio
162
172
  },
163
173
  optionalFacts: {
164
174
  triggerKind: 'string',
175
+ isAutomated: 'boolean',
165
176
  },
166
177
  orderingSubjectFact: 'playId',
167
178
  allowedTriggers: ['each_match', 'consecutive_outcomes'],
@@ -0,0 +1,40 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+ var _chunkZXJQ26QGjs = require('./chunk-ZXJQ26QG.js');
17
+ require('./chunk-EWXXWSQM.js');
18
+ require('./chunk-PXXIBSBG.js');
19
+ require('./chunk-ALJJRZNJ.js');
20
+ require('./chunk-XNYIZMNQ.js');
21
+ require('./chunk-DIAWYWT5.js');
22
+ require('./chunk-MWUTMJCU.js');
23
+ require('./chunk-OG64RBAC.js');
24
+ require('./chunk-COGTRVWW.js');
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkZXJQ26QGjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkZXJQ26QGjs.authStatusLine; exports.clearPendingClaim = _chunkZXJQ26QGjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkZXJQ26QGjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkZXJQ26QGjs.handleRegister; exports.handleStatus = _chunkZXJQ26QGjs.handleStatus; exports.handleWait = _chunkZXJQ26QGjs.handleWait; exports.httpJson = _chunkZXJQ26QGjs.httpJson; exports.readPendingAuthClaim = _chunkZXJQ26QGjs.readPendingAuthClaim; exports.readStatusBanner = _chunkZXJQ26QGjs.readStatusBanner; exports.registerAuthCommands = _chunkZXJQ26QGjs.registerAuthCommands; exports.reportSetupCompleted = _chunkZXJQ26QGjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkZXJQ26QGjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkZXJQ26QGjs.statusBannerLine;
@@ -13,13 +13,13 @@ import {
13
13
  reportSetupCompleted,
14
14
  resolvePendingAuthClaimForResume,
15
15
  statusBannerLine
16
- } from "./chunk-AR5YQQF5.mjs";
17
- import "./chunk-TP4TMEML.mjs";
18
- import "./chunk-P4GMPKMW.mjs";
16
+ } from "./chunk-MZLZNISS.mjs";
17
+ import "./chunk-6NUGMJQA.mjs";
18
+ import "./chunk-4A45A2MH.mjs";
19
19
  import "./chunk-4QF2K7TM.mjs";
20
20
  import "./chunk-DLIRSHV6.mjs";
21
21
  import "./chunk-HBL4PM5Q.mjs";
22
- import "./chunk-VLQWLPQU.mjs";
22
+ import "./chunk-DOKTNYMQ.mjs";
23
23
  import "./chunk-WZYKRD7T.mjs";
24
24
  import "./chunk-KRD6H754.mjs";
25
25
  export {