deepline 0.3.87 → 0.3.88

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 (65) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/monitor-fleet-contract.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +1 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts +0 -6
  7. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +1 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +1 -1
  9. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +0 -302
  10. package/dist/bundling-sources/shared_libs/plays/email-status.ts +1 -1
  11. package/dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts +2 -2
  12. package/dist/bundling-sources/shared_libs/runtime-env.ts +0 -6
  13. package/dist/cli/index.js +4 -6
  14. package/dist/cli/index.mjs +4 -6
  15. package/dist/index.d.mts +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +3 -3
  18. package/dist/index.mjs +3 -3
  19. package/dist/install-integrity.json +2 -45
  20. package/package.json +1 -3
  21. package/dist/bundling-sources/shared_libs/integration-contracts/AGENTS.md +0 -9
  22. package/dist/bundling-sources/shared_libs/integration-contracts/README.md +0 -3
  23. package/dist/bundling-sources/shared_libs/integration-contracts/index.ts +0 -2
  24. package/dist/bundling-sources/shared_libs/monitors/analytics-install-guides.ts +0 -77
  25. package/dist/bundling-sources/shared_libs/monitors/billing/charges.ts +0 -125
  26. package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +0 -686
  27. package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +0 -54
  28. package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +0 -72
  29. package/dist/bundling-sources/shared_libs/monitors/billing/session.ts +0 -45
  30. package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +0 -454
  31. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +0 -260
  32. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +0 -215
  33. package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -333
  34. package/dist/bundling-sources/shared_libs/monitors/cursor-page.ts +0 -42
  35. package/dist/bundling-sources/shared_libs/monitors/framework-managed-payload-fields.ts +0 -71
  36. package/dist/bundling-sources/shared_libs/monitors/generated/provider-monitor-callback-admission-targets.ts +0 -16
  37. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +0 -267
  38. package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +0 -39
  39. package/dist/bundling-sources/shared_libs/monitors/inbound-queue.ts +0 -82
  40. package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +0 -473
  41. package/dist/bundling-sources/shared_libs/monitors/package.json +0 -29
  42. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +0 -1125
  43. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +0 -964
  44. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-consumer-health.ts +0 -56
  45. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +0 -131
  46. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +0 -527
  47. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-legacy-aliases.ts +0 -16
  48. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-priority-execution.ts +0 -56
  49. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +0 -28
  50. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-runtime-read-eligibility.ts +0 -38
  51. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-status.ts +0 -10
  52. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +0 -112
  53. package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +0 -300
  54. package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +0 -22
  55. package/dist/bundling-sources/shared_libs/monitors/snitcher-install-validation.ts +0 -93
  56. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +0 -332
  57. package/dist/bundling-sources/shared_libs/monitors/snitcher-radar.ts +0 -221
  58. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -105
  59. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +0 -73
  60. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +0 -81
  61. package/dist/bundling-sources/shared_libs/monitors/tsconfig.json +0 -10
  62. package/dist/bundling-sources/shared_libs/security/header-safe-env.ts +0 -28
  63. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +0 -267
  64. /package/dist/bundling-sources/shared_libs/{integration-contracts/bettercontact/execution-policy.ts → integrations/bettercontact-execution-policy.ts} +0 -0
  65. /package/dist/bundling-sources/shared_libs/{integration-contracts/theirstack/execution-policy.ts → integrations/theirstack-execution-policy.ts} +0 -0
@@ -23,52 +23,11 @@
23
23
  "dist/bundling-sources/sdk/src/tool-output.ts",
24
24
  "dist/bundling-sources/sdk/src/types.ts",
25
25
  "dist/bundling-sources/sdk/src/version.ts",
