deepline 0.3.539 → 0.3.540
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/integration-contracts/billing-entitlements.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/{auth-QD7QGD3B.mjs → auth-32TURPHH.mjs} +5 -5
- package/dist/cli/auth-XA3K5LH2.js +43 -0
- package/dist/cli/{billing-KOQAF6WS.js → billing-6433M4BX.js} +105 -94
- package/dist/cli/{billing-FIZXMHBW.mjs → billing-NSH3NOHV.mjs} +21 -10
- package/dist/cli/{chunk-FH3P3E4S.js → chunk-2U4VACUA.js} +2 -2
- package/dist/cli/{chunk-GLKUC5PO.mjs → chunk-37VFUQMU.mjs} +2 -2
- package/dist/cli/chunk-3GVIVIER.js +54 -0
- package/dist/cli/{chunk-55ITVU2V.mjs → chunk-AB6DFHGL.mjs} +2 -2
- package/dist/cli/{chunk-V7DEGIYO.js → chunk-AJVK4XC5.js} +4 -4
- package/dist/cli/{chunk-K5MZHTK7.js → chunk-AOYW62XO.js} +3 -3
- package/dist/cli/{chunk-GEO2EMM7.mjs → chunk-B6UZUQ2O.mjs} +1 -1
- package/dist/cli/{chunk-JHEZQMOM.mjs → chunk-BD3VAPB4.mjs} +1 -1
- package/dist/cli/{chunk-XZBXQCRJ.js → chunk-BGBRA2S6.js} +22 -22
- package/dist/cli/{chunk-EAZS52DL.js → chunk-BNNGM2E5.js} +15 -15
- package/dist/cli/{chunk-6NZBLFL4.mjs → chunk-BZVVSUE2.mjs} +1 -1
- package/dist/cli/{chunk-TZBCJHV6.js → chunk-DV3ESQ4X.js} +1 -1
- package/dist/cli/{chunk-FIRV7BXJ.mjs → chunk-DWE2VE5I.mjs} +1 -1
- package/dist/cli/{chunk-KQTX545E.js → chunk-EXAXDEIF.js} +13 -13
- package/dist/cli/chunk-FANIRW74.mjs +9 -0
- package/dist/cli/{chunk-F43MXIN3.mjs → chunk-FR3AII3W.mjs} +2 -2
- package/dist/cli/chunk-GWHA4DAC.js +9 -0
- package/dist/cli/{chunk-FSQCB5SJ.js → chunk-H6IA6XRE.js} +2 -2
- package/dist/cli/{chunk-K22EKW6L.js → chunk-HKWJD45V.js} +5 -5
- package/dist/cli/{chunk-APKZGUTU.mjs → chunk-HLHDCFKL.mjs} +4 -4
- package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
- package/dist/cli/{chunk-RULRGMMM.mjs → chunk-IYQZVEV4.mjs} +5 -5
- package/dist/cli/{chunk-5RUB53KG.js → chunk-J3TAEPFA.js} +26 -26
- package/dist/cli/{chunk-GNCIMHO2.mjs → chunk-JGFGWWOF.mjs} +10 -10
- package/dist/cli/{chunk-Y66ZMOJI.mjs → chunk-JPU5YLQG.mjs} +1 -1
- package/dist/cli/{chunk-JBCQFG7G.mjs → chunk-KFAJYK2N.mjs} +3 -3
- package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
- package/dist/cli/{chunk-NR5PLMNG.js → chunk-LPMI4CYW.js} +107 -107
- package/dist/cli/{chunk-YMQFQO3K.js → chunk-LXLCQP4A.js} +16 -16
- package/dist/cli/{chunk-KAEVL62Q.js → chunk-M4DB6BBP.js} +44 -44
- package/dist/cli/{chunk-GLEGINSP.mjs → chunk-MH22LQKZ.mjs} +2 -2
- package/dist/cli/{chunk-MI53W4DN.js → chunk-MLDLN6WG.js} +53 -53
- package/dist/cli/{chunk-ISXX5DUD.js → chunk-MVIVF4BW.js} +3 -3
- package/dist/cli/{chunk-3YDI2PTN.js → chunk-N6DMKVKO.js} +10 -10
- package/dist/cli/{chunk-ADV2IB2C.mjs → chunk-PJOMRUFP.mjs} +5 -5
- package/dist/cli/{chunk-6V3LNYK5.mjs → chunk-S3ULSGFH.mjs} +2 -2
- package/dist/cli/{chunk-2XMFT44N.mjs → chunk-SGMDRYAD.mjs} +1 -1
- package/dist/cli/{chunk-MKESK3SW.mjs → chunk-SINNEITW.mjs} +4 -4
- package/dist/cli/{chunk-LE5KN7CZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
- package/dist/cli/{chunk-FTBWFDF3.js → chunk-TNUM4DFA.js} +7 -7
- package/dist/cli/{chunk-E4QHTDPF.mjs → chunk-TZVW5JH3.mjs} +1 -1
- package/dist/cli/{chunk-W32KT6LM.js → chunk-UJYX4VLX.js} +5 -5
- package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
- package/dist/cli/{chunk-LEREPTAE.js → chunk-VAOGM5VS.js} +19 -19
- package/dist/cli/{chunk-6KG4KVTH.mjs → chunk-WCM64BRH.mjs} +5 -5
- package/dist/cli/{chunk-CQJCLHBE.js → chunk-WDHHQEWQ.js} +41 -41
- package/dist/cli/{chunk-5YF35HAV.js → chunk-WHYNYL3M.js} +6 -6
- package/dist/cli/{chunk-Q4HNK7JX.js → chunk-XIIQNSWA.js} +8 -8
- package/dist/cli/{chunk-VK5UTS5B.js → chunk-XL3CEPZA.js} +9 -9
- package/dist/cli/{chunk-G3UFDUYU.mjs → chunk-XYM3SQZN.mjs} +1 -1
- package/dist/cli/{chunk-SDAP5MCO.mjs → chunk-Y6647AIY.mjs} +2 -2
- package/dist/cli/{chunk-N3LPGGWD.mjs → chunk-Z2OYTXLK.mjs} +1 -1
- package/dist/cli/{chunk-DZFVVP3S.mjs → chunk-ZJFU2COM.mjs} +5 -5
- package/dist/cli/{chunk-5QL4GJB2.js → chunk-ZTJQKHLM.js} +2 -2
- package/dist/cli/command-docs.js +3 -2
- package/dist/cli/command-docs.mjs +2 -1
- package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
- package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
- package/dist/cli/{csv-BWWJYV2C.js → csv-FBNS6SM3.js} +13 -13
- package/dist/cli/{csv-G5RQQ74W.mjs → csv-OJCMBODT.mjs} +4 -4
- package/dist/cli/{db-AJZHWB3V.mjs → db-43RQRF64.mjs} +6 -6
- package/dist/cli/{db-5KNDLADE.js → db-XRGJJ2KA.js} +27 -27
- package/dist/cli/{describe-QY5TKWVD.mjs → describe-I42Y3PWR.mjs} +17 -17
- package/dist/cli/describe-LWZCGAXU.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-BCCW76BI.js → executions-LH46O4PG.js} +8 -8
- package/dist/cli/{executions-SJPH3MZT.mjs → executions-QXGVQHQF.mjs} +6 -6
- package/dist/cli/{feedback-S6SZOFGK.mjs → feedback-ELFINGTM.mjs} +6 -6
- package/dist/cli/{feedback-GF65JKK6.js → feedback-ERYIV6MT.js} +14 -14
- package/dist/cli/git-OV2TGYVE.js +25 -0
- package/dist/cli/{git-F5FT5YVB.mjs → git-V2XWB6LN.mjs} +5 -5
- package/dist/cli/index.js +153 -143
- package/dist/cli/index.mjs +53 -43
- package/dist/cli/{legacy-noops-NOA4P5NE.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
- package/dist/cli/{legacy-noops-ECR6FS6U.js → legacy-noops-Y3OKNVWH.js} +9 -9
- package/dist/cli/{monitors-DEWBSURN.js → monitors-DNQXCRJZ.js} +100 -100
- package/dist/cli/{monitors-CTYSAGP4.mjs → monitors-L34NROM3.mjs} +7 -7
- package/dist/cli/{org-ZM2UUMZZ.js → org-JETA62CO.js} +86 -86
- package/dist/cli/{org-EKSKKT7H.mjs → org-L3HTEEXL.mjs} +6 -6
- package/dist/cli/{play-6JQOM6DE.js → play-GTGJRNWI.js} +473 -455
- package/dist/cli/{play-R2BH374J.mjs → play-JHGLSSJP.mjs} +35 -17
- package/dist/cli/{providers-CMIYHEMN.js → providers-7VH7PH2Q.js} +9 -9
- package/dist/cli/{providers-X7WMIWO4.mjs → providers-IQVHZJ27.mjs} +6 -6
- package/dist/cli/{quickstart-6HVPAMSW.js → quickstart-M25JNU3O.js} +6 -6
- package/dist/cli/{quickstart-ZZ7L6VZJ.mjs → quickstart-ZDBC45PM.mjs} +4 -4
- package/dist/cli/{run-OOHYH3GI.js → run-MPZGX3YD.js} +42 -42
- package/dist/cli/{run-FP32RKBU.mjs → run-NEEWZBTX.mjs} +22 -22
- package/dist/cli/search-HUN2YRQE.js +32 -0
- package/dist/cli/{search-BDDNC23Z.mjs → search-YXAFB4QQ.mjs} +7 -7
- package/dist/cli/{search-output-5VZIQQAM.js → search-output-4PH5HSJC.js} +6 -6
- package/dist/cli/{search-output-QXJ6CV5G.mjs → search-output-67BBIXIZ.mjs} +4 -4
- package/dist/cli/{secrets-Z7CQSQGC.mjs → secrets-445FER3C.mjs} +6 -6
- package/dist/cli/{secrets-EN2HQCO3.js → secrets-HLUBDN3H.js} +15 -15
- package/dist/cli/{sessions-I2H37OTJ.mjs → sessions-CCKXJNWT.mjs} +6 -6
- package/dist/cli/sessions-T2RNWC6B.js +22 -0
- package/dist/cli/{settings-IYSC5PPQ.mjs → settings-3XCZGGVF.mjs} +12 -12
- package/dist/cli/{settings-CTRAPFNZ.js → settings-WXJIQS5J.js} +85 -85
- package/dist/cli/{setup-XIN53GEW.js → setup-CKETRFFN.js} +49 -49
- package/dist/cli/{setup-PU3HOVI3.mjs → setup-TOSX6NER.mjs} +9 -9
- package/dist/cli/skills-FXM2RHHO.js +36 -0
- package/dist/cli/{skills-TYBML2ZO.mjs → skills-Q7NLCIJJ.mjs} +7 -7
- package/dist/cli/{tools-ZVNE6M6J.mjs → tools-GY6QMYTZ.mjs} +16 -16
- package/dist/cli/tools-XLVDZTWQ.js +56 -0
- package/dist/cli/{update-54WENBNT.mjs → update-A7JRUN4S.mjs} +9 -9
- package/dist/cli/update-AZINHILP.js +34 -0
- package/dist/cli/{views-7L75EZOJ.js → views-GUWC4SNI.js} +21 -21
- package/dist/cli/{views-EUBB4ONT.mjs → views-JG7FDEJR.mjs} +6 -6
- package/dist/cli/{workflow-EZVYCR6Y.js → workflow-CXNW7ICH.js} +17 -17
- package/dist/cli/{workflow-GUKGFJ72.mjs → workflow-QZCYSQ5G.mjs} +7 -7
- package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
- package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
- package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
- package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
- package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.mts} +14 -0
- package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.ts} +14 -0
- package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
- package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
- package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
- package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-O5Y2VYXK.js +0 -43
- package/dist/cli/describe-B6CN6CFJ.js +0 -49
- package/dist/cli/git-DX6NB7VF.js +0 -25
- package/dist/cli/search-34C6LFOJ.js +0 -32
- package/dist/cli/sessions-RYQX3NDD.js +0 -22
- package/dist/cli/skills-576CX7DK.js +0 -36
- package/dist/cli/tools-EXMUWA3Z.js +0 -56
- package/dist/cli/update-RAHETNL2.js +0 -34
|
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
|
|
|
205
205
|
// getters keep their established compatibility behavior.
|
|
206
206
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
207
207
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
208
|
-
version: '0.3.
|
|
208
|
+
version: '0.3.540',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
|
@@ -59,6 +59,16 @@ export type BillingEntitlements = {
|
|
|
59
59
|
expiresAt?: number;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* `play.concurrent_runs`: Plays this workspace runs at once. A run over the
|
|
64
|
+
* limit waits and starts when another finishes. Older servers omit it.
|
|
65
|
+
*/
|
|
66
|
+
concurrent_runs?: {
|
|
67
|
+
limit: number;
|
|
68
|
+
source: 'override' | 'plan' | 'default';
|
|
69
|
+
/** Each self-serve plan's limit, in plan order. */
|
|
70
|
+
plans: Array<{ sku: string; name: string; limit: number }>;
|
|
71
|
+
};
|
|
62
72
|
/** Rate provenance is separate from the inclusion flag. */
|
|
63
73
|
effective_limits: {
|
|
64
74
|
quickenrichUnlimited?: {
|
|
@@ -52,6 +52,8 @@ export type PlayActivityTarget =
|
|
|
52
52
|
* observations written before it existed and on other capacity pools.
|
|
53
53
|
*/
|
|
54
54
|
limit?: number;
|
|
55
|
+
/** Whether this limit was pinned at launch or read from workspace policy. */
|
|
56
|
+
limitSource?: 'admission' | 'workspace';
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
export type PlayActivityProgress = {
|
|
@@ -332,11 +334,13 @@ export function sandboxCapacityLimit(
|
|
|
332
334
|
|
|
333
335
|
function sandboxCapacitySummary(target: PlayActivityTarget): string {
|
|
334
336
|
const limit = sandboxCapacityLimit(target);
|
|
335
|
-
const
|
|
337
|
+
const capacity =
|
|
336
338
|
limit === null
|
|
337
|
-
? '
|
|
338
|
-
:
|
|
339
|
-
|
|
339
|
+
? 'workspace concurrency capacity'
|
|
340
|
+
: `workspace concurrency capacity (limit ${limit.toLocaleString('en-US')} simultaneous Play ${limit === 1 ? 'run' : 'runs'})`;
|
|
341
|
+
const pinned =
|
|
342
|
+
target.kind === 'capacity' && target.limitSource === 'admission';
|
|
343
|
+
return `Queued for ${capacity}. This run is waiting for a slot, not executing; scheduling retries automatically. No start time is guaranteed.${pinned ? ' This limit was recorded at admission; a plan change applies to new launches and does not update this run’s recorded limit.' : ''}`;
|
|
340
344
|
}
|
|
341
345
|
|
|
342
346
|
export function summarizePlayActivity(
|
|
@@ -36,7 +36,7 @@ export function optimizeAbsurdFairClaimSql(noCapClaim: string): string {
|
|
|
36
36
|
select r.*
|
|
37
37
|
${eligibility}
|
|
38
38
|
and r.org_key = o.org_key
|
|
39
|
-
order by r.priority desc, r.
|
|
39
|
+
order by r.priority desc, r.created_at, r.available_at, r.run_id
|
|
40
40
|
limit $2
|
|
41
41
|
) head
|
|
42
42
|
union all
|
|
@@ -44,7 +44,7 @@ ${eligibility}
|
|
|
44
44
|
select r.*
|
|
45
45
|
${eligibility}
|
|
46
46
|
and r.org_key is null
|
|
47
|
-
order by r.priority desc, r.
|
|
47
|
+
order by r.priority desc, r.created_at, r.available_at, r.run_id
|
|
48
48
|
limit $2
|
|
49
49
|
) null_head
|
|
50
50
|
), inflight as (`;
|
|
@@ -100,9 +100,10 @@ export function absurdQueryableForRuntimeScheduler(
|
|
|
100
100
|
client,
|
|
101
101
|
gate: claimGate,
|
|
102
102
|
run: async () => {
|
|
103
|
-
const queried = await client.query<
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
const queried = await client.query<Row & Record<string, unknown>>(
|
|
104
|
+
sql,
|
|
105
|
+
params,
|
|
106
|
+
);
|
|
106
107
|
return { rows: queried.rows as Row[] };
|
|
107
108
|
},
|
|
108
109
|
});
|
|
@@ -243,10 +244,22 @@ export function readAbsurdSchemaUncappedClaimSql(): string {
|
|
|
243
244
|
}
|
|
244
245
|
// The installed v4 claim function has the identical signature and result
|
|
245
246
|
// type. Replacing only its body is safe for old and new processes alike.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
// available_at determines eligibility, not a new place in line. Capacity
|
|
248
|
+
// deferral must not put an older, already-due run behind fresh arrivals.
|
|
249
|
+
// Retain priorities, per-org fair ranks, future-wake and cancellation fences.
|
|
250
|
+
return noCapClaim
|
|
251
|
+
.replace(
|
|
252
|
+
'create function absurd.claim_task',
|
|
253
|
+
'create or replace function absurd.claim_task',
|
|
254
|
+
)
|
|
255
|
+
.replaceAll(
|
|
256
|
+
'r.priority desc, r.available_at, r.created_at, r.run_id',
|
|
257
|
+
'r.priority desc, r.created_at, r.available_at, r.run_id',
|
|
258
|
+
)
|
|
259
|
+
.replaceAll(
|
|
260
|
+
'fair_rank asc, priority desc, available_at asc, created_at asc, run_id asc',
|
|
261
|
+
'fair_rank asc, priority desc, created_at asc, available_at asc, run_id asc',
|
|
262
|
+
);
|
|
250
263
|
}
|
|
251
264
|
|
|
252
265
|
export function readAbsurdSchemaNoSchedulerOrgCapCompatibilitySql(): string {
|
|
@@ -9367,9 +9367,9 @@ export async function deferPostgresSchedulerAttemptForCapacity(
|
|
|
9367
9367
|
/**
|
|
9368
9368
|
* Set only when the workspace's live-sandbox cap is full. The first
|
|
9369
9369
|
* deferral of an unbroken streak publishes a queued activity carrying the
|
|
9370
|
-
* limit, atomically with the requeue; later deferrals publish
|
|
9371
|
-
*
|
|
9372
|
-
* projection every retry.
|
|
9370
|
+
* limit, atomically with the requeue; later deferrals publish only when
|
|
9371
|
+
* the observed limit changes or an attempt records a sandbox. A long
|
|
9372
|
+
* unchanged wait does not rewrite the projection every retry.
|
|
9373
9373
|
*/
|
|
9374
9374
|
sandboxCapacity?: { limit: number; nowMs: number };
|
|
9375
9375
|
},
|
|
@@ -9415,7 +9415,7 @@ export async function deferPostgresSchedulerAttemptForCapacity(
|
|
|
9415
9415
|
${causalOutboxCreatedAt('requeued_run.run_id', options)}
|
|
9416
9416
|
FROM requeued_run
|
|
9417
9417
|
WHERE $5::integer IS NOT NULL
|
|
9418
|
-
AND NOT ${outstandingSandboxCapacityWaitSql('requeued_run.run_id', '$2::integer', options)}
|
|
9418
|
+
AND NOT ${outstandingSandboxCapacityWaitSql('requeued_run.run_id', '$2::integer', options, '$5::integer')}
|
|
9419
9419
|
ON CONFLICT (event_id) DO NOTHING
|
|
9420
9420
|
RETURNING event_id
|
|
9421
9421
|
)
|
|
@@ -9428,7 +9428,12 @@ export async function deferPostgresSchedulerAttemptForCapacity(
|
|
|
9428
9428
|
stringifyPostgresJson({
|
|
9429
9429
|
kind: 'scheduler_capacity',
|
|
9430
9430
|
message: input.reason,
|
|
9431
|
-
...(sandboxCapacity
|
|
9431
|
+
...(sandboxCapacity
|
|
9432
|
+
? {
|
|
9433
|
+
sandboxCapacity: true,
|
|
9434
|
+
sandboxCapacityLimit: sandboxCapacity.limit,
|
|
9435
|
+
}
|
|
9436
|
+
: {}),
|
|
9432
9437
|
}),
|
|
9433
9438
|
sandboxCapacity?.limit ?? null,
|
|
9434
9439
|
sandboxCapacity?.nowMs ?? null,
|
|
@@ -9448,15 +9453,26 @@ function outstandingSandboxCapacityWaitSql(
|
|
|
9448
9453
|
runIdSql: string,
|
|
9449
9454
|
attemptSql: string,
|
|
9450
9455
|
options?: Pick<PostgresSchedulerOptions, 'schema'>,
|
|
9456
|
+
currentLimitSql?: string,
|
|
9451
9457
|
): string {
|
|
9452
9458
|
return `EXISTS (
|
|
9453
|
-
SELECT 1 FROM
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9459
|
+
SELECT 1 FROM (
|
|
9460
|
+
SELECT attempt, error_json
|
|
9461
|
+
FROM ${tableName('attempts', options)} AS prior_wait
|
|
9462
|
+
WHERE prior_wait.run_id = ${runIdSql}
|
|
9463
|
+
AND prior_wait.attempt < ${attemptSql}
|
|
9464
|
+
AND prior_wait.error_json->>'sandboxCapacity' = 'true'
|
|
9465
|
+
ORDER BY prior_wait.attempt DESC LIMIT 1
|
|
9466
|
+
) AS waited
|
|
9467
|
+
WHERE true
|
|
9468
|
+
${
|
|
9469
|
+
currentLimitSql
|
|
9470
|
+
? `AND waited.error_json->'sandboxCapacityLimit' = to_jsonb(${currentLimitSql})`
|
|
9471
|
+
: ''
|
|
9472
|
+
}
|
|
9457
9473
|
AND NOT EXISTS (
|
|
9458
9474
|
SELECT 1 FROM ${tableName('attempts', options)} AS started
|
|
9459
|
-
WHERE started.run_id =
|
|
9475
|
+
WHERE started.run_id = ${runIdSql}
|
|
9460
9476
|
AND started.attempt > waited.attempt
|
|
9461
9477
|
AND started.attempt < ${attemptSql}
|
|
9462
9478
|
AND jsonb_path_exists(started.resource_json, '$[*].sandboxId')
|
|
@@ -9483,7 +9499,10 @@ function sandboxCapacityActivityEventSql(
|
|
|
9483
9499
|
'activityId', ${escapeLiteral(SANDBOX_CAPACITY_ACTIVITY_ID)},
|
|
9484
9500
|
'target', jsonb_strip_nulls(jsonb_build_object(
|
|
9485
9501
|
'kind', 'capacity', 'pool', 'runner',
|
|
9486
|
-
'label', 'a concurrency slot', 'limit', ${limitSql}
|
|
9502
|
+
'label', 'a concurrency slot', 'limit', ${limitSql},
|
|
9503
|
+
'limitSource', CASE WHEN ${limitSql} IS NULL THEN NULL
|
|
9504
|
+
WHEN requeued_run.launch_json->'concurrentRunsLimit' = to_jsonb(${limitSql})
|
|
9505
|
+
THEN 'admission' ELSE 'workspace' END
|
|
9487
9506
|
)),
|
|
9488
9507
|
'state', ${stateSql},
|
|
9489
9508
|
'observedAt', ${nowSql}
|
|
@@ -3628,7 +3628,7 @@ export const PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
3628
3628
|
'};',
|
|
3629
3629
|
'export type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({ readonly playName: string; readonly name?: string } | { readonly name: string; readonly playName?: string }) & { readonly __inputType?: TInput };',
|
|
3630
3630
|
'export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number }; peopleSearch: { enabled: boolean; requestsPerMinute: number; profilesPerMonth: number; overageCreditsPerProfile?: number } };',
|
|
3631
|
-
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } }; includedStorage?: { status: 'active'; usage: { limit: number; consumed: number; remaining: number; measuredDay: string; overageCharged: boolean } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
3631
|
+
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } }; includedStorage?: { status: 'active'; usage: { limit: number; consumed: number; remaining: number; measuredDay: string; overageCharged: boolean } } }; concurrent_runs?: { limit: number; source: 'override' | 'plan' | 'default'; plans: Array<{ sku: string; name: string; limit: number }> }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
3632
3632
|
'export interface DeeplinePlayRuntimeContext {',
|
|
3633
3633
|
' billing: { entitlements(): Promise<BillingEntitlements> };',
|
|
3634
3634
|
" views: { list(): Promise<Array<{ id: string; name: string; url: string; runUrl: string; access: 'workspace' | 'public' }>> };",
|
|
@@ -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-SXVYFOBG.mjs";
|
|
18
|
+
import "./chunk-37VFUQMU.mjs";
|
|
19
|
+
import "./chunk-DWE2VE5I.mjs";
|
|
20
|
+
import "./chunk-XYM3SQZN.mjs";
|
|
21
21
|
import "./chunk-CQBIO6HW.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-JL2OTMSG.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-TZVW5JH3.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 _chunkMLDLN6WGjs = require('./chunk-MLDLN6WG.js');
|
|
18
|
+
require('./chunk-VAOGM5VS.js');
|
|
19
|
+
require('./chunk-MVIVF4BW.js');
|
|
20
|
+
require('./chunk-AJVK4XC5.js');
|
|
21
|
+
require('./chunk-2GJZLIKW.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-BBTKAASQ.js');
|
|
24
|
+
require('./chunk-DV3ESQ4X.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 = _chunkMLDLN6WGjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkMLDLN6WGjs.authStatusLine; exports.clearPendingClaim = _chunkMLDLN6WGjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkMLDLN6WGjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkMLDLN6WGjs.handleRegister; exports.handleStatus = _chunkMLDLN6WGjs.handleStatus; exports.handleWait = _chunkMLDLN6WGjs.handleWait; exports.httpJson = _chunkMLDLN6WGjs.httpJson; exports.readPendingAuthClaim = _chunkMLDLN6WGjs.readPendingAuthClaim; exports.readStatusBanner = _chunkMLDLN6WGjs.readStatusBanner; exports.registerAuthCommands = _chunkMLDLN6WGjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkMLDLN6WGjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkMLDLN6WGjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkMLDLN6WGjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkMLDLN6WGjs.statusBannerLine;
|