deepline 0.3.348 → 0.3.349
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.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +38 -13
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +5 -1
- package/dist/cli/auth-KGXZELZ3.js +31 -0
- package/dist/cli/{auth-ME53BGXD.mjs → auth-MPHXSP64.mjs} +4 -4
- package/dist/cli/{billing-EMRJAWNG.js → billing-2KUUGVDZ.js} +73 -73
- package/dist/cli/{billing-466LUN65.mjs → billing-K5WCTRBE.mjs} +4 -4
- package/dist/cli/{chunk-2G7KMDDI.mjs → chunk-6OVLJLYH.mjs} +1 -1
- package/dist/cli/{chunk-KGKPHGDT.js → chunk-6YZDQZE6.js} +2 -2
- package/dist/cli/{chunk-CEC3BXRV.mjs → chunk-BEGPN6NG.mjs} +1 -1
- package/dist/cli/{chunk-MM6X5ADB.mjs → chunk-BPJTGASI.mjs} +2 -2
- package/dist/cli/{chunk-IICCYB57.js → chunk-CRSMVSER.js} +45 -45
- package/dist/cli/{chunk-XVWOERRO.mjs → chunk-DOHULRK2.mjs} +4 -4
- package/dist/cli/{chunk-U5U2DJ3A.js → chunk-GHYMVZID.js} +60 -60
- package/dist/cli/{chunk-5UWZ52IW.mjs → chunk-GXN7DGNL.mjs} +2 -2
- package/dist/cli/{chunk-Q37KLZXK.mjs → chunk-HVD3DK7S.mjs} +5 -5
- package/dist/cli/{chunk-NX4WJO5P.js → chunk-I4VZKXMX.js} +26 -26
- package/dist/cli/{chunk-5HLM2PGK.js → chunk-IHYVEM5Q.js} +8 -8
- package/dist/cli/{chunk-GVJPI7MB.js → chunk-JBGR6U57.js} +4 -4
- package/dist/cli/{chunk-VWSEZMCR.mjs → chunk-JKJSTQ2I.mjs} +1 -1
- package/dist/cli/{chunk-PQZURAHR.js → chunk-KW25DKRC.js} +1 -1
- package/dist/cli/{chunk-6NM2IY4B.js → chunk-M42H2BPA.js} +8 -8
- package/dist/cli/{chunk-SIE7MILM.js → chunk-MVQ3JAJA.js} +225 -225
- package/dist/cli/{chunk-L645OZEB.mjs → chunk-O2FM2MS5.mjs} +6 -6
- package/dist/cli/{chunk-4JJN7BDI.js → chunk-QAM2K3CG.js} +48 -48
- package/dist/cli/{chunk-EWYHXSV4.js → chunk-QCSLIEMC.js} +6 -6
- package/dist/cli/{chunk-5IYFQJHX.js → chunk-S347PHNB.js} +9 -9
- package/dist/cli/{chunk-BAJXRIRP.mjs → chunk-SPB6CF4S.mjs} +2 -2
- package/dist/cli/{chunk-2JRKH263.js → chunk-TVS3TAFR.js} +15 -15
- package/dist/cli/{chunk-CA7RR4UD.mjs → chunk-UE7DS2YV.mjs} +3 -3
- package/dist/cli/{chunk-35PLGSH6.mjs → chunk-VDOH4A34.mjs} +1 -1
- package/dist/cli/{chunk-UCVFMPAO.mjs → chunk-WOFHIUOT.mjs} +2 -2
- package/dist/cli/{chunk-5AZNXX2S.mjs → chunk-ZQ6UF55Y.mjs} +1 -1
- package/dist/cli/{client-K3EFOESB.mjs → client-JWKYNLCR.mjs} +3 -3
- package/dist/cli/client-O4DPNWVJ.js +20 -0
- package/dist/cli/{csv-4UFHUMIR.js → csv-IW75DRFX.js} +12 -12
- package/dist/cli/{csv-ZFH725GM.mjs → csv-Y2O237NO.mjs} +3 -3
- package/dist/cli/{db-EJHH7IBM.js → db-6Q4VK5T2.js} +29 -29
- package/dist/cli/{db-KTJSJ6LJ.mjs → db-JW6UUJXC.mjs} +4 -4
- package/dist/cli/{describe-ZQXDXWKZ.js → describe-DI65QISF.js} +15 -15
- package/dist/cli/{describe-2GXTRRSJ.mjs → describe-JLN4RTGM.mjs} +8 -8
- package/dist/cli/{executions-FEBZXTAI.js → executions-GB2E3BU6.js} +6 -6
- package/dist/cli/{executions-ZFEW2R3V.mjs → executions-UK6LA2O5.mjs} +4 -4
- package/dist/cli/{feedback-F3LKI327.js → feedback-MJE3A5ON.js} +7 -7
- package/dist/cli/{feedback-BYMYIBHU.mjs → feedback-N2KAFS3R.mjs} +3 -3
- package/dist/cli/git-A7J4SSRV.js +23 -0
- package/dist/cli/{git-A3V2AKGA.mjs → git-NWRJFNII.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-TYXWVLSD.js → legacy-noops-EIO65N6W.js} +7 -7
- package/dist/cli/{legacy-noops-IMOMP5NH.mjs → legacy-noops-RR4W2TTE.mjs} +4 -4
- package/dist/cli/{monitors-PJWHKJAG.mjs → monitors-HNUCJYET.mjs} +4 -4
- package/dist/cli/{monitors-BG2EP4M2.js → monitors-U7NVJDQL.js} +85 -85
- package/dist/cli/{org-CVCRHGQF.mjs → org-O7MFRQNG.mjs} +4 -4
- package/dist/cli/{org-NM7EROYH.js → org-UBHNTBSB.js} +60 -60
- package/dist/cli/{play-ESB6ZDMP.mjs → play-4EIIEFQK.mjs} +7 -7
- package/dist/cli/play-IHLNNVPR.js +153 -0
- package/dist/cli/{providers-EXITLSJG.js → providers-CJ56HZIT.js} +7 -7
- package/dist/cli/{providers-BPDX7QBF.mjs → providers-REJIT7CX.mjs} +4 -4
- package/dist/cli/{quickstart-55MBPFRI.js → quickstart-BZUQWQK5.js} +5 -5
- package/dist/cli/{quickstart-P5HLSTZB.mjs → quickstart-DQN2LYBC.mjs} +3 -3
- package/dist/cli/{search-UJ3KOFZV.mjs → search-35UOMFL2.mjs} +5 -5
- package/dist/cli/search-4EPCIU2T.js +26 -0
- package/dist/cli/{secrets-TLV2Q4Z5.js → secrets-G4RYNUUD.js} +13 -13
- package/dist/cli/{secrets-XJCZM2M2.mjs → secrets-YJB66UXU.mjs} +4 -4
- package/dist/cli/{sessions-4XMG3DEE.mjs → sessions-BUWSRUSJ.mjs} +4 -4
- package/dist/cli/{sessions-DJWLUVXM.js → sessions-DGS7S6XX.js} +5 -5
- package/dist/cli/{settings-3ZGLOANJ.mjs → settings-OCMJXIFD.mjs} +7 -7
- package/dist/cli/{settings-KBNCPN3E.js → settings-OTWDMCM5.js} +74 -74
- package/dist/cli/{setup-WZZXC7H5.js → setup-MYD34DUG.js} +41 -41
- package/dist/cli/{setup-R3UV4ZXN.mjs → setup-UXYFRGIX.mjs} +6 -6
- package/dist/cli/skills-7UHWU7XL.js +28 -0
- package/dist/cli/{skills-44RXNHZH.mjs → skills-LOWITZWQ.mjs} +4 -4
- package/dist/cli/tools-CBYKQ7IY.js +40 -0
- package/dist/cli/{tools-NLUPNYR3.mjs → tools-YJHZJLES.mjs} +6 -6
- package/dist/cli/update-5M3OKPEU.js +28 -0
- package/dist/cli/{update-57GQJRXF.mjs → update-PB5UCW4I.mjs} +6 -6
- package/dist/cli/{workflow-XI7LZRTQ.js → workflow-DJYTA2YM.js} +15 -15
- package/dist/cli/{workflow-ARCLSKBC.mjs → workflow-IH2FQSYZ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-YHS2NN4I.js +0 -31
- package/dist/cli/client-F47WSZBF.js +0 -20
- package/dist/cli/git-PWHYGNBR.js +0 -23
- package/dist/cli/play-MYWKV6MH.js +0 -153
- package/dist/cli/search-2JFDCWWK.js +0 -26
- package/dist/cli/skills-52WTBX7A.js +0 -28
- package/dist/cli/tools-4ESTBMSN.js +0 -40
- package/dist/cli/update-V2FZCYNP.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.
|
|
203
|
+
version: '0.3.349',
|
|
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: {
|
|
@@ -18712,6 +18712,40 @@ export async function readPostgresSchedulerOutboxNextDueAt(
|
|
|
18712
18712
|
): Promise<Date | null> {
|
|
18713
18713
|
const result = await client.query<{ due_at: Date | string | null }>(
|
|
18714
18714
|
`
|
|
18715
|
+
-- Discover only run identities before seeking each lane's causal head.
|
|
18716
|
+
-- Proving that every pending fact has no predecessor can be quadratic for
|
|
18717
|
+
-- a large receipt backlog, even while another replica drains that run.
|
|
18718
|
+
WITH pending_runs AS MATERIALIZED (
|
|
18719
|
+
SELECT DISTINCT pending.run_id
|
|
18720
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
18721
|
+
WHERE pending.delivered_at IS NULL
|
|
18722
|
+
), heads AS MATERIALIZED (
|
|
18723
|
+
SELECT pending_run.run_id, false AS search_only, head.*
|
|
18724
|
+
FROM pending_runs AS pending_run
|
|
18725
|
+
CROSS JOIN LATERAL (
|
|
18726
|
+
SELECT pending.created_at, pending.next_attempt_at,
|
|
18727
|
+
pending.failed_at, pending.lease_expires_at
|
|
18728
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
18729
|
+
WHERE pending.run_id = pending_run.run_id
|
|
18730
|
+
AND pending.delivered_at IS NULL
|
|
18731
|
+
AND ${searchLaneSql('pending')} = false
|
|
18732
|
+
ORDER BY ${runLedgerOrderSql('pending')}
|
|
18733
|
+
LIMIT 1
|
|
18734
|
+
) AS head
|
|
18735
|
+
UNION ALL
|
|
18736
|
+
SELECT pending_run.run_id, true AS search_only, head.*
|
|
18737
|
+
FROM pending_runs AS pending_run
|
|
18738
|
+
CROSS JOIN LATERAL (
|
|
18739
|
+
SELECT pending.created_at, pending.next_attempt_at,
|
|
18740
|
+
pending.failed_at, pending.lease_expires_at
|
|
18741
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
18742
|
+
WHERE pending.run_id = pending_run.run_id
|
|
18743
|
+
AND pending.delivered_at IS NULL
|
|
18744
|
+
AND ${searchLaneSql('pending')} = true
|
|
18745
|
+
ORDER BY ${runLedgerOrderSql('pending')}
|
|
18746
|
+
LIMIT 1
|
|
18747
|
+
) AS head
|
|
18748
|
+
)
|
|
18715
18749
|
SELECT min(greatest(
|
|
18716
18750
|
CASE
|
|
18717
18751
|
WHEN lease_expires_at IS NOT NULL AND lease_expires_at > now()
|
|
@@ -18721,22 +18755,13 @@ export async function readPostgresSchedulerOutboxNextDueAt(
|
|
|
18721
18755
|
(SELECT max(active.lease_expires_at)
|
|
18722
18756
|
FROM ${tableName('outbox', options)} AS active
|
|
18723
18757
|
WHERE active.run_id = candidate.run_id
|
|
18724
|
-
AND ${searchLaneSql('active')} =
|
|
18758
|
+
AND ${searchLaneSql('active')} = candidate.search_only
|
|
18725
18759
|
AND active.delivered_at IS NULL AND active.lease_owner IS NOT NULL
|
|
18726
18760
|
AND active.lease_expires_at > now())
|
|
18727
18761
|
)) AS due_at
|
|
18728
|
-
FROM
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
-- Match the competing-consumer claim exactly. A successor blocked by
|
|
18732
|
-
-- an older event must not create a zero-delay recovery spin.
|
|
18733
|
-
AND NOT EXISTS (
|
|
18734
|
-
SELECT 1
|
|
18735
|
-
FROM ${tableName('outbox', options)} AS predecessor
|
|
18736
|
-
WHERE predecessor.run_id = candidate.run_id
|
|
18737
|
-
AND predecessor.delivered_at IS NULL
|
|
18738
|
-
AND ${runLedgerPrecedesSql('predecessor', 'candidate')}
|
|
18739
|
-
)
|
|
18762
|
+
FROM heads AS candidate
|
|
18763
|
+
-- A failed head quarantines its lane; never wake on its successor.
|
|
18764
|
+
WHERE candidate.failed_at IS NULL
|
|
18740
18765
|
`,
|
|
18741
18766
|
);
|
|
18742
18767
|
const value = result.rows[0]?.due_at;
|
|
@@ -2,7 +2,7 @@ export const BILLING_SALES_GROUP_KEY = 'shadow.billing-sales';
|
|
|
2
2
|
export const BILLING_SALES_DESTINATION_KEY = 'shadow.billing-sales.slack';
|
|
3
3
|
export const BILLING_SALES_SLACK_CHANNEL_ID = 'C0AGWVD2TNK';
|
|
4
4
|
export const BILLING_SALES_CONNECTION_ID = 'platform-reporting-bot';
|
|
5
|
-
export const BILLING_SALES_CREDIT_PURCHASE_MINIMUM_CENTS =
|
|
5
|
+
export const BILLING_SALES_CREDIT_PURCHASE_MINIMUM_CENTS = 1;
|
|
6
6
|
export const BILLING_PURCHASE_LATE_RULE_KEY = 'internal.billing.purchase_late';
|
|
7
7
|
export const BILLING_SALES_RULE_KEYS: readonly string[] = [
|
|
8
8
|
'internal.billing.credit_purchase',
|
|
@@ -773,7 +773,7 @@ const PRODUCT_NOTIFICATION_TYPE_REGISTRY = [
|
|
|
773
773
|
},
|
|
774
774
|
}),
|
|
775
775
|
present: ({ payload }) => ({
|
|
776
|
-
title:
|
|
776
|
+
title: `${payload.isFirstPurchase === true ? '🎉 First credit purchase' : 'Credit purchase'}: $${(Number(payload.amountPaidCents) / 100).toFixed(2)}`,
|
|
777
777
|
summary: [
|
|
778
778
|
{ workspace: true },
|
|
779
779
|
` purchased ${formatCredits(Number(payload.credits))} credits.`,
|
|
@@ -209,7 +209,11 @@ export const PRODUCT_NOTIFICATION_EVENT_DEFINITIONS: readonly ProductNotificatio
|
|
|
209
209
|
credits: 'number',
|
|
210
210
|
targetUrl: 'string',
|
|
211
211
|
},
|
|
212
|
-
optionalFacts: {
|
|
212
|
+
optionalFacts: {
|
|
213
|
+
amountPaidCents: 'number',
|
|
214
|
+
currency: 'string',
|
|
215
|
+
isFirstPurchase: 'boolean',
|
|
216
|
+
},
|
|
213
217
|
orderingSubjectFact: 'accountId',
|
|
214
218
|
allowedTriggers: ['threshold_crossing'],
|
|
215
219
|
allowedThresholdUnits: ['credits', 'usd_cents'],
|
|
@@ -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 _chunkQAM2K3CGjs = require('./chunk-QAM2K3CG.js');
|
|
13
|
+
require('./chunk-QCSLIEMC.js');
|
|
14
|
+
require('./chunk-JBGR6U57.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-KW25DKRC.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 = _chunkQAM2K3CGjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkQAM2K3CGjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkQAM2K3CGjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkQAM2K3CGjs.handleRegister; exports.handleStatus = _chunkQAM2K3CGjs.handleStatus; exports.handleWait = _chunkQAM2K3CGjs.handleWait; exports.readPendingAuthClaim = _chunkQAM2K3CGjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkQAM2K3CGjs.registerAuthCommands; exports.reportSetupCompleted = _chunkQAM2K3CGjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkQAM2K3CGjs.resolvePendingAuthClaimForResume;
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
registerAuthCommands,
|
|
10
10
|
reportSetupCompleted,
|
|
11
11
|
resolvePendingAuthClaimForResume
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-GXN7DGNL.mjs";
|
|
13
|
+
import "./chunk-ZQ6UF55Y.mjs";
|
|
14
|
+
import "./chunk-JKJSTQ2I.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6OVLJLYH.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|