26
- "dist/bundling-sources/shared_libs/integration-contracts/AGENTS.md",
27
- "dist/bundling-sources/shared_libs/integration-contracts/bettercontact/execution-policy.ts",
28
- "dist/bundling-sources/shared_libs/integration-contracts/index.ts",
29
- "dist/bundling-sources/shared_libs/integration-contracts/README.md",
30
- "dist/bundling-sources/shared_libs/integration-contracts/theirstack/execution-policy.ts",
31
- "dist/bundling-sources/shared_libs/monitors/analytics-install-guides.ts",
32
- "dist/bundling-sources/shared_libs/monitors/billing/charges.ts",
33
- "dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts",
34
- "dist/bundling-sources/shared_libs/monitors/billing/pricing.ts",
35
- "dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts",
36
- "dist/bundling-sources/shared_libs/monitors/billing/session.ts",
37
- "dist/bundling-sources/shared_libs/monitors/billing/state.ts",
38
- "dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts",
39
- "dist/bundling-sources/shared_libs/monitors/billing/types.ts",
40
- "dist/bundling-sources/shared_libs/monitors/callback-security.ts",
41
- "dist/bundling-sources/shared_libs/monitors/cursor-page.ts",
26
+ "dist/bundling-sources/shared_libs/integrations/bettercontact-execution-policy.ts",
27
+ "dist/bundling-sources/shared_libs/integrations/theirstack-execution-policy.ts",
42
28
  "dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts",
43
- "dist/bundling-sources/shared_libs/monitors/framework-managed-payload-fields.ts",
44
- "dist/bundling-sources/shared_libs/monitors/generated/provider-monitor-callback-admission-targets.ts",
45
- "dist/bundling-sources/shared_libs/monitors/http-error-response.ts",
46
- "dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts",
47
- "dist/bundling-sources/shared_libs/monitors/inbound-queue.ts",
48
- "dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts",
49
29
  "dist/bundling-sources/shared_libs/monitors/monitor-fleet-limits.ts",
50
30
  "dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts",
51
- "dist/bundling-sources/shared_libs/monitors/package.json",
52
- "dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts",
53
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts",
54
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-consumer-health.ts",
55
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts",
56
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts",
57
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-legacy-aliases.ts",
58
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-priority-execution.ts",
59
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts",
60
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-runtime-read-eligibility.ts",
61
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-status.ts",
62
- "dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts",
63
- "dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts",
64
- "dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts",
65
- "dist/bundling-sources/shared_libs/monitors/snitcher-install-validation.ts",
66
- "dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts",
67
- "dist/bundling-sources/shared_libs/monitors/snitcher-radar.ts",
68
- "dist/bundling-sources/shared_libs/monitors/starter-templates.ts",
69
- "dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts",
70
- "dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts",
71
- "dist/bundling-sources/shared_libs/monitors/tsconfig.json",
72
31
  "dist/bundling-sources/shared_libs/monitors/validation.ts",
73
32
  "dist/bundling-sources/shared_libs/observability/node-tracing.ts",
74
33
  "dist/bundling-sources/shared_libs/observability/redaction.ts",
@@ -302,11 +261,9 @@
302
261
  "dist/bundling-sources/shared_libs/plays/user-code-safety.ts",
303
262
  "dist/bundling-sources/shared_libs/product-notifications/contract.ts",
304
263
  "dist/bundling-sources/shared_libs/runtime-env.ts",
305
- "dist/bundling-sources/shared_libs/security/header-safe-env.ts",
306
264
  "dist/bundling-sources/shared_libs/security/outbound-url-policy.ts",
307
265
  "dist/bundling-sources/shared_libs/security/safe-fetch.ts",
308
266
  "dist/bundling-sources/shared_libs/security/safe-outbound-fetch.ts",
309
- "dist/bundling-sources/shared_libs/security/secret-redaction.ts",
310
267
  "dist/bundling-sources/shared_libs/tool-execution-error.ts",
311
268
  "dist/cli/index.d.mts",
312
269
  "dist/cli/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.87",
3
+ "version": "0.3.88",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",
@@ -54,8 +54,6 @@
54
54
  "esbuild": "^0.27.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@deepline/billing": "workspace:*",
58
- "@deepline/integration-contracts": "workspace:*",
59
57
  "@deepline/play-runtime": "workspace:*",
60
58
  "@deepline/plays": "workspace:*",
61
59
  "@deepline/product-notifications": "workspace:*",
