deepline 0.3.397 → 0.3.399
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/monitors/provider-monitor-state.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +50 -26
- package/dist/cli/{auth-AZJFXGKP.mjs → auth-QHVIMKL3.mjs} +4 -4
- package/dist/cli/auth-YYB4S5HO.js +40 -0
- package/dist/cli/{billing-MZAAUHGH.mjs → billing-3V4GX5FX.mjs} +4 -4
- package/dist/cli/{billing-MQV5AGDJ.js → billing-O2HRFIPG.js} +73 -73
- package/dist/cli/{chunk-J7ABTQQ7.mjs → chunk-2S44J5UG.mjs} +1 -1
- package/dist/cli/{chunk-RYW4HPSM.js → chunk-A3T7YPEP.js} +4 -4
- package/dist/cli/{chunk-F3BUFYKE.mjs → chunk-AVTJXBXL.mjs} +5 -5
- package/dist/cli/{chunk-PSGEDGLT.js → chunk-BX7ZF5Z7.js} +8 -8
- package/dist/cli/{chunk-UVXBVUZQ.js → chunk-BZZX56J2.js} +6 -6
- package/dist/cli/{chunk-RNSWDKBM.mjs → chunk-CCH3ZVR5.mjs} +1 -1
- package/dist/cli/{chunk-VTF4RRWJ.js → chunk-CI4Q6UP4.js} +50 -50
- package/dist/cli/{chunk-DQ65ZVHN.js → chunk-CVTH2VUI.js} +6 -6
- package/dist/cli/{chunk-MV7QRALK.mjs → chunk-DHLYCZWS.mjs} +3 -3
- package/dist/cli/{chunk-SO7RUVTY.js → chunk-EFEMS43P.js} +26 -26
- package/dist/cli/{chunk-YSVORIEW.js → chunk-EMNKA5WK.js} +2 -2
- package/dist/cli/{chunk-IZ74ABSX.js → chunk-GT4NODCJ.js} +1 -1
- package/dist/cli/{chunk-YLRME7MK.js → chunk-HNHFC3PM.js} +15 -15
- package/dist/cli/{chunk-K33MXVXQ.js → chunk-IB6R2SZJ.js} +44 -44
- package/dist/cli/{chunk-WM2QEHZL.mjs → chunk-PQB2PTMA.mjs} +2 -2
- package/dist/cli/{chunk-MYPH2LUU.mjs → chunk-T523SXCK.mjs} +2 -2
- package/dist/cli/{chunk-W3HMGKMI.mjs → chunk-VV6EPCDS.mjs} +2 -2
- package/dist/cli/{chunk-MRXMMERY.mjs → chunk-XES27RSC.mjs} +1 -1
- package/dist/cli/{chunk-2LDADJNO.mjs → chunk-XUHQWWJW.mjs} +1 -1
- package/dist/cli/{chunk-NOX2TCBP.mjs → chunk-Y3MRTY2F.mjs} +1 -1
- package/dist/cli/{chunk-ZHUMDMOS.js → chunk-YADFPKH2.js} +65 -65
- package/dist/cli/{chunk-3VP34TAU.js → chunk-ZKKXQQWL.js} +8 -8
- package/dist/cli/{chunk-4D745XZO.mjs → chunk-ZNWNAC7E.mjs} +3 -3
- package/dist/cli/{chunk-YUDKBQUD.mjs → chunk-ZPDNT7LJ.mjs} +4 -4
- package/dist/cli/{csv-AQBQ5O3I.js → csv-IDABZWW3.js} +12 -12
- package/dist/cli/{csv-MB7PJMYQ.mjs → csv-Z5TYV7XE.mjs} +3 -3
- package/dist/cli/{db-L5IEI2AU.mjs → db-23MIKNVU.mjs} +4 -4
- package/dist/cli/{db-JPUYC5RB.js → db-4KKNX3Y2.js} +25 -25
- package/dist/cli/{describe-6WT74AOR.js → describe-RKZKZ7UR.js} +10 -10
- package/dist/cli/{describe-S6BFANVI.mjs → describe-XNGCKRPN.mjs} +6 -6
- package/dist/cli/{executions-6TMQTFP4.js → executions-NTXHTAM6.js} +6 -6
- package/dist/cli/{executions-L7I2ZW4Z.mjs → executions-XUKNAELQ.mjs} +4 -4
- package/dist/cli/{feedback-XF7CQGMD.js → feedback-6INY66DC.js} +7 -7
- package/dist/cli/{feedback-DSJ63HK6.mjs → feedback-LWJSTHZ2.mjs} +3 -3
- package/dist/cli/git-2TH3NROT.js +24 -0
- package/dist/cli/{git-C3ENM67D.mjs → git-CRKOKS7B.mjs} +4 -4
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-B2NHWIVD.js → legacy-noops-LPTMKYC7.js} +7 -7
- package/dist/cli/{legacy-noops-VFG2K6HK.mjs → legacy-noops-VVQQ7VUO.mjs} +4 -4
- package/dist/cli/{monitors-TCEDBDGY.mjs → monitors-GI2GTZSG.mjs} +4 -4
- package/dist/cli/{monitors-ORFWOVZB.js → monitors-HG6KO4XZ.js} +84 -84
- package/dist/cli/{org-T74CJESN.js → org-L3KNS3OS.js} +64 -64
- package/dist/cli/{org-45KREIKZ.mjs → org-ZYKZP6CE.mjs} +4 -4
- package/dist/cli/{play-XHK2LPON.js → play-537TGXWP.js} +231 -231
- package/dist/cli/{play-MU7MYBIM.mjs → play-64VPT37H.mjs} +7 -7
- package/dist/cli/{providers-4MGQKYFD.js → providers-6DBPDSLU.js} +7 -7
- package/dist/cli/{providers-VYCXIJT5.mjs → providers-ISRDMPLU.mjs} +4 -4
- package/dist/cli/{quickstart-47G3VEOT.js → quickstart-53Z7F4YI.js} +5 -5
- package/dist/cli/{quickstart-H724EFM2.mjs → quickstart-CACETI7N.mjs} +3 -3
- package/dist/cli/search-GAF5BS6N.js +30 -0
- package/dist/cli/{search-VQHXEFQ4.mjs → search-ZUOMRAIV.mjs} +5 -5
- package/dist/cli/{secrets-CPBNGA44.mjs → secrets-7TPCHJM5.mjs} +4 -4
- package/dist/cli/{secrets-ALLKCU35.js → secrets-TOUFAI3P.js} +13 -13
- package/dist/cli/{sessions-FKGAY7WQ.js → sessions-7JX2XZSO.js} +5 -5
- package/dist/cli/{sessions-7RSQB7IX.mjs → sessions-D3HZ2E3P.mjs} +4 -4
- package/dist/cli/{settings-Y5BI42P7.js → settings-IZ7FINUA.js} +74 -74
- package/dist/cli/{settings-UYSGV4IC.mjs → settings-LSFSVH3T.mjs} +7 -7
- package/dist/cli/{setup-VXQPEU3E.js → setup-FXSH7FIX.js} +41 -41
- package/dist/cli/{setup-L3ZBBTS4.mjs → setup-ZF2VX7J5.mjs} +6 -6
- package/dist/cli/{skills-QHVDLSFE.mjs → skills-I3ILXJPH.mjs} +4 -4
- package/dist/cli/skills-JT6CP6MI.js +29 -0
- package/dist/cli/{tools-YWU5QOQ5.js → tools-GZHXAZBL.js} +7 -7
- package/dist/cli/{tools-LSCEK4K2.mjs → tools-LW7Z2BLN.mjs} +6 -6
- package/dist/cli/update-5TD6XRQK.js +29 -0
- package/dist/cli/{update-CU22OTBM.mjs → update-BOK3AWHY.mjs} +6 -6
- package/dist/cli/{workflow-ERFLTRNX.js → workflow-5ZBCCWKH.js} +15 -15
- package/dist/cli/{workflow-KQARK5BZ.mjs → workflow-ZS3FBDO6.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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-CZJQU7B5.js +0 -40
- package/dist/cli/git-HYDZK2QR.js +0 -24
- package/dist/cli/search-3356ENLD.js +0 -30
- package/dist/cli/skills-DUZQTDTE.js +0 -29
- package/dist/cli/update-5LYQAI55.js +0 -29
|
@@ -202,7 +202,7 @@ export const SDK_RELEASE = {
|
|
|
202
202
|
// getters keep their established compatibility behavior.
|
|
203
203
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
204
204
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
205
|
-
version: '0.3.
|
|
205
|
+
version: '0.3.399',
|
|
206
206
|
updateSummary:
|
|
207
207
|
'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.',
|
|
208
208
|
packageCapabilities: {
|
|
@@ -105,32 +105,25 @@ async function finalizeCancelledRunAfterCleanup(input: {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
/** `runs.absurd_task_id` is text; the task table's key is a uuid. Joining on
|
|
109
|
+
* `task.task_id::text` hides that key from the planner, so a low active-run
|
|
110
|
+
* estimate turns every sweep into one full task-table scan per active run.
|
|
111
|
+
* Casting the run side keeps the join on the primary key; the CASE (whose
|
|
112
|
+
* branches Postgres evaluates in order) maps anything that is not a canonical
|
|
113
|
+
* lowercase uuid to NULL instead of failing the sweep. Only canonical text ever
|
|
114
|
+
* equalled `task_id::text`, so the matched rows are unchanged. */
|
|
115
|
+
const ABSURD_TASK_ID_UUID_PATTERN =
|
|
116
|
+
'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$';
|
|
117
|
+
|
|
118
|
+
/** The sweep statement, exported so tests can inspect its plan. Parameters:
|
|
119
|
+
* $1 task name, $2 batch limit. */
|
|
120
|
+
export function absurdRuntimeCancellationSweepSql(input: {
|
|
113
121
|
queue: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}): Promise<{ queued: number }> {
|
|
117
|
-
const requestedLimit = Math.floor(
|
|
118
|
-
input.limit ?? ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT,
|
|
119
|
-
);
|
|
120
|
-
const limit = Number.isFinite(requestedLimit)
|
|
121
|
-
? Math.max(
|
|
122
|
-
1,
|
|
123
|
-
Math.min(ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT, requestedLimit),
|
|
124
|
-
)
|
|
125
|
-
: ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT;
|
|
122
|
+
schedulerSchema: string;
|
|
123
|
+
}): string {
|
|
126
124
|
const taskTable = quoteAbsurdTable(`t_${input.queue}`);
|
|
127
|
-
const schedulerSchema = quoteAbsurdTable(
|
|
128
|
-
|
|
129
|
-
resolveRuntimeSchedulerSchemaEnv() ||
|
|
130
|
-
'runtime_scheduler',
|
|
131
|
-
);
|
|
132
|
-
const queued = await input.client.query<{ key: string }>(
|
|
133
|
-
`
|
|
125
|
+
const schedulerSchema = quoteAbsurdTable(input.schedulerSchema);
|
|
126
|
+
return `
|
|
134
127
|
INSERT INTO ${schedulerSchema}.control (key, value)
|
|
135
128
|
SELECT 'runtime_cancel:' || run.run_id,
|
|
136
129
|
jsonb_build_object(
|
|
@@ -146,7 +139,10 @@ export async function reconcileAbsurdRuntimeCancellations(input: {
|
|
|
146
139
|
)
|
|
147
140
|
FROM ${schedulerSchema}.runs AS run
|
|
148
141
|
JOIN absurd.${taskTable} AS task
|
|
149
|
-
ON task.task_id
|
|
142
|
+
ON task.task_id = CASE
|
|
143
|
+
WHEN run.absurd_task_id ~ '${ABSURD_TASK_ID_UUID_PATTERN}'
|
|
144
|
+
THEN run.absurd_task_id::uuid
|
|
145
|
+
END
|
|
150
146
|
AND run.status IN ('queued', 'running', 'waiting')
|
|
151
147
|
WHERE task.state = 'cancelled'
|
|
152
148
|
AND task.task_name = $1
|
|
@@ -166,7 +162,35 @@ export async function reconcileAbsurdRuntimeCancellations(input: {
|
|
|
166
162
|
LIMIT $2
|
|
167
163
|
ON CONFLICT (key) DO NOTHING
|
|
168
164
|
RETURNING key
|
|
169
|
-
|
|
165
|
+
`;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** Put legacy manual and deadline cancellations into the same durable queue
|
|
169
|
+
* as caller requests. A queued task is excluded from later scans, so one
|
|
170
|
+
* pending sandbox cannot hide other cancelled tasks behind the batch limit. */
|
|
171
|
+
export async function reconcileAbsurdRuntimeCancellations(input: {
|
|
172
|
+
client: PostgresSchedulerQueryClient;
|
|
173
|
+
queue: string;
|
|
174
|
+
schedulerOptions?: Pick<PostgresSchedulerOptions, 'schema'>;
|
|
175
|
+
limit?: number;
|
|
176
|
+
}): Promise<{ queued: number }> {
|
|
177
|
+
const requestedLimit = Math.floor(
|
|
178
|
+
input.limit ?? ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT,
|
|
179
|
+
);
|
|
180
|
+
const limit = Number.isFinite(requestedLimit)
|
|
181
|
+
? Math.max(
|
|
182
|
+
1,
|
|
183
|
+
Math.min(ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT, requestedLimit),
|
|
184
|
+
)
|
|
185
|
+
: ABSURD_CANCELLED_DEADLINE_RECONCILE_LIMIT;
|
|
186
|
+
const queued = await input.client.query<{ key: string }>(
|
|
187
|
+
absurdRuntimeCancellationSweepSql({
|
|
188
|
+
queue: input.queue,
|
|
189
|
+
schedulerSchema:
|
|
190
|
+
input.schedulerOptions?.schema?.trim() ||
|
|
191
|
+
resolveRuntimeSchedulerSchemaEnv() ||
|
|
192
|
+
'runtime_scheduler',
|
|
193
|
+
}),
|
|
170
194
|
[ABSURD_PLAY_RUN_TASK, limit],
|
|
171
195
|
);
|
|
172
196
|
return { queued: queued.rows.length };
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
reportSetupCompleted,
|
|
14
14
|
resolvePendingAuthClaimForResume,
|
|
15
15
|
statusBannerLine
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-PQB2PTMA.mjs";
|
|
17
|
+
import "./chunk-CCH3ZVR5.mjs";
|
|
18
|
+
import "./chunk-XUHQWWJW.mjs";
|
|
19
19
|
import "./chunk-YHPYUZZX.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-NXGCO4JB.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XES27RSC.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|
|
@@ -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 _chunkCI4Q6UP4js = require('./chunk-CI4Q6UP4.js');
|
|
17
|
+
require('./chunk-CVTH2VUI.js');
|
|
18
|
+
require('./chunk-A3T7YPEP.js');
|
|
19
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-7P5AA3SN.js');
|
|
22
|
+
require('./chunk-GT4NODCJ.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 = _chunkCI4Q6UP4js.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkCI4Q6UP4js.authStatusLine; exports.clearPendingClaim = _chunkCI4Q6UP4js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkCI4Q6UP4js.clearSatisfiedPendingClaim; exports.handleRegister = _chunkCI4Q6UP4js.handleRegister; exports.handleStatus = _chunkCI4Q6UP4js.handleStatus; exports.handleWait = _chunkCI4Q6UP4js.handleWait; exports.httpJson = _chunkCI4Q6UP4js.httpJson; exports.readPendingAuthClaim = _chunkCI4Q6UP4js.readPendingAuthClaim; exports.readStatusBanner = _chunkCI4Q6UP4js.readStatusBanner; exports.registerAuthCommands = _chunkCI4Q6UP4js.registerAuthCommands; exports.reportSetupCompleted = _chunkCI4Q6UP4js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkCI4Q6UP4js.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkCI4Q6UP4js.statusBannerLine;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2S44J5UG.mjs";
|
|
6
6
|
import "./chunk-6IKARAYD.mjs";
|
|
7
7
|
import "./chunk-JI2B4RZP.mjs";
|
|
8
8
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
openInBrowser,
|
|
14
14
|
printCommandEnvelope,
|
|
15
15
|
shouldEmitJson
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-CCH3ZVR5.mjs";
|
|
17
|
+
import "./chunk-XUHQWWJW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
AuthError,
|
|
20
20
|
ConfigError
|
|
@@ -23,7 +23,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
23
23
|
import {
|
|
24
24
|
DeeplineError
|
|
25
25
|
} from "./chunk-NXGCO4JB.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-XES27RSC.mjs";
|
|
27
27
|
import "./chunk-WZYKRD7T.mjs";
|
|
28
28
|
import "./chunk-KRD6H754.mjs";
|
|
29
29
|
|