deepline 0.3.494 → 0.3.496
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/client-core.ts +103 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +5 -19
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +79 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +110 -66
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +57 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +19 -10
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +26 -6
- package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +4 -1
- package/dist/cli/{auth-6X5YXMFN.mjs → auth-EU4EFRDJ.mjs} +5 -5
- package/dist/cli/auth-SHWC5FMY.js +43 -0
- package/dist/cli/{billing-5F5PZB77.js → billing-4JJLTVK4.js} +80 -80
- package/dist/cli/{billing-IN74SDSC.mjs → billing-GMVH3RBX.mjs} +7 -7
- package/dist/cli/{chunk-H46X7YDU.mjs → chunk-2HCZHIMT.mjs} +20 -0
- package/dist/cli/{chunk-3KVFOKPR.js → chunk-3HIPDJWJ.js} +53 -53
- package/dist/cli/{chunk-QOEI42IU.mjs → chunk-3KA466RV.mjs} +1 -1
- package/dist/cli/{chunk-GNSGDIA4.mjs → chunk-4NKAM4GX.mjs} +2 -2
- package/dist/cli/{chunk-BU5Y7HOD.js → chunk-5GK6J7MH.js} +5 -5
- package/dist/cli/{chunk-J2HOVZOE.mjs → chunk-5M4PLPTR.mjs} +53 -3
- package/dist/cli/{chunk-CAWOSHEC.js → chunk-5YSIHOGV.js} +26 -26
- package/dist/cli/{chunk-RPFNIMUO.mjs → chunk-6QIAEXRH.mjs} +1 -1
- package/dist/cli/{chunk-4RWH4LRQ.mjs → chunk-6UUZM4FY.mjs} +5 -5
- package/dist/cli/{chunk-S3XQH7DW.js → chunk-73CBLBNP.js} +1 -1
- package/dist/cli/{chunk-KR2XEI5T.mjs → chunk-7NBDLK3N.mjs} +1 -1
- package/dist/cli/{chunk-MWZNMWR2.mjs → chunk-7Q7VPFPR.mjs} +2 -2
- package/dist/cli/{chunk-6XZR2642.mjs → chunk-7U6W3CKT.mjs} +4 -4
- package/dist/cli/{chunk-CK5MA6S6.js → chunk-AOBAVBSX.js} +115 -65
- package/dist/cli/{chunk-L4QPBQUX.mjs → chunk-CNMIYEB4.mjs} +3 -3
- package/dist/cli/{chunk-DVQHG6AM.mjs → chunk-CS2AEAD6.mjs} +63 -11
- package/dist/cli/{chunk-ODWTFVE4.mjs → chunk-DFW6P6ZN.mjs} +2 -2
- package/dist/cli/{chunk-L2P2XRPO.mjs → chunk-E3KXXJWR.mjs} +6 -6
- package/dist/cli/{chunk-PKV5CD3W.js → chunk-EQR5O2D2.js} +87 -35
- package/dist/cli/{chunk-L6KA4ENU.js → chunk-EX4JEFYI.js} +16 -16
- package/dist/cli/{chunk-IPWYDANJ.mjs → chunk-FXPICCUU.mjs} +1 -1
- package/dist/cli/{chunk-5WYH2LAP.js → chunk-GKZUGHDK.js} +6 -6
- package/dist/cli/{chunk-HINVMRGQ.js → chunk-GRIHMNYM.js} +4 -4
- package/dist/cli/{chunk-VMPM2FKT.js → chunk-HIAFBOYA.js} +8 -8
- package/dist/cli/{chunk-FAT6CUZK.mjs → chunk-IMWJRBV5.mjs} +1 -1
- package/dist/cli/{chunk-IZJSX3SZ.mjs → chunk-IXPZROZX.mjs} +2 -2
- package/dist/cli/{chunk-Y4GRL533.js → chunk-J55ZM5CK.js} +3 -3
- package/dist/cli/{chunk-X6HIIHQO.js → chunk-JEPNE4N5.js} +5 -5
- package/dist/cli/{chunk-QSRWBOPV.js → chunk-JU4LIA2T.js} +7 -7
- package/dist/cli/{chunk-GSCCDGGT.js → chunk-KKI5GWED.js} +94 -94
- package/dist/cli/{chunk-WP45PUPW.js → chunk-MWQ3WQ4Q.js} +41 -41
- package/dist/cli/{chunk-AARXOBVD.js → chunk-N3T3L3WW.js} +20 -0
- package/dist/cli/{chunk-TLQXN4ZZ.mjs → chunk-O36ZPHJG.mjs} +10 -10
- package/dist/cli/{chunk-7B7A36XZ.js → chunk-PHVRS56F.js} +14 -14
- package/dist/cli/{chunk-GDNQXLBM.js → chunk-QEBQIGXP.js} +2 -2
- package/dist/cli/{chunk-USWLB4KV.js → chunk-QN6IULFT.js} +53 -53
- package/dist/cli/{chunk-BLHQRETG.mjs → chunk-QYXUZX5N.mjs} +4 -4
- package/dist/cli/{chunk-J3UHNUWI.js → chunk-QZ7I4NZZ.js} +2 -2
- package/dist/cli/{chunk-KVCQL6SP.mjs → chunk-R4H5MCG4.mjs} +4 -4
- package/dist/cli/{chunk-L6L57RSG.mjs → chunk-SH6HOR25.mjs} +2 -2
- package/dist/cli/{chunk-EG3OSUBO.mjs → chunk-U6SE6757.mjs} +1 -1
- package/dist/cli/{chunk-65NMOP4T.mjs → chunk-UT3ORL35.mjs} +3 -3
- package/dist/cli/{chunk-4ZKZS43N.js → chunk-UTG3STCR.js} +3 -3
- package/dist/cli/{chunk-GLDBMKTV.js → chunk-W7DZ6UGP.js} +3 -3
- package/dist/cli/{chunk-DKKAJ3U2.mjs → chunk-WCBZHSC4.mjs} +5 -5
- package/dist/cli/{chunk-BNI653WN.js → chunk-WEGGJMNF.js} +21 -21
- package/dist/cli/{chunk-6DMLWM7L.mjs → chunk-WTZ7Y3IZ.mjs} +2 -2
- package/dist/cli/{chunk-WCZBIE5L.mjs → chunk-YHFW7MBT.mjs} +1 -1
- package/dist/cli/{chunk-4A5WXQJK.js → chunk-Z27R2BG7.js} +16 -16
- package/dist/cli/{chunk-ZZD245Z2.js → chunk-ZL4Q4T3G.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-UBW4ID5D.mjs → csv-ET7ESAPM.mjs} +4 -4
- package/dist/cli/{csv-QD7JJGSP.js → csv-JWBLNEPC.js} +13 -13
- package/dist/cli/{db-AARR3WYD.js → db-3ZGQXWTQ.js} +28 -28
- package/dist/cli/{db-QFDXKIVD.mjs → db-4PIWQPR6.mjs} +7 -7
- package/dist/cli/describe-KO3OQBIR.js +50 -0
- package/dist/cli/{describe-OBVIAC2H.mjs → describe-OREUCFC2.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-IZYUDYTZ.mjs → executions-HW6PMZOF.mjs} +7 -7
- package/dist/cli/{executions-KXY7KMZY.js → executions-YR545MRU.js} +9 -9
- package/dist/cli/{feedback-IVCVBERN.mjs → feedback-B2FJ6HPA.mjs} +4 -4
- package/dist/cli/{feedback-3334HBPD.js → feedback-FNVHJQEC.js} +8 -8
- package/dist/cli/{git-JHNVET5A.mjs → git-CCNPW3CA.mjs} +5 -5
- package/dist/cli/git-X2QJ2B5O.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-DBA32JCV.js → legacy-noops-2EBZS45D.js} +8 -8
- package/dist/cli/{legacy-noops-WGVBUOCC.mjs → legacy-noops-VJLCXTPB.mjs} +5 -5
- package/dist/cli/{monitors-ZGANC7JY.mjs → monitors-4AMETRW7.mjs} +190 -8
- package/dist/cli/{monitors-GHWZ5AZS.js → monitors-JNWKPCN5.js} +318 -136
- package/dist/cli/{org-S7JWP264.js → org-7FUHVFYU.js} +73 -73
- package/dist/cli/{org-CUS42N2T.mjs → org-LO6GSCCG.mjs} +7 -7
- package/dist/cli/{pages-IH56T6L6.mjs → pages-PJ32M2PU.mjs} +21 -7
- package/dist/cli/{pages-QXRZDEJW.js → pages-TT4TZOOV.js} +33 -19
- package/dist/cli/{play-Z65ZFOQH.mjs → play-QJEZAIZB.mjs} +19 -48
- package/dist/cli/{play-4C5PYS62.js → play-VN7DFYDP.js} +618 -647
- package/dist/cli/{providers-FSZSJX4Z.mjs → providers-24ER3SND.mjs} +7 -7
- package/dist/cli/{providers-XYQGYF3O.js → providers-IDFN2FCR.js} +10 -10
- package/dist/cli/{quickstart-ZA25RJT3.js → quickstart-AQDCRVUQ.js} +6 -6
- package/dist/cli/{quickstart-DHWVE32I.mjs → quickstart-FKENQU34.mjs} +4 -4
- package/dist/cli/{run-5MP6LEHM.js → run-HCASJQZY.js} +37 -37
- package/dist/cli/{run-WRPPEPLG.mjs → run-KXMRE5ZD.mjs} +23 -23
- package/dist/cli/{search-A6NVJPKX.mjs → search-3F2T33OE.mjs} +8 -8
- package/dist/cli/search-OGY6SQDJ.js +32 -0
- package/dist/cli/{search-output-YA6TXWGO.js → search-output-GFCEGNCJ.js} +6 -6
- package/dist/cli/{search-output-PAOUMVXY.mjs → search-output-U6PM5KAH.mjs} +4 -4
- package/dist/cli/{secrets-AZYOGH3I.js → secrets-KYVUP755.js} +16 -16
- package/dist/cli/{secrets-ZGF7JOBI.mjs → secrets-ZZSOVXOX.mjs} +7 -7
- package/dist/cli/{sessions-RNEAXZPV.mjs → sessions-4Z62CVHL.mjs} +5 -5
- package/dist/cli/{sessions-GCIN5VXT.js → sessions-7JFKTUQS.js} +6 -6
- package/dist/cli/{settings-NO5KXQJF.mjs → settings-OXG7IRVC.mjs} +12 -12
- package/dist/cli/{settings-LMEZNLBB.js → settings-X4PSK4EW.js} +79 -79
- package/dist/cli/{setup-XKTZPYYH.js → setup-NCJEDW4W.js} +49 -49
- package/dist/cli/{setup-GCYB4IFS.mjs → setup-RB7JE6KA.mjs} +9 -9
- package/dist/cli/{skills-TY4HHIKH.mjs → skills-D4BR2WU2.mjs} +7 -7
- package/dist/cli/skills-WWWFRDCA.js +36 -0
- package/dist/cli/{tools-RDTHHYJ3.mjs → tools-CEOD7VD5.mjs} +17 -17
- package/dist/cli/tools-QMSAA3LC.js +57 -0
- package/dist/cli/update-HTDFPN7L.js +34 -0
- package/dist/cli/{update-BRLLTTCS.mjs → update-UKUMQ6FC.mjs} +9 -9
- package/dist/cli/{workflow-F72EVZWM.mjs → workflow-EKKTTSCJ.mjs} +8 -8
- package/dist/cli/{workflow-YHA4WE3K.js → workflow-LFWQWZKS.js} +18 -18
- package/dist/{client-97yTcdLl.d.ts → client-Cj3UqrCZ.d.ts} +1 -1
- package/dist/{client-CFo9qalW.d.mts → client-DSCTVVRj.d.mts} +1 -1
- package/dist/{client-core-Dl6xgfLq.d.mts → client-core-B-8DTIN1.d.mts} +49 -3
- package/dist/{client-core-BRZrY13B.d.ts → client-core-dI4KTuWS.d.ts} +49 -3
- package/dist/{compiler-manifest-CPEF48NM.d.ts → compiler-manifest-DlXDyndN.d.mts} +2 -0
- package/dist/{compiler-manifest-CPEF48NM.d.mts → compiler-manifest-DlXDyndN.d.ts} +2 -0
- package/dist/{errors-BWbPzqwo.d.mts → errors-BtriA2ld.d.mts} +1 -1
- package/dist/{errors-B-PJXveg.d.ts → errors-DmcLykM7.d.ts} +1 -1
- package/dist/{index-CvVxPpE8.d.ts → index--Jw-slHY.d.ts} +1 -1
- package/dist/{index-BJ8AA1F9.d.mts → index-DI0sR_fX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +112 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-RWLCLMDY.js +0 -43
- package/dist/cli/describe-RYJ6HDYD.js +0 -50
- package/dist/cli/git-4VLYFHNU.js +0 -25
- package/dist/cli/search-4SQFVNTB.js +0 -32
- package/dist/cli/skills-V4APQA2I.js +0 -36
- package/dist/cli/tools-HKQLQ7HT.js +0 -57
- package/dist/cli/update-Z4MUAHWM.js +0 -34
package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts
CHANGED
|
@@ -53,6 +53,19 @@ export interface VercelDeploymentEventSummary {
|
|
|
53
53
|
workerBuildId: string | null;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
export type VercelPromotionTiming = {
|
|
57
|
+
requestedAt: number;
|
|
58
|
+
previousReleaseAt?: number;
|
|
59
|
+
train?: { runId: string; attempt: string; durationMs: number };
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export function vercelPromotionTimingKey(deploymentId: string): string {
|
|
63
|
+
if (!/^dpl_[a-zA-Z0-9]+$/.test(deploymentId)) {
|
|
64
|
+
throw new Error('Invalid Vercel deployment ID.');
|
|
65
|
+
}
|
|
66
|
+
return `production-releases/vercel-promotions/${deploymentId}.json`;
|
|
67
|
+
}
|
|
68
|
+
|
|
56
69
|
function readRecord(value: unknown): Record<string, unknown> | null {
|
|
57
70
|
if (!value || typeof value !== 'object' || Array.isArray(value)) return null;
|
|
58
71
|
return value as Record<string, unknown>;
|
|
@@ -261,6 +274,7 @@ export function buildVercelRollbackSlackText(
|
|
|
261
274
|
|
|
262
275
|
export function buildVercelDeploymentSlackText(
|
|
263
276
|
summary: VercelDeploymentEventSummary,
|
|
277
|
+
promotion?: { promotedAt: number; timing: VercelPromotionTiming },
|
|
264
278
|
): string {
|
|
265
279
|
const title =
|
|
266
280
|
summary.eventType === 'deployment.succeeded'
|
|
@@ -276,5 +290,48 @@ export function buildVercelDeploymentSlackText(
|
|
|
276
290
|
? `Aligned worker build: ${summary.workerBuildId}`
|
|
277
291
|
: null,
|
|
278
292
|
];
|
|
293
|
+
if (summary.eventType === 'deployment.promoted' && promotion) {
|
|
294
|
+
const { promotedAt, timing } = promotion;
|
|
295
|
+
const sinceRequest = promotedAt - timing.requestedAt;
|
|
296
|
+
// A later manual promotion must not pick up an abandoned CI intent.
|
|
297
|
+
if (
|
|
298
|
+
Number.isFinite(sinceRequest) &&
|
|
299
|
+
sinceRequest >= 0 &&
|
|
300
|
+
sinceRequest <= 600_000
|
|
301
|
+
) {
|
|
302
|
+
const sinceRelease = promotedAt - (timing.previousReleaseAt ?? NaN);
|
|
303
|
+
if (Number.isFinite(sinceRelease) && sinceRelease >= 0) {
|
|
304
|
+
lines.push(
|
|
305
|
+
`Since last successful Production release: ${formatDuration(sinceRelease)}`,
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
const train = timing.train;
|
|
309
|
+
if (
|
|
310
|
+
train &&
|
|
311
|
+
/^[1-9]\d*$/.test(train.runId) &&
|
|
312
|
+
/^[1-9]\d*$/.test(train.attempt) &&
|
|
313
|
+
Number.isFinite(train.durationMs) &&
|
|
314
|
+
train.durationMs >= 0
|
|
315
|
+
) {
|
|
316
|
+
const url = `https://github.com/getaero-io/deepline-api/actions/runs/${train.runId}/attempts/${train.attempt}`;
|
|
317
|
+
lines.push(
|
|
318
|
+
`CI train: ${formatDuration(train.durationMs)} · <${url}|View run>`,
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
279
323
|
return lines.filter(Boolean).join('\n');
|
|
280
324
|
}
|
|
325
|
+
|
|
326
|
+
function formatDuration(durationMs: number): string {
|
|
327
|
+
const seconds = Math.floor(durationMs / 1000);
|
|
328
|
+
const hours = Math.floor(seconds / 3600);
|
|
329
|
+
const minutes = Math.floor((seconds % 3600) / 60);
|
|
330
|
+
return [
|
|
331
|
+
hours ? `${hours}h` : '',
|
|
332
|
+
minutes || hours ? `${minutes}m` : '',
|
|
333
|
+
`${seconds % 60}s`,
|
|
334
|
+
]
|
|
335
|
+
.filter(Boolean)
|
|
336
|
+
.join(' ');
|
|
337
|
+
}
|
|
@@ -95,8 +95,7 @@ export type RuntimeAuthorityDescriptor = {
|
|
|
95
95
|
* Readers reject a token naming a capability they do not know, and the release
|
|
96
96
|
* canary mints with a new app against the deployed gateway. So a new capability
|
|
97
97
|
* ships known-but-withheld here, and joins the defaults only once every reader
|
|
98
|
-
* that verifies these tokens has deployed it.
|
|
99
|
-
* then; Play page writes fail closed (PAGES_UNAVAILABLE) meanwhile.
|
|
98
|
+
* that verifies these tokens has deployed it.
|
|
100
99
|
*/
|
|
101
100
|
const WITHHELD_FROM_DEFAULT_CAPABILITIES = new Set<RuntimeExecutionCapability>([
|
|
102
101
|
'run.ledger.project',
|
|
@@ -109,9 +108,15 @@ export const DEFAULT_RUNTIME_EXECUTION_CAPABILITIES = [
|
|
|
109
108
|
),
|
|
110
109
|
] as const satisfies readonly RuntimeExecutionCapability[];
|
|
111
110
|
|
|
111
|
+
/** Page writes are granted at Play admission, not by generic token minting. */
|
|
112
|
+
export const PLAY_RUNTIME_EXECUTION_CAPABILITIES = [
|
|
113
|
+
...DEFAULT_RUNTIME_EXECUTION_CAPABILITIES,
|
|
114
|
+
'page.write',
|
|
115
|
+
] as const satisfies readonly RuntimeExecutionCapability[];
|
|
116
|
+
|
|
112
117
|
/** Daytona receives these safe-to-steal capabilities, never raw DB access. */
|
|
113
118
|
export const DAYTONA_RUNTIME_EXECUTION_CAPABILITIES =
|
|
114
|
-
|
|
119
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES.filter(
|
|
115
120
|
(capability) => capability !== 'db.session',
|
|
116
121
|
);
|
|
117
122
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PlayAuthoringRunActor } from '../plays/authoring-contract';
|
|
2
2
|
import { mintWorkflowExecutorToken } from './/workflow-executor-auth';
|
|
3
3
|
import {
|
|
4
|
-
DEFAULT_RUNTIME_EXECUTION_CAPABILITIES,
|
|
5
4
|
normalizeRuntimeExecutionCapabilities,
|
|
5
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES,
|
|
6
6
|
type ExecutionOperationPolicy,
|
|
7
7
|
type RuntimeAuthorityDescriptor,
|
|
8
8
|
type RuntimeExecutionCapability,
|
|
@@ -138,7 +138,7 @@ export async function mintPlayRunRuntimeAuthority(input: {
|
|
|
138
138
|
schedulerSchema: input.schedulerSchema ?? null,
|
|
139
139
|
docflowEnabled: input.docflowEnabled === true,
|
|
140
140
|
capabilities: normalizeRuntimeExecutionCapabilities(
|
|
141
|
-
|
|
141
|
+
PLAY_RUNTIME_EXECUTION_CAPABILITIES,
|
|
142
142
|
),
|
|
143
143
|
};
|
|
144
144
|
return await mintPlayRunRuntimeAuthorityDescriptor({
|
|
@@ -22188,6 +22188,21 @@ export async function closeOutPostgresSchedulerOutboxHead(
|
|
|
22188
22188
|
) {
|
|
22189
22189
|
return { closed: false, reason: 'successors_changed' };
|
|
22190
22190
|
}
|
|
22191
|
+
// A search row still waiting for log indexing carries the pending flag,
|
|
22192
|
+
// and the outbox acknowledgement guard refuses to deliver it unindexed.
|
|
22193
|
+
// Closing a search lane gives up that indexing on purpose, so the closeout
|
|
22194
|
+
// clears the flag on these locked rows first. A Run Ledger lane is never
|
|
22195
|
+
// cleared here: a flag on it still makes the guard refuse the closeout, and
|
|
22196
|
+
// every other acknowledgement path stays guarded.
|
|
22197
|
+
if (candidate.searchOnly) {
|
|
22198
|
+
await client.query(
|
|
22199
|
+
`UPDATE ${outbox}
|
|
22200
|
+
SET payload_json = payload_json - '${RUNTIME_EVENT_DEFERRED_PROJECTION_FIELD}'
|
|
22201
|
+
WHERE event_id = ANY($1::text[])
|
|
22202
|
+
AND payload_json->'${RUNTIME_EVENT_DEFERRED_PROJECTION_FIELD}' = 'true'::jsonb`,
|
|
22203
|
+
[[candidate.eventId, ...successorEventIds]],
|
|
22204
|
+
);
|
|
22205
|
+
}
|
|
22191
22206
|
await client.query(
|
|
22192
22207
|
`UPDATE ${outbox}
|
|
22193
22208
|
SET delivered_at = now(),
|
|
@@ -1540,6 +1540,7 @@ function parseDocflowBindingsInSource(
|
|
|
1540
1540
|
export function lintPlayDocflow(
|
|
1541
1541
|
docflow: PlayDocflow,
|
|
1542
1542
|
sourceCode?: string,
|
|
1543
|
+
moduleSources?: ReadonlyMap<string, string>,
|
|
1543
1544
|
): PlayDocflowLintIssue[] {
|
|
1544
1545
|
const issues: PlayDocflowLintIssue[] = [];
|
|
1545
1546
|
// Mermaid subgraphs are region endpoints rather than ordinary nodes. Until
|
|
@@ -1554,16 +1555,17 @@ export function lintPlayDocflow(
|
|
|
1554
1555
|
docflow.nodes.map((node) => [node.id, [] as PlayDocflowEdge[]]),
|
|
1555
1556
|
);
|
|
1556
1557
|
const indegree = new Map(docflow.nodes.map((node) => [node.id, 0]));
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
const
|
|
1558
|
+
const identifiersBySource = new Map<string, Set<string>>();
|
|
1559
|
+
const identifiersForSource = (source: string): Set<string> => {
|
|
1560
|
+
const cached = identifiersBySource.get(source);
|
|
1561
|
+
if (cached) return cached;
|
|
1562
|
+
const executableSource = source
|
|
1560
1563
|
.replace(/\/\*[\s\S]*?\*\//g, '')
|
|
1561
1564
|
.replace(/\/\/.*$/gm, '');
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1565
|
+
const identifiers = new Set(executableSource.match(IDENTIFIER) ?? []);
|
|
1566
|
+
identifiersBySource.set(source, identifiers);
|
|
1567
|
+
return identifiers;
|
|
1568
|
+
};
|
|
1567
1569
|
|
|
1568
1570
|
for (const edge of docflow.edges) {
|
|
1569
1571
|
outgoing.get(edge.from)?.push(edge);
|
|
@@ -1699,8 +1701,15 @@ export function lintPlayDocflow(
|
|
|
1699
1701
|
hint: 'Add in:"…" and out:"…", or annotate a clearer assignment.',
|
|
1700
1702
|
});
|
|
1701
1703
|
}
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
+
// Imported annotations retain their own file and line. Names and assigned
|
|
1705
|
+
// variables must be checked in that file, not in the entry's namespace.
|
|
1706
|
+
const bindingSource = binding.sourcePath
|
|
1707
|
+
? (moduleSources?.get(binding.sourcePath) ?? sourceCode)
|
|
1708
|
+
: sourceCode;
|
|
1709
|
+
if (!bindingSource) continue;
|
|
1710
|
+
const sourceIdentifiers = identifiersForSource(bindingSource);
|
|
1711
|
+
const boundLine =
|
|
1712
|
+
bindingSource.split(/\r?\n/)[binding.line - 1]?.trim() ?? '';
|
|
1704
1713
|
const assignedName = /^(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=/.exec(
|
|
1705
1714
|
boundLine,
|
|
1706
1715
|
)?.[1];
|
|
@@ -45,6 +45,8 @@ export interface PlayStaticPipeline {
|
|
|
45
45
|
inputFields?: string[];
|
|
46
46
|
rowKeyFields?: string[];
|
|
47
47
|
csvArg?: string;
|
|
48
|
+
/** All authored CSV arguments, in source order. Older snapshots have only csvArg. */
|
|
49
|
+
csvArgs?: string[];
|
|
48
50
|
hasInlineData?: boolean;
|
|
49
51
|
csvDescription?: string;
|
|
50
52
|
datasetDescription?: string;
|
|
@@ -127,6 +129,18 @@ export function inputFieldFromStaticCsvArg(csvArg: unknown): string | null {
|
|
|
127
129
|
return match?.[1] ?? null;
|
|
128
130
|
}
|
|
129
131
|
|
|
132
|
+
/** Runtime input fields read by CSV calls; csvArg retains older snapshot support. */
|
|
133
|
+
export function inputFieldsFromStaticCsvArgs(pipeline: {
|
|
134
|
+
csvArg?: unknown;
|
|
135
|
+
csvArgs?: unknown;
|
|
136
|
+
}): string[] {
|
|
137
|
+
const args = [
|
|
138
|
+
pipeline.csvArg,
|
|
139
|
+
...(Array.isArray(pipeline.csvArgs) ? pipeline.csvArgs : []),
|
|
140
|
+
];
|
|
141
|
+
return dedupeStaticFieldNames(args.map(inputFieldFromStaticCsvArg));
|
|
142
|
+
}
|
|
143
|
+
|
|
130
144
|
export function deriveStaticPipelineFileInputFields(
|
|
131
145
|
pipeline: PlayStaticPipeline | null | undefined,
|
|
132
146
|
): string[] {
|
|
@@ -140,12 +154,18 @@ export function deriveStaticPipelineFileInputFields(
|
|
|
140
154
|
? (inputFieldFromStaticCsvArg(substep.path) ?? substep.field)
|
|
141
155
|
: null,
|
|
142
156
|
);
|
|
143
|
-
const
|
|
144
|
-
explicitCsvFields.length > 0
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
157
|
+
const inferredCsvFields = inputFieldsFromStaticCsvArgs(
|
|
158
|
+
explicitCsvFields.length > 0 ? { csvArgs: pipeline.csvArgs } : pipeline,
|
|
159
|
+
);
|
|
160
|
+
return dedupeStaticFieldNames([
|
|
161
|
+
...explicitCsvFields,
|
|
162
|
+
...inferredCsvFields,
|
|
163
|
+
...(explicitCsvFields.length === 0 &&
|
|
164
|
+
inferredCsvFields.length === 0 &&
|
|
165
|
+
pipeline.csvArg
|
|
166
|
+
? ['csv']
|
|
167
|
+
: []),
|
|
168
|
+
]);
|
|
149
169
|
}
|
|
150
170
|
|
|
151
171
|
export function deriveStaticPipelineEntryInputFields(
|
|
@@ -59,11 +59,14 @@ export function buildSlackActivityPayload(
|
|
|
59
59
|
: null;
|
|
60
60
|
const showHeader = input.showHeader ?? true;
|
|
61
61
|
const footerText = normalizeText(input.footerText);
|
|
62
|
+
// A plain-text event arrives as both the primary line and the details; show
|
|
63
|
+
// it once, in the details, instead of a bold copy above a plain one.
|
|
64
|
+
const primaryRepeatsDetails = compactDetailsBlock !== null && compactDetails === primary;
|
|
62
65
|
const headerBlock = {
|
|
63
66
|
type: 'section',
|
|
64
67
|
text: {
|
|
65
68
|
type: 'mrkdwn',
|
|
66
|
-
text: `${title}\n*${primary}*`,
|
|
69
|
+
text: primaryRepeatsDetails ? title : `${title}\n*${primary}*`,
|
|
67
70
|
},
|
|
68
71
|
};
|
|
69
72
|
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
reportSetupCompleted,
|
|
15
15
|
resolvePendingAuthClaimForResume,
|
|
16
16
|
statusBannerLine
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-UT3ORL35.mjs";
|
|
18
|
+
import "./chunk-WTZ7Y3IZ.mjs";
|
|
19
|
+
import "./chunk-7NBDLK3N.mjs";
|
|
20
|
+
import "./chunk-IMWJRBV5.mjs";
|
|
21
21
|
import "./chunk-4QF2K7TM.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-HBL4PM5Q.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-3KA466RV.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
export {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunk3HIPDJWJjs = require('./chunk-3HIPDJWJ.js');
|
|
18
|
+
require('./chunk-ZL4Q4T3G.js');
|
|
19
|
+
require('./chunk-J55ZM5CK.js');
|
|
20
|
+
require('./chunk-GRIHMNYM.js');
|
|
21
|
+
require('./chunk-ALJJRZNJ.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-DIAWYWT5.js');
|
|
24
|
+
require('./chunk-73CBLBNP.js');
|
|
25
|
+
require('./chunk-OG64RBAC.js');
|
|
26
|
+
require('./chunk-COGTRVWW.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunk3HIPDJWJjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunk3HIPDJWJjs.authStatusLine; exports.clearPendingClaim = _chunk3HIPDJWJjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunk3HIPDJWJjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunk3HIPDJWJjs.handleRegister; exports.handleStatus = _chunk3HIPDJWJjs.handleStatus; exports.handleWait = _chunk3HIPDJWJjs.handleWait; exports.httpJson = _chunk3HIPDJWJjs.httpJson; exports.readPendingAuthClaim = _chunk3HIPDJWJjs.readPendingAuthClaim; exports.readStatusBanner = _chunk3HIPDJWJjs.readStatusBanner; exports.registerAuthCommands = _chunk3HIPDJWJjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunk3HIPDJWJjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunk3HIPDJWJjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunk3HIPDJWJjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunk3HIPDJWJjs.statusBannerLine;
|