deepline 0.3.547 → 0.3.548
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/absurd-runtime-worker.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +89 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
- package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
- package/dist/cli/auth-7UJFY5BY.js +43 -0
- package/dist/cli/{auth-WJEY4IDX.mjs → auth-YOOVLLUL.mjs} +5 -5
- package/dist/cli/{billing-PHJUDYF3.mjs → billing-2NCNX6L2.mjs} +8 -8
- package/dist/cli/{billing-IJITDDRQ.js → billing-HETIOUD6.js} +92 -92
- package/dist/cli/{chunk-FFBXLFKV.js → chunk-2OG2KBYJ.js} +1 -1
- package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-3QRU6RY7.mjs} +3 -3
- package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-53QLWPZK.mjs} +1 -1
- package/dist/cli/{chunk-IVFFCAV2.js → chunk-5OJOFUMO.js} +44 -44
- package/dist/cli/{chunk-MO7TGNXB.js → chunk-5XFJBIQT.js} +13 -13
- package/dist/cli/{chunk-E2OIYPB4.js → chunk-5XXPP3PR.js} +10 -10
- package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-64BFUBXX.mjs} +2 -2
- package/dist/cli/{chunk-QU3K3IY6.js → chunk-6GIZNOXQ.js} +12 -12
- package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-7AJ5V3BK.mjs} +1 -1
- package/dist/cli/{chunk-HFIFKP3A.js → chunk-7H6TQ6W2.js} +5 -5
- package/dist/cli/{chunk-VNOQEDVC.js → chunk-7JIOJLTS.js} +7 -7
- package/dist/cli/{chunk-GIGAYLY6.js → chunk-7UJZWI5Z.js} +9 -9
- package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-ATTURFOV.mjs} +1 -1
- package/dist/cli/{chunk-LMLSOHTU.js → chunk-AUYBBFPT.js} +53 -53
- package/dist/cli/{chunk-MBQELFL7.js → chunk-BDBEEV6X.js} +22 -22
- package/dist/cli/{chunk-L5J6UJ2X.js → chunk-BWJZ4NQJ.js} +15 -15
- package/dist/cli/{chunk-SAJWYN4B.js → chunk-CXZLHBNK.js} +4 -4
- package/dist/cli/{chunk-PBMO36BP.mjs → chunk-F4ON5COB.mjs} +2 -2
- package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-FMQA7UZZ.mjs} +2 -2
- package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-FUUYWEF4.mjs} +2 -2
- package/dist/cli/{chunk-G6KW764N.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
- package/dist/cli/{chunk-2AHY47SI.js → chunk-GUIYFOG2.js} +3 -3
- package/dist/cli/{chunk-OVYXYTEP.js → chunk-HDLMX7SG.js} +16 -16
- package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-HIMZ57QD.mjs} +5 -5
- package/dist/cli/{chunk-REAFIEV5.js → chunk-HTZIJORU.js} +99 -99
- package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-HU3DDLGD.mjs} +5 -5
- package/dist/cli/{chunk-GJOGFWX3.js → chunk-I2JIWKCQ.js} +19 -19
- package/dist/cli/{chunk-2HPTLBNB.js → chunk-IIWXBRDK.js} +3 -3
- package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-IQBXX54G.mjs} +3 -3
- package/dist/cli/{chunk-K3GMDSUX.js → chunk-JQWX377P.js} +5 -5
- package/dist/cli/{chunk-ABLTVG3J.js → chunk-LAVPP6WD.js} +41 -41
- package/dist/cli/{chunk-NBYFQZ6O.js → chunk-M2OZORIH.js} +2 -2
- package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-MQSKSISW.mjs} +1 -1
- package/dist/cli/{chunk-56MEAGWA.mjs → chunk-MWQ4WWZF.mjs} +2 -2
- package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-NFMX7BRF.mjs} +2 -2
- package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-OGDQFVCP.mjs} +2 -2
- package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-OQCYSLML.mjs} +4 -4
- package/dist/cli/{chunk-GZFZZQL4.js → chunk-PVE3A2BO.js} +8 -8
- package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-QQBRXMZM.mjs} +11 -11
- package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-QZ74ZC55.mjs} +1 -1
- package/dist/cli/{chunk-YURGAKI3.js → chunk-T3RDWG5J.js} +2 -2
- package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-TKGFHRHE.mjs} +1 -1
- package/dist/cli/{chunk-RXRC2COC.mjs → chunk-U35ZLVBA.mjs} +2 -2
- package/dist/cli/{chunk-YVKLF7RW.js → chunk-U7HJXE6Y.js} +2 -2
- package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-UBQQR56I.mjs} +4 -4
- package/dist/cli/{chunk-N63U5CRG.js → chunk-VK2GSTRN.js} +26 -26
- package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-VSACOMIA.mjs} +5 -5
- package/dist/cli/{chunk-D6OIEH47.js → chunk-WI4MCR7M.js} +5 -5
- package/dist/cli/{chunk-DZC7LMYM.js → chunk-WIHQAZPV.js} +6 -6
- package/dist/cli/{chunk-IGAK22XO.mjs → chunk-WVZF4DU7.mjs} +1 -1
- package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-XKEBQVCP.mjs} +5 -5
- package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XU3D2KFR.mjs} +1 -1
- package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
- package/dist/cli/{csv-VAHQHYYV.mjs → csv-GJYLQ52D.mjs} +4 -4
- package/dist/cli/{csv-X6D4ZELE.js → csv-OCEQWZO3.js} +13 -13
- package/dist/cli/{db-4G4S2VOV.mjs → db-5MA2UUHQ.mjs} +6 -6
- package/dist/cli/{db-YA5ZGVEX.js → db-G5QGXFAX.js} +27 -27
- package/dist/cli/{describe-EVXEM2S6.mjs → describe-4DOJ4DHA.mjs} +18 -18
- package/dist/cli/describe-SD7DRTBW.js +50 -0
- package/dist/cli/{executions-HR6CTN5M.mjs → executions-C7SMBHHB.mjs} +6 -6
- package/dist/cli/{executions-5YC7ABF6.js → executions-IYEVUPJI.js} +8 -8
- package/dist/cli/{feedback-MJHSYLFF.js → feedback-GYAF46GA.js} +14 -14
- package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-XUU2UKM6.mjs} +6 -6
- package/dist/cli/git-7YYVMY6L.js +25 -0
- package/dist/cli/{git-NPFF6QUS.mjs → git-WVCMK5AH.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-FXADGAX2.mjs} +7 -7
- package/dist/cli/{integrations-YPHFI77G.js → integrations-YYBJJFVX.js} +15 -15
- package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
- package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-REZCYES2.js} +9 -9
- package/dist/cli/{mcp-YTYTW67G.js → mcp-L5PURE5S.js} +24 -24
- package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-XSB3ZJFR.mjs} +4 -4
- package/dist/cli/{monitors-SA6ILD6Z.js → monitors-I5EIHSGV.js} +100 -100
- package/dist/cli/{monitors-73DQKCU7.mjs → monitors-UBPF2OLO.mjs} +7 -7
- package/dist/cli/{org-WVQRB2KX.mjs → org-PHHIN2ER.mjs} +6 -6
- package/dist/cli/{org-X7ELDV7B.js → org-SGSTGGUD.js} +88 -88
- package/dist/cli/{play-QI6V2EUQ.mjs → play-LEJNJLWY.mjs} +17 -17
- package/dist/cli/{play-QTYOAJPE.js → play-WQEKMANL.js} +317 -317
- package/dist/cli/{providers-DPVMVDS4.mjs → providers-3W26ZDAV.mjs} +6 -6
- package/dist/cli/{providers-XXFLVREV.js → providers-RSDXBXIS.js} +9 -9
- package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-LGJD2M36.mjs} +4 -4
- package/dist/cli/{quickstart-33ISXQJU.js → quickstart-U3QX4EMI.js} +6 -6
- package/dist/cli/{run-BWHZXLTD.js → run-F2UPZUJS.js} +43 -43
- package/dist/cli/{run-J6FCAKQC.mjs → run-YWZ3W5HK.mjs} +23 -23
- package/dist/cli/search-K6ANAXLF.js +32 -0
- package/dist/cli/{search-Z3UU3WBB.mjs → search-O2OJH3PY.mjs} +7 -7
- package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-H5BF6SJ3.mjs} +4 -4
- package/dist/cli/{search-output-YIPV74ME.js → search-output-W7OCBYBU.js} +6 -6
- package/dist/cli/{secrets-YZZN2WST.mjs → secrets-65XCAA7U.mjs} +6 -6
- package/dist/cli/{secrets-UXRJCEN4.js → secrets-BN4GYVRI.js} +15 -15
- package/dist/cli/sessions-M52QWLA6.js +22 -0
- package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-SVEVESCQ.mjs} +6 -6
- package/dist/cli/{settings-LAFYMILP.js → settings-7YMDAFCN.js} +85 -85
- package/dist/cli/{settings-ZP2LSVNM.mjs → settings-HAU2NP2H.mjs} +12 -12
- package/dist/cli/{setup-WEQAQSYC.mjs → setup-5RXHZ6YI.mjs} +9 -9
- package/dist/cli/{setup-4AL3XYM5.js → setup-G37QXQGM.js} +49 -49
- package/dist/cli/{skills-NQH4HFW2.mjs → skills-Q7A3XFAU.mjs} +7 -7
- package/dist/cli/skills-ZK4D5BJW.js +36 -0
- package/dist/cli/tools-DBZTLYFM.js +57 -0
- package/dist/cli/{tools-CXK2GSI4.mjs → tools-ZG4NYRGB.mjs} +17 -17
- package/dist/cli/{update-3ROF3Z75.mjs → update-2CMZTZCL.mjs} +9 -9
- package/dist/cli/update-LC5HGEEH.js +34 -0
- package/dist/cli/{views-AOUHVGV2.mjs → views-A6IIY4OQ.mjs} +6 -6
- package/dist/cli/{views-XJFO5CEH.js → views-XUMDMDIE.js} +21 -21
- package/dist/cli/{workflow-GY3DBHXX.js → workflow-4EEW6MCD.js} +17 -17
- package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-74MYISHU.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AC5277PI.js +0 -43
- package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
- package/dist/cli/describe-GYYSLZLV.js +0 -50
- package/dist/cli/git-FZIQZNI4.js +0 -25
- package/dist/cli/search-JCWJX2XD.js +0 -32
- package/dist/cli/sessions-NA4SJH6Q.js +0 -22
- package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
- package/dist/cli/tools-WJQ6Y7E4.js +0 -57
- package/dist/cli/update-ZLRLTBRD.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.548',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts
CHANGED
|
@@ -376,6 +376,7 @@ import {
|
|
|
376
376
|
abandonRuntimeSandboxOperationReservation,
|
|
377
377
|
bindRuntimeSandboxCapacityLease,
|
|
378
378
|
createRuntimeSandboxOperationReservation,
|
|
379
|
+
precheckRuntimeSandboxCapacity,
|
|
379
380
|
readReservedDaytonaCancellationOperation,
|
|
380
381
|
recordDaytonaSandboxCleanupIntent,
|
|
381
382
|
reserveRuntimeSandboxOperation,
|
|
@@ -3837,6 +3838,52 @@ async function executeAbsurdAttemptAdapter(
|
|
|
3837
3838
|
});
|
|
3838
3839
|
if (gated) return gated;
|
|
3839
3840
|
}
|
|
3841
|
+
// Before any launch work (token mint, the fleet-wide sandbox start limiter,
|
|
3842
|
+
// provider resolution), defer an attempt whose organization is already at
|
|
3843
|
+
// its sandbox capacity. The reservation below stays the authority; this
|
|
3844
|
+
// only spares a doomed attempt that work, and throws the same capacity
|
|
3845
|
+
// error, so deferral and terminalization are unchanged. A failed read
|
|
3846
|
+
// falls through to the ordinary path.
|
|
3847
|
+
if (
|
|
3848
|
+
isManagedSandboxRuntimeBackend(launch.runtimeBackend) &&
|
|
3849
|
+
launch.orgId
|
|
3850
|
+
) {
|
|
3851
|
+
const capacityMode = runtimeSandboxCapacityAdmissionMode();
|
|
3852
|
+
let precheck: Awaited<
|
|
3853
|
+
ReturnType<typeof precheckRuntimeSandboxCapacity>
|
|
3854
|
+
> | null = null;
|
|
3855
|
+
if (capacityMode === 'enforce') {
|
|
3856
|
+
try {
|
|
3857
|
+
precheck = await deps.runWithClient(
|
|
3858
|
+
(client) =>
|
|
3859
|
+
precheckRuntimeSandboxCapacity(
|
|
3860
|
+
client,
|
|
3861
|
+
{
|
|
3862
|
+
orgId: launch.orgId!,
|
|
3863
|
+
runId,
|
|
3864
|
+
mode: capacityMode,
|
|
3865
|
+
entitlementLimit: launch.concurrentRunsLimit ?? null,
|
|
3866
|
+
},
|
|
3867
|
+
options,
|
|
3868
|
+
),
|
|
3869
|
+
{ runId, phase: 'sandbox_capacity_precheck' },
|
|
3870
|
+
);
|
|
3871
|
+
} catch (error) {
|
|
3872
|
+
console.warn('[absurd-runtime.worker] sandbox_capacity_precheck_failed', {
|
|
3873
|
+
runId,
|
|
3874
|
+
attempt: generation,
|
|
3875
|
+
error: error instanceof Error ? error.message : String(error),
|
|
3876
|
+
});
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
if (precheck?.full) {
|
|
3880
|
+
throw new RuntimeSandboxCapacityLimitError({
|
|
3881
|
+
orgId: launch.orgId,
|
|
3882
|
+
limit: precheck.limit,
|
|
3883
|
+
activeLeases: precheck.activeLeases,
|
|
3884
|
+
});
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3840
3887
|
const carriedExperimentSwitches = readCarriedExperimentSwitchOverrides(
|
|
3841
3888
|
launch.experimentSwitchOverrides,
|
|
3842
3889
|
);
|
|
@@ -286,6 +286,95 @@ type RuntimeSandboxReservationProof = {
|
|
|
286
286
|
sandbox_id: string | null;
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
+
/**
|
|
290
|
+
* Advisory, lock-free read of an organization's sandbox capacity, used before
|
|
291
|
+
* an attempt does any launch work (executor-token mint, the fleet-wide sandbox
|
|
292
|
+
* start limiter, provider resolution). It mirrors the counting in
|
|
293
|
+
* `runtime_sandbox_capacity_observation` without taking its advisory lock, so
|
|
294
|
+
* it never contends with real reservations. `reserveRuntimeSandboxCapacityLease`
|
|
295
|
+
* stays the only authority: this read can only defer an attempt that the
|
|
296
|
+
* reservation would also refuse, and a run that already holds an unreleased
|
|
297
|
+
* lease (a resume or a pending provider operation) is never reported full.
|
|
298
|
+
*
|
|
299
|
+
* On 2026-11-18 one capacity-capped organization's blocked cron runs retried
|
|
300
|
+
* every ~21 s through the whole launch path before the reservation refused
|
|
301
|
+
* them: about 27,000 attempts an hour, nearly all of the fleet's sandbox-start
|
|
302
|
+
* limiter traffic.
|
|
303
|
+
*/
|
|
304
|
+
export async function precheckRuntimeSandboxCapacity(
|
|
305
|
+
client: PostgresSchedulerQueryClient,
|
|
306
|
+
input: {
|
|
307
|
+
orgId: string;
|
|
308
|
+
runId: string;
|
|
309
|
+
mode?: RuntimeSandboxCapacityAdmissionMode;
|
|
310
|
+
entitlementLimit?: number | null;
|
|
311
|
+
},
|
|
312
|
+
options?: Pick<PostgresSchedulerOptions, 'schema'>,
|
|
313
|
+
): Promise<{ full: boolean; limit: number; activeLeases: number }> {
|
|
314
|
+
const orgId = assertId(input.orgId, 'orgId');
|
|
315
|
+
const runId = assertId(input.runId, 'runId');
|
|
316
|
+
const { cache, leases } = schemaTables(options);
|
|
317
|
+
const result = await client.query<{
|
|
318
|
+
limit: number;
|
|
319
|
+
active_leases: number;
|
|
320
|
+
run_holds_lease: boolean;
|
|
321
|
+
}>(
|
|
322
|
+
`
|
|
323
|
+
SELECT
|
|
324
|
+
-- Same order as the reservation: an unexpired time-limited override,
|
|
325
|
+
-- then the launch-carried entitlement, then the observation's
|
|
326
|
+
-- configured limit (an expired mirror falls back to the default).
|
|
327
|
+
coalesce(
|
|
328
|
+
(
|
|
329
|
+
SELECT override."limit" FROM ${cache} AS override
|
|
330
|
+
WHERE override.org_id = $1
|
|
331
|
+
AND override.expires_at IS NOT NULL
|
|
332
|
+
AND override.expires_at > clock_timestamp()
|
|
333
|
+
),
|
|
334
|
+
$3::integer,
|
|
335
|
+
(
|
|
336
|
+
SELECT CASE
|
|
337
|
+
WHEN expires_at IS NOT NULL AND expires_at <= clock_timestamp()
|
|
338
|
+
THEN $2::integer
|
|
339
|
+
ELSE "limit"
|
|
340
|
+
END
|
|
341
|
+
FROM ${cache}
|
|
342
|
+
WHERE org_id = $1
|
|
343
|
+
),
|
|
344
|
+
$2::integer
|
|
345
|
+
) AS "limit",
|
|
346
|
+
(
|
|
347
|
+
SELECT count(*)::integer
|
|
348
|
+
FROM ${leases}
|
|
349
|
+
WHERE org_id = $1
|
|
350
|
+
AND released_at IS NULL
|
|
351
|
+
AND (sandbox_id IS NOT NULL OR expires_at > clock_timestamp())
|
|
352
|
+
) AS active_leases,
|
|
353
|
+
EXISTS (
|
|
354
|
+
SELECT 1
|
|
355
|
+
FROM ${leases}
|
|
356
|
+
WHERE org_id = $1
|
|
357
|
+
AND run_id = $4
|
|
358
|
+
AND released_at IS NULL
|
|
359
|
+
) AS run_holds_lease
|
|
360
|
+
`,
|
|
361
|
+
[
|
|
362
|
+
orgId,
|
|
363
|
+
DEFAULT_PLAY_SANDBOX_CONCURRENCY,
|
|
364
|
+
entitlementLimit(input.entitlementLimit),
|
|
365
|
+
runId,
|
|
366
|
+
],
|
|
367
|
+
);
|
|
368
|
+
const row = result.rows[0];
|
|
369
|
+
const limit = Number(row?.limit ?? DEFAULT_PLAY_SANDBOX_CONCURRENCY);
|
|
370
|
+
const activeLeases = Number(row?.active_leases ?? 0);
|
|
371
|
+
const full =
|
|
372
|
+
(input.mode ?? 'enforce') === 'enforce' &&
|
|
373
|
+
row?.run_holds_lease !== true &&
|
|
374
|
+
activeLeases >= limit;
|
|
375
|
+
return { full, limit, activeLeases };
|
|
376
|
+
}
|
|
377
|
+
|
|
289
378
|
/** A launch-carried limit inside the runtime's bounds, or null to ignore it. */
|
|
290
379
|
function entitlementLimit(value: number | null | undefined): number | null {
|
|
291
380
|
return typeof value === 'number' &&
|
|
@@ -14,6 +14,9 @@ const REPORTED_ABUSIVE_SIGNUP_DOMAINS = [
|
|
|
14
14
|
'jertom.com',
|
|
15
15
|
'temp-mail.lol',
|
|
16
16
|
'hidingpost.net',
|
|
17
|
+
// Temporary inboxes seen in the 2026-10 signup audit.
|
|
18
|
+
'18lover.com',
|
|
19
|
+
'westcast-systems.com',
|
|
17
20
|
] as const;
|
|
18
21
|
|
|
19
22
|
// Build once per module load. Authentication never needs an external lookup.
|
|
@@ -11,6 +11,30 @@ export function normalizeEmailDomain(value: string): string | null {
|
|
|
11
11
|
: null;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/** Providers that ignore dots in the local part, keyed to their canonical domain. */
|
|
15
|
+
const DOT_INSENSITIVE_DOMAINS = new Map([
|
|
16
|
+
['gmail.com', 'gmail.com'],
|
|
17
|
+
['googlemail.com', 'gmail.com'],
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The inbox an address delivers to: `+tag` suffixes are dropped and Gmail
|
|
22
|
+
* ignores dots, so every alias of one inbox shares one identity.
|
|
23
|
+
*/
|
|
24
|
+
export function mailboxIdentity(email?: string | null): string | undefined {
|
|
25
|
+
const normalized = email?.trim().toLowerCase();
|
|
26
|
+
if (!normalized) return undefined;
|
|
27
|
+
const atIndex = normalized.lastIndexOf('@');
|
|
28
|
+
if (atIndex <= 0) return normalized;
|
|
29
|
+
const local = normalized.slice(0, atIndex);
|
|
30
|
+
const domain = normalized.slice(atIndex + 1);
|
|
31
|
+
const untagged = local.split('+')[0] || local;
|
|
32
|
+
const dotInsensitiveDomain = DOT_INSENSITIVE_DOMAINS.get(domain);
|
|
33
|
+
return dotInsensitiveDomain
|
|
34
|
+
? `${untagged.replace(/\./g, '')}@${dotInsensitiveDomain}`
|
|
35
|
+
: `${untagged}@${domain}`;
|
|
36
|
+
}
|
|
37
|
+
|
|
14
38
|
export function emailDomainCandidates(email: string): string[] {
|
|
15
39
|
const domain = normalizeEmailDomain(email.slice(email.lastIndexOf('@') + 1));
|
|
16
40
|
if (!email.includes('@') || !domain) return [];
|
|
@@ -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 _chunkAUYBBFPTjs = require('./chunk-AUYBBFPT.js');
|
|
18
|
+
require('./chunk-I2JIWKCQ.js');
|
|
19
|
+
require('./chunk-IIWXBRDK.js');
|
|
20
|
+
require('./chunk-CXZLHBNK.js');
|
|
21
|
+
require('./chunk-EITMD3A5.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-BBTKAASQ.js');
|
|
24
|
+
require('./chunk-2OG2KBYJ.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 = _chunkAUYBBFPTjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkAUYBBFPTjs.authStatusLine; exports.clearPendingClaim = _chunkAUYBBFPTjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkAUYBBFPTjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkAUYBBFPTjs.handleRegister; exports.handleStatus = _chunkAUYBBFPTjs.handleStatus; exports.handleWait = _chunkAUYBBFPTjs.handleWait; exports.httpJson = _chunkAUYBBFPTjs.httpJson; exports.readPendingAuthClaim = _chunkAUYBBFPTjs.readPendingAuthClaim; exports.readStatusBanner = _chunkAUYBBFPTjs.readStatusBanner; exports.registerAuthCommands = _chunkAUYBBFPTjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkAUYBBFPTjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkAUYBBFPTjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkAUYBBFPTjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkAUYBBFPTjs.statusBannerLine;
|
|
@@ -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-IQBXX54G.mjs";
|
|
18
|
+
import "./chunk-OGDQFVCP.mjs";
|
|
19
|
+
import "./chunk-QZ74ZC55.mjs";
|
|
20
|
+
import "./chunk-53QLWPZK.mjs";
|
|
21
21
|
import "./chunk-NURW5XH4.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-JL2OTMSG.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7AJ5V3BK.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NFMX7BRF.mjs";
|
|
4
|
+
import "./chunk-IQBXX54G.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U35ZLVBA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
iterateCursorPages,
|
|
10
10
|
requireBillingIdempotencyKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TKGFHRHE.mjs";
|
|
12
12
|
import "./chunk-FZHMNK6F.mjs";
|
|
13
13
|
import "./chunk-LX35AXTN.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
openInBrowser,
|
|
30
30
|
printCommandEnvelope,
|
|
31
31
|
shouldEmitJson
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-OGDQFVCP.mjs";
|
|
33
|
+
import "./chunk-QZ74ZC55.mjs";
|
|
34
|
+
import "./chunk-53QLWPZK.mjs";
|
|
35
35
|
import {
|
|
36
36
|
AuthError,
|
|
37
37
|
ConfigError
|
|
@@ -40,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
DeeplineError
|
|
42
42
|
} from "./chunk-JL2OTMSG.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-7AJ5V3BK.mjs";
|
|
44
44
|
import "./chunk-WZYKRD7T.mjs";
|
|
45
45
|
import "./chunk-KRD6H754.mjs";
|
|
46
46
|
|