@@ -1,9 +0,0 @@
1
- # Integration Contracts
2
-
3
- This package is the only integration-owned boundary shared with public clients.
4
-
5
- - Put a value here only when both `packages/integrations` and a public client such as `packages/sdk` must interpret it identically.
6
- - Keep contracts pure and dependency-light. Do not import provider runtimes, generated catalogs, credentials, billing implementations, action schemas, or application code.
7
- - Provider implementations and server-only policy remain in `packages/integrations`.
8
- - The public SDK bundles this package; it must not acquire a runtime dependency on a private workspace package.
9
- - Prefer a server-driven protocol over adding provider-specific client knowledge when compatibility permits it.
@@ -1,3 +0,0 @@
1
- # `@deepline/integration-contracts`
2
-
3
- Pure contracts that must be interpreted identically by integration runtimes and public clients. Server-only integration code belongs in `packages/integrations`; SDK-only behavior belongs in `packages/sdk`.
@@ -1,2 +0,0 @@
1
- export * from './bettercontact/execution-policy';
2
- export * from './theirstack/execution-policy';
@@ -1,77 +0,0 @@
1
- export type AnalyticsInstallGuide = {
2
- id: 'html' | 'wordpress' | 'react' | 'nextjs' | 'gtm' | 'webflow' | 'shopify';
3
- label: string;
4
- steps: string[];
5
- };
6
-
7
- /** Kept as data so the UI, email preview, and regression test share one guide source. */
8
- export const ANALYTICS_INSTALL_GUIDES: readonly AnalyticsInstallGuide[] = [
9
- {
10
- id: 'html',
11
- label: 'HTML',
12
- steps: [
13
- 'Open the shared layout or template used by every page.',
14
- 'Paste the loader immediately before the closing </head> tag, publish, then validate below.',
15
- ],
16
- },
17
- {
18
- id: 'wordpress',
19
- label: 'WordPress',
20
- steps: [
21
- 'Install or open WPCode / Insert Headers and Footers.',
22
- 'Add the loader to the site-wide Header area, save it, clear any cache, then validate below.',
23
- ],
24
- },
25
- {
26
- id: 'react',
27
- label: 'React',
28
- steps: [
29
- 'Open the root HTML template (usually public/index.html).',
30
- 'Paste the loader in <head>, not inside a rendered component, deploy, then validate below.',
31
- ],
32
- },
33
- {
34
- id: 'nextjs',
35
- label: 'Next.js',
36
- steps: [
37
- 'Open app/layout.tsx (or pages/_document.tsx in the Pages Router).',
38
- 'Use the Next.js code below once in the document head, deploy, then validate below.',
39
- ],
40
- },
41
- {
42
- id: 'gtm',
43
- label: 'Google Tag Manager',
44
- steps: [
45
- 'Create a new Custom HTML tag and paste the loader.',
46
- 'Trigger it on All Pages, publish the container, then validate below.',
47
- ],
48
- },
49
- {
50
- id: 'webflow',
51
- label: 'Webflow',
52
- steps: [
53
- 'Open Project settings → Custom code.',
54
- 'Paste the loader in Head code, publish the site, then validate below.',
55
- ],
56
- },
57
- {
58
- id: 'shopify',
59
- label: 'Shopify',
60
- steps: [
61
- 'Open Online Store → Themes → Edit code → layout/theme.liquid.',
62
- 'Paste the loader immediately before </head>, save the theme, then validate below.',
63
- ],
64
- },
65
- ];
66
-
67
- function scriptBody(loader: string) {
68
- return loader.replace(/^<script>\s*/i, '').replace(/\s*<\/script>$/i, '');
69
- }
70
-
71
- export function analyticsGuideCode(
72
- guide: AnalyticsInstallGuide,
73
- loader: string,
74
- ) {
75
- if (guide.id !== 'nextjs') return loader;
76
- return `import Script from 'next/script';\n\n<Script\n id="deepline-analytics"\n strategy="afterInteractive"\n dangerouslySetInnerHTML={{ __html: ${JSON.stringify(scriptBody(loader))} }}\n/>`;
77
- }
@@ -1,125 +0,0 @@
1
- import type {
2
- MonitorBillingPhase,
3
- MonitorBillingPolicy,
4
- MonitorRetailCharge,
5
- MonitorRetailChargeComponent,
6
- } from '@deepline/monitors/billing/types';
7
-
8
- export type MonitorCustomerChargeQuote = {
9
- providerCapability: string;
10
- phase: MonitorBillingPhase;
11
- providerCostKey?: string;
12
- knownCredits: number;
13
- pendingProviderCostKeys: string[];
14
- components: readonly MonitorRetailChargeComponent[];
15
- };
16
-
17
- export type PublicMonitorCustomerChargeSummary = {
18
- phase: Extract<MonitorBillingPhase, 'create' | 'reactivate'>;
19
- label: string;
20
- known_credits: number;
21
- pending_provider_pricing: boolean;
22
- display: string;
23
- variable_by_payload?: boolean;
24
- };
25
-
26
- function chargesForPhase(
27
- policy: MonitorBillingPolicy,
28
- phase: MonitorBillingPhase,
29
- ): MonitorRetailCharge[] {
30
- return [
31
- policy.customerCreateCharge,
32
- policy.customerReactivateCharge,
33
- ...policy.customerUsageCharges,
34
- ].filter((charge) => charge.phase === phase);
35
- }
36
-
37
- export function quoteMonitorCustomerCharge(input: {
38
- policy: MonitorBillingPolicy;
39
- phase: MonitorBillingPhase;
40
- providerCostKey?: string;
41
- }): MonitorCustomerChargeQuote {
42
- let knownCredits = 0;
43
- const pendingProviderCostKeys: string[] = [];
44
- const components = chargesForPhase(input.policy, input.phase)
45
- .flatMap((charge) => charge.components)
46
- .filter(
47
- (component) =>
48
- component.kind !== 'upstream_cost_markup' ||
49
- !input.providerCostKey ||
50
- component.providerCostKey === input.providerCostKey,
51
- );
52
-
53
- for (const component of components) {
54
- if (component.kind === 'fixed_deepline_credits') {
55
- knownCredits += component.credits;
56
- }
57
- if (component.kind === 'upstream_cost_markup') {
58
- if (typeof component.retailCredits === 'number') {
59
- knownCredits += component.retailCredits;
60
- } else {
61
- pendingProviderCostKeys.push(component.providerCostKey);
62
- }
63
- }
64
- }
65
-
66
- return {
67
- providerCapability: input.policy.providerCapability,
68
- phase: input.phase,
69
- ...(input.providerCostKey
70
- ? { providerCostKey: input.providerCostKey }
71
- : {}),
72
- knownCredits,
73
- pendingProviderCostKeys,
74
- components,
75
- };
76
- }
77
-
78
- function formatCredits(credits: number) {
79
- return `${credits.toLocaleString('en')} Deepline ${
80
- credits === 1 ? 'credit' : 'credits'
81
- }`;
82
- }
83
-
84
- export function publicMonitorCustomerChargeSummary(input: {
85
- policy: MonitorBillingPolicy;
86
- phase: Extract<MonitorBillingPhase, 'create' | 'reactivate'>;
87
- }): PublicMonitorCustomerChargeSummary {
88
- if (input.policy.payloadPricing) {
89
- const primaryCharge =
90
- input.phase === 'create'
91
- ? input.policy.customerCreateCharge
92
- : input.policy.customerReactivateCharge;
93
- return {
94
- phase: input.phase,
95
- label: primaryCharge.label,
96
- known_credits: 0,
97
- pending_provider_pricing: false,
98
- variable_by_payload: true,
99
- display: `Varies by ${input.policy.payloadPricing.discriminator}; see per-type pricing.`,
100
- };
101
- }
102
- const quote = quoteMonitorCustomerCharge(input);
103
- const primaryCharge =
104
- input.phase === 'create'
105
- ? input.policy.customerCreateCharge
106
- : input.policy.customerReactivateCharge;
107
- const hasPendingProviderPricing = quote.pendingProviderCostKeys.length > 0;
108
- const display = hasPendingProviderPricing
109
- ? quote.knownCredits > 0
110
- ? `At least ${formatCredits(
111
- quote.knownCredits,
112
- )}; provider-specific monitor pricing is still being resolved.`
113
- : 'Provider-specific monitor pricing is still being resolved.'
114
- : quote.knownCredits > 0
115
- ? formatCredits(quote.knownCredits)
116
- : 'No Deepline credits';
117
-
118
- return {
119
- phase: input.phase,
120
- label: primaryCharge.label,
121
- known_credits: quote.knownCredits,
122
- pending_provider_pricing: hasPendingProviderPricing,
123
- display,
124
- };
125
- }