deepline 0.3.350 → 0.3.351
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 +47 -22
- package/dist/cli/{auth-7X3G2MCE.mjs → auth-NQLQ5QBV.mjs} +4 -4
- package/dist/cli/auth-YTDZKDCB.js +31 -0
- package/dist/cli/{billing-DOVYL5TT.mjs → billing-AXSNXOTN.mjs} +4 -4
- package/dist/cli/{billing-2J4WREAL.js → billing-AZCBAJ6Q.js} +73 -73
- package/dist/cli/{chunk-H4MOKDCV.mjs → chunk-722274AA.mjs} +1 -1
- package/dist/cli/{chunk-UKOXXA75.js → chunk-73J3BGJ3.js} +60 -60
- package/dist/cli/{chunk-LDILBDLL.mjs → chunk-7BGGBA4V.mjs} +4 -4
- package/dist/cli/{chunk-2COBRUUH.js → chunk-7ZAG2XG5.js} +6 -6
- package/dist/cli/{chunk-2Z6HV7BK.mjs → chunk-AQQFVUDI.mjs} +2 -2
- package/dist/cli/{chunk-LE7DZZVE.js → chunk-BKOYPUK2.js} +26 -26
- package/dist/cli/{chunk-IHMNFNL3.js → chunk-BOOZ7D7V.js} +225 -225
- package/dist/cli/{chunk-CYCJBDW6.mjs → chunk-BR3XFSXN.mjs} +6 -6
- package/dist/cli/{chunk-AWJ2A2CP.js → chunk-BWFUBETD.js} +48 -48
- package/dist/cli/{chunk-WWJOE6JQ.mjs → chunk-CFALTV4O.mjs} +2 -2
- package/dist/cli/{chunk-36MFVS4Q.js → chunk-CIDP2FSO.js} +9 -9
- package/dist/cli/{chunk-5ZFDADDM.mjs → chunk-DBWASDYS.mjs} +3 -3
- package/dist/cli/{chunk-4ODBHH6X.mjs → chunk-GT5HPOM3.mjs} +1 -1
- package/dist/cli/{chunk-FYZFB2CS.mjs → chunk-H5JUSKHB.mjs} +1 -1
- package/dist/cli/{chunk-NWN23EZM.js → chunk-ICZTTYDS.js} +8 -8
- package/dist/cli/{chunk-VC7D7OXL.mjs → chunk-IKC7EPDS.mjs} +1 -1
- package/dist/cli/{chunk-Z5RG3AOP.js → chunk-JV6GFIQQ.js} +45 -45
- package/dist/cli/{chunk-GMOMXQR6.js → chunk-L7YXXM5W.js} +1 -1
- package/dist/cli/{chunk-ZIUELPGR.js → chunk-NUD2WO3E.js} +4 -4
- package/dist/cli/{chunk-2NI75UNO.mjs → chunk-OF4N5X7Z.mjs} +2 -2
- package/dist/cli/{chunk-FUQQ3U62.js → chunk-QD7W3OBA.js} +8 -8
- package/dist/cli/{chunk-2KLYUZI7.mjs → chunk-QOYD2THS.mjs} +2 -2
- package/dist/cli/{chunk-QMMMMGAB.js → chunk-SDLFAGQS.js} +15 -15
- package/dist/cli/{chunk-TFGKO7XG.mjs → chunk-URBPUPJS.mjs} +5 -5
- package/dist/cli/{chunk-YCBWMF2O.js → chunk-WY5N3SSC.js} +2 -2
- package/dist/cli/{chunk-NZMVPYBQ.mjs → chunk-XFTGWGZ5.mjs} +1 -1
- package/dist/cli/client-3GCQER5K.js +20 -0
- package/dist/cli/{client-YM7EV7JZ.mjs → client-NTEDBLQK.mjs} +3 -3
- package/dist/cli/{csv-3CE5IY4L.js → csv-6PZZ4ARC.js} +12 -12
- package/dist/cli/{csv-IERAXUNG.mjs → csv-SSSPKSKU.mjs} +3 -3
- package/dist/cli/{db-VYSLD53P.js → db-3YL7YWTM.js} +29 -29
- package/dist/cli/{db-M2ONKJRD.mjs → db-XEVVDWOP.mjs} +4 -4
- package/dist/cli/{describe-2XFXS2SX.js → describe-XZNQXFXD.js} +15 -15
- package/dist/cli/{describe-W6FCAXZR.mjs → describe-YZ365BKT.mjs} +8 -8
- package/dist/cli/{executions-P7EK3RC7.js → executions-WBTIT2RU.js} +6 -6
- package/dist/cli/{executions-OUP6IVMO.mjs → executions-ZAV7YCQC.mjs} +4 -4
- package/dist/cli/{feedback-Q5QTIZSG.mjs → feedback-NOYG63QE.mjs} +3 -3
- package/dist/cli/{feedback-UHG2PISO.js → feedback-PRVJ26X7.js} +7 -7
- package/dist/cli/{git-DMG3Z36A.mjs → git-AOSMM4US.mjs} +4 -4
- package/dist/cli/git-ZI4H72YR.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-DZJRLQUN.js → legacy-noops-RTNAEYVF.js} +7 -7
- package/dist/cli/{legacy-noops-ARAPGQUN.mjs → legacy-noops-T6DKTGZY.mjs} +4 -4
- package/dist/cli/{monitors-B7HLL45A.js → monitors-7ERJ4277.js} +85 -85
- package/dist/cli/{monitors-7GSSQILT.mjs → monitors-QIR3T2QR.mjs} +4 -4
- package/dist/cli/{org-VIY2LH6L.js → org-7P46IVVU.js} +60 -60
- package/dist/cli/{org-UR72VY3A.mjs → org-WNRQQZNP.mjs} +4 -4
- package/dist/cli/{play-ATTKGZLK.mjs → play-57XTHKER.mjs} +7 -7
- package/dist/cli/play-QIX7RZ74.js +153 -0
- package/dist/cli/{providers-ZBZED4TK.mjs → providers-ET6UBGWJ.mjs} +4 -4
- package/dist/cli/{providers-RDOEU4FO.js → providers-USRX4UVZ.js} +7 -7
- package/dist/cli/{quickstart-Y2GPRMC7.js → quickstart-BPPQFMWI.js} +5 -5
- package/dist/cli/{quickstart-JT5FW7EB.mjs → quickstart-OGZ7BZKS.mjs} +3 -3
- package/dist/cli/{search-73OTM3ZZ.mjs → search-MZARI5XA.mjs} +5 -5
- package/dist/cli/search-P447HWLU.js +26 -0
- package/dist/cli/{secrets-EEXG43XS.js → secrets-O6XG35SA.js} +13 -13
- package/dist/cli/{secrets-AHDWUIVL.mjs → secrets-WMUJ6PB4.mjs} +4 -4
- package/dist/cli/{sessions-LDZMTST4.mjs → sessions-EYALESPC.mjs} +4 -4
- package/dist/cli/{sessions-SHSSRPN5.js → sessions-LCHVGXMV.js} +5 -5
- package/dist/cli/{settings-FMM4KYDS.js → settings-25YT2IQK.js} +74 -74
- package/dist/cli/{settings-JBCSG3JV.mjs → settings-LUGKMDDX.mjs} +7 -7
- package/dist/cli/{setup-VF3WHT2K.js → setup-AKZWHNKU.js} +41 -41
- package/dist/cli/{setup-4M6GZEV6.mjs → setup-KSRA3V42.mjs} +6 -6
- package/dist/cli/skills-GYWMMOFQ.js +28 -0
- package/dist/cli/{skills-5GSHPGQR.mjs → skills-VJJIB4F5.mjs} +4 -4
- package/dist/cli/tools-HN6E2AH6.js +40 -0
- package/dist/cli/{tools-7G6TW3MO.mjs → tools-NYQD3VSU.mjs} +6 -6
- package/dist/cli/{update-NY2LA7HX.mjs → update-GU4TALAI.mjs} +6 -6
- package/dist/cli/update-IIEKVC75.js +28 -0
- package/dist/cli/{workflow-JPNJ5D2W.mjs → workflow-T4VNPJA4.mjs} +5 -5
- package/dist/cli/{workflow-TZ4UU3MV.js → workflow-TFOUWNEJ.js} +15 -15
- 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-CYXUWRLU.js +0 -31
- package/dist/cli/client-R4VF7KSK.js +0 -20
- package/dist/cli/git-IQRVNMQL.js +0 -23
- package/dist/cli/play-FT7EUE2Y.js +0 -153
- package/dist/cli/search-LHD6BP42.js +0 -26
- package/dist/cli/skills-RKY6BV2Y.js +0 -28
- package/dist/cli/tools-RSVWPCZT.js +0 -40
- package/dist/cli/update-ZD7UN6FA.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.351',
|
|
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: {
|
|
@@ -18182,6 +18182,33 @@ function runLedgerOrderSql(alias: string): string {
|
|
|
18182
18182
|
return `CASE ${alias}.event_type WHEN ${RUN_EVENT_KIND_SQL_LITERAL.runCreated} THEN 0 WHEN ${RUN_EVENT_KIND_SQL_LITERAL.runStarted} THEN 1 ELSE 2 END, ${alias}.created_at, ${alias}.event_id`;
|
|
18183
18183
|
}
|
|
18184
18184
|
|
|
18185
|
+
/** Enumerate pending runs by index seeks, skipping each run's entire fact tail. */
|
|
18186
|
+
function runLedgerPendingRunsSql(
|
|
18187
|
+
options?: Pick<PostgresSchedulerOptions, 'schema'>,
|
|
18188
|
+
searchOnly?: boolean,
|
|
18189
|
+
): string {
|
|
18190
|
+
const lane =
|
|
18191
|
+
searchOnly === undefined
|
|
18192
|
+
? ''
|
|
18193
|
+
: `AND ${searchLaneSql('pending')} = ${String(searchOnly)}`;
|
|
18194
|
+
return `pending_runs AS (
|
|
18195
|
+
(SELECT pending.run_id
|
|
18196
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
18197
|
+
WHERE pending.delivered_at IS NULL ${lane}
|
|
18198
|
+
ORDER BY pending.run_id LIMIT 1)
|
|
18199
|
+
UNION ALL
|
|
18200
|
+
SELECT next_run.run_id
|
|
18201
|
+
FROM pending_runs AS previous_run
|
|
18202
|
+
CROSS JOIN LATERAL (
|
|
18203
|
+
SELECT pending.run_id
|
|
18204
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
18205
|
+
WHERE pending.delivered_at IS NULL ${lane}
|
|
18206
|
+
AND pending.run_id > previous_run.run_id
|
|
18207
|
+
ORDER BY pending.run_id LIMIT 1
|
|
18208
|
+
) AS next_run
|
|
18209
|
+
)`;
|
|
18210
|
+
}
|
|
18211
|
+
|
|
18185
18212
|
/** Prioritize a terminal's causal head without skipping its predecessors. */
|
|
18186
18213
|
function runLedgerTerminalPendingSql(
|
|
18187
18214
|
alias: string,
|
|
@@ -18712,14 +18739,8 @@ export async function readPostgresSchedulerOutboxNextDueAt(
|
|
|
18712
18739
|
): Promise<Date | null> {
|
|
18713
18740
|
const result = await client.query<{ due_at: Date | string | null }>(
|
|
18714
18741
|
`
|
|
18715
|
-
--
|
|
18716
|
-
|
|
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 (
|
|
18742
|
+
-- Seek distinct run identities without reading their pending fact tails.
|
|
18743
|
+
WITH RECURSIVE ${runLedgerPendingRunsSql(options)}, heads AS MATERIALIZED (
|
|
18723
18744
|
SELECT pending_run.run_id, false AS search_only, head.*
|
|
18724
18745
|
FROM pending_runs AS pending_run
|
|
18725
18746
|
CROSS JOIN LATERAL (
|
|
@@ -20332,7 +20353,7 @@ async function dispatchRunLedgerOutboxBatchWithScope(
|
|
|
20332
20353
|
// run-scoped outbox prefix: combining it with global recovery through a
|
|
20333
20354
|
// nullable predicate made PostgreSQL materialize every pending run head
|
|
20334
20355
|
// for each lifecycle transition. Only the two dedicated projectors may
|
|
20335
|
-
// perform the global
|
|
20356
|
+
// perform the global indexed head discovery below.
|
|
20336
20357
|
const selected =
|
|
20337
20358
|
(input.headEventId ? null : lockedRun) ??
|
|
20338
20359
|
(targetRunId
|
|
@@ -20379,19 +20400,23 @@ async function dispatchRunLedgerOutboxBatchWithScope(
|
|
|
20379
20400
|
run_id: string;
|
|
20380
20401
|
dispatch_launch_json: unknown;
|
|
20381
20402
|
}>(`
|
|
20382
|
-
WITH heads AS MATERIALIZED (
|
|
20383
|
-
SELECT
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
pending.
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20403
|
+
WITH RECURSIVE ${runLedgerPendingRunsSql(options, input.searchOnly === true)}, heads AS MATERIALIZED (
|
|
20404
|
+
SELECT pending_run.run_id, head.*
|
|
20405
|
+
FROM pending_runs AS pending_run
|
|
20406
|
+
CROSS JOIN LATERAL (
|
|
20407
|
+
SELECT pending.event_id,
|
|
20408
|
+
pending.event_type,
|
|
20409
|
+
${needsLaunch ? 'pending.payload_json,' : ''}
|
|
20410
|
+
pending.created_at,
|
|
20411
|
+
pending.next_attempt_at,
|
|
20412
|
+
pending.failed_at
|
|
20413
|
+
FROM ${tableName('outbox', options)} AS pending
|
|
20414
|
+
WHERE pending.run_id = pending_run.run_id
|
|
20415
|
+
AND pending.delivered_at IS NULL
|
|
20416
|
+
AND ${searchLaneSql('pending')} = ${input.searchOnly === true ? 'true' : 'false'}
|
|
20417
|
+
ORDER BY ${runLedgerOrderSql('pending')}
|
|
20418
|
+
LIMIT 1
|
|
20419
|
+
) AS head
|
|
20395
20420
|
)
|
|
20396
20421
|
SELECT runs.run_id, ${launchSelection} AS dispatch_launch_json
|
|
20397
20422
|
FROM heads AS head
|
|
@@ -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-QOYD2THS.mjs";
|
|
13
|
+
import "./chunk-GT5HPOM3.mjs";
|
|
14
|
+
import "./chunk-722274AA.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XFTGWGZ5.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -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 _chunkBWFUBETDjs = require('./chunk-BWFUBETD.js');
|
|
13
|
+
require('./chunk-7ZAG2XG5.js');
|
|
14
|
+
require('./chunk-NUD2WO3E.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-L7YXXM5W.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 = _chunkBWFUBETDjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkBWFUBETDjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkBWFUBETDjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkBWFUBETDjs.handleRegister; exports.handleStatus = _chunkBWFUBETDjs.handleStatus; exports.handleWait = _chunkBWFUBETDjs.handleWait; exports.readPendingAuthClaim = _chunkBWFUBETDjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkBWFUBETDjs.registerAuthCommands; exports.reportSetupCompleted = _chunkBWFUBETDjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkBWFUBETDjs.resolvePendingAuthClaimForResume;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IKC7EPDS.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-
|
|
13
|
+
} from "./chunk-GT5HPOM3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AuthError,
|
|
16
16
|
ConfigError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-722274AA.mjs";
|
|
18
18
|
import "./chunk-DLIRSHV6.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XFTGWGZ5.mjs";
|
|
20
20
|
import "./chunk-6IKARAYD.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|