deepline 0.3.389 → 0.3.391
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/agent-runtime.ts +21 -16
- package/dist/bundling-sources/sdk/src/billing-idempotency.ts +1 -1
- package/dist/bundling-sources/sdk/src/cli-invocation-id.ts +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +75 -52
- package/dist/bundling-sources/sdk/src/config.ts +3 -2
- package/dist/bundling-sources/sdk/src/db/query.ts +3 -3
- package/dist/bundling-sources/sdk/src/deployment-protection.ts +7 -5
- package/dist/bundling-sources/sdk/src/http.ts +31 -41
- package/dist/bundling-sources/sdk/src/index.ts +26 -26
- package/dist/bundling-sources/sdk/src/play.ts +5 -5
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +2 -2
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +2 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/read-errors.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +1 -1
- package/dist/bundling-sources/sdk/src/skills-version.ts +2 -2
- package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -3
- package/dist/bundling-sources/sdk/src/types.ts +10 -1
- package/dist/bundling-sources/sdk/src/version.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +87 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +19 -11
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +1 -1
- package/dist/cli/{auth-DEASEYUJ.mjs → auth-6QET7NFP.mjs} +4 -4
- package/dist/cli/auth-6ZUH42ZA.js +39 -0
- package/dist/cli/{billing-TUTB4H6F.mjs → billing-HAQ2VDQX.mjs} +4 -4
- package/dist/cli/{billing-QIWD5GYZ.js → billing-KJAGTCFR.js} +73 -73
- package/dist/cli/{chunk-WRLYF4DS.js → chunk-4S6X74A3.js} +2 -2
- package/dist/cli/{chunk-HXENYWVS.js → chunk-4TCT77UF.js} +485 -114
- package/dist/cli/{chunk-KWGB3RWA.js → chunk-556BMGEB.js} +235 -220
- package/dist/cli/{chunk-CCIEPJSX.mjs → chunk-6L4P7Z6C.mjs} +2 -2
- package/dist/cli/{chunk-M6BQYSV3.mjs → chunk-DRZFTRZJ.mjs} +46 -31
- package/dist/cli/{chunk-7IPMWJNZ.js → chunk-ED42XCOW.js} +226 -226
- package/dist/cli/{chunk-B6BQ6EAR.mjs → chunk-H2ER7QWR.mjs} +6 -6
- package/dist/cli/{chunk-HHRQYYHK.mjs → chunk-H3DCZOXR.mjs} +5 -5
- package/dist/cli/{chunk-63ZXA57X.mjs → chunk-HFTOOZGN.mjs} +3 -3
- package/dist/cli/{chunk-PPKNOVMF.mjs → chunk-I3MKXASV.mjs} +2 -2
- package/dist/cli/{chunk-CLOICRTK.js → chunk-I7EVBLTW.js} +6 -6
- package/dist/cli/{chunk-7WQGDKNO.mjs → chunk-K3ODOHOI.mjs} +34 -26
- package/dist/cli/{chunk-MCWGQIDV.js → chunk-KA7X75HC.js} +48 -48
- package/dist/cli/{chunk-NBXJJBBT.mjs → chunk-KWF4HJF7.mjs} +1 -1
- package/dist/cli/{chunk-CMWDXAQH.js → chunk-ME2DZAHC.js} +26 -26
- package/dist/cli/{chunk-Z43SUQUL.js → chunk-MHLCMJ2E.js} +99 -91
- package/dist/cli/{chunk-MP7FWY76.mjs → chunk-PFPP4BKS.mjs} +2 -2
- package/dist/cli/{chunk-HVDBGPDP.mjs → chunk-PQSA443V.mjs} +485 -114
- package/dist/cli/{chunk-RHAP7ZW5.mjs → chunk-QCWIORKR.mjs} +2 -2
- package/dist/cli/{chunk-FZXZLFNC.js → chunk-RA2SDTSX.js} +15 -15
- package/dist/cli/{chunk-ABLS54ZL.js → chunk-RTH26NF3.js} +61 -61
- package/dist/cli/{chunk-Z4ZB2CDV.mjs → chunk-TLHF54VX.mjs} +1 -1
- package/dist/cli/{chunk-FZZC3A7J.js → chunk-UOSKJIXE.js} +8 -8
- package/dist/cli/{chunk-GB3KEA34.mjs → chunk-VH4B5OYM.mjs} +1 -1
- package/dist/cli/{chunk-RPGSXBS3.js → chunk-WLODHQ7S.js} +1 -1
- package/dist/cli/{chunk-OWP6SI5W.js → chunk-XBPLTHGB.js} +8 -8
- package/dist/cli/{chunk-5VCRXKAU.js → chunk-XEV5LMS2.js} +50 -50
- package/dist/cli/{chunk-2L6BBM7Z.mjs → chunk-YBZY3EZF.mjs} +4 -4
- package/dist/cli/command-docs.d.mts +24 -1
- package/dist/cli/command-docs.d.ts +24 -1
- package/dist/cli/command-docs.js +8 -2
- package/dist/cli/command-docs.mjs +9 -3
- package/dist/cli/{csv-FYI4XWEA.js → csv-2WSF5TEM.js} +12 -12
- package/dist/cli/{csv-GQ5K6MDD.mjs → csv-V7UHOBFE.mjs} +3 -3
- package/dist/cli/{db-WYSI3J43.js → db-42RL4FZD.js} +29 -29
- package/dist/cli/{db-DYXQOAWZ.mjs → db-TD375E4N.mjs} +4 -4
- package/dist/cli/{describe-T25AHZEJ.js → describe-7WFCBZUY.js} +18 -18
- package/dist/cli/{describe-YIIUMAZF.mjs → describe-GPUKAWOZ.mjs} +8 -8
- package/dist/cli/{executions-3D7KAJ2C.js → executions-LGVG3FPH.js} +6 -6
- package/dist/cli/{executions-RYFSOPMQ.mjs → executions-M7O63JNA.mjs} +4 -4
- package/dist/cli/{feedback-CIZXMDMJ.mjs → feedback-6PBSKVB2.mjs} +3 -3
- package/dist/cli/{feedback-I7FWPC7V.js → feedback-PZZA2M4S.js} +7 -7
- package/dist/cli/{git-JCURDXPQ.mjs → git-2VIFM5DI.mjs} +4 -4
- package/dist/cli/git-ZSJD3BID.js +23 -0
- package/dist/cli/index.js +93 -93
- package/dist/cli/index.mjs +33 -33
- package/dist/cli/{legacy-noops-4BW4EZJG.mjs → legacy-noops-DPUBZI7N.mjs} +4 -4
- package/dist/cli/{legacy-noops-G6F5LNUM.js → legacy-noops-IQ6QTZNZ.js} +7 -7
- package/dist/cli/{monitors-43UXU5C3.js → monitors-6GWAZFYV.js} +85 -85
- package/dist/cli/{monitors-LTKH5IWE.mjs → monitors-KBZVQG2U.mjs} +4 -4
- package/dist/cli/{org-I3WHUV67.mjs → org-CP3VSJBX.mjs} +4 -4
- package/dist/cli/{org-7MSUEPXL.js → org-JKGTHXOZ.js} +64 -64
- package/dist/cli/{play-HRZXSNXV.mjs → play-DD2ME4L4.mjs} +7 -7
- package/dist/cli/play-G5GVMIBN.js +157 -0
- package/dist/cli/{providers-BY6JPMKP.mjs → providers-JUNOFKI7.mjs} +4 -4
- package/dist/cli/{providers-DWLWK5VX.js → providers-P34QYYG6.js} +7 -7
- package/dist/cli/{quickstart-E647CKUQ.mjs → quickstart-N6SWOK7E.mjs} +3 -3
- package/dist/cli/{quickstart-QO6GCK4U.js → quickstart-UL3DEFA4.js} +5 -5
- package/dist/cli/{search-3WUQBHRV.mjs → search-SC7I56HX.mjs} +5 -5
- package/dist/cli/search-W4GXWTOM.js +26 -0
- package/dist/cli/{secrets-CPNHE5XI.js → secrets-6ZJE7ZPM.js} +13 -13
- package/dist/cli/{secrets-WTGMFFP7.mjs → secrets-RTARNYF5.mjs} +4 -4
- package/dist/cli/{sessions-UFGGEDZP.js → sessions-6IZ2XHGW.js} +5 -5
- package/dist/cli/{sessions-6Q5E7GSY.mjs → sessions-7RKV2T3O.mjs} +4 -4
- package/dist/cli/{settings-QMEIKOUI.mjs → settings-V6PXA6HY.mjs} +7 -7
- package/dist/cli/{settings-NF5726RU.js → settings-YX3XJDXE.js} +74 -74
- package/dist/cli/{setup-J35MMJ7C.js → setup-CQ5VRNNU.js} +41 -41
- package/dist/cli/{setup-ZOQOJMJ7.mjs → setup-V2O4UJNT.mjs} +6 -6
- package/dist/cli/skills-LBZPJTPI.js +28 -0
- package/dist/cli/{skills-UFDKCSYR.mjs → skills-VHJZWEHA.mjs} +4 -4
- package/dist/cli/{tools-3SU3EUQT.mjs → tools-OD5WKEWY.mjs} +6 -6
- package/dist/cli/tools-TQNM473H.js +40 -0
- package/dist/cli/{update-SXYX4PMC.mjs → update-CRMNOMJ3.mjs} +6 -6
- package/dist/cli/update-QY6GAK6B.js +28 -0
- package/dist/cli/{workflow-2LINUMOP.mjs → workflow-EVDYNCDD.mjs} +5 -5
- package/dist/cli/{workflow-XAIEXDUI.js → workflow-XHORSD5T.js} +15 -15
- package/dist/{client-DEKvymBI.d.ts → client-BhK9kix9.d.ts} +19 -0
- package/dist/{client-0avPvYBP.d.mts → client-DpzZi4fU.d.mts} +19 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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/package.json +1 -1
- package/dist/cli/auth-AOM2LA73.js +0 -39
- package/dist/cli/git-MVMIPHQ6.js +0 -23
- package/dist/cli/play-R5TYLP5L.js +0 -157
- package/dist/cli/search-34AC6FC7.js +0 -26
- package/dist/cli/skills-WGYISRE5.js +0 -28
- package/dist/cli/tools-Q642ZZ2M.js +0 -40
- package/dist/cli/update-T5MNWAQC.js +0 -28
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VH4B5OYM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K3ODOHOI.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
22
22
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
23
23
|
resolveConfig
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-K3ODOHOI.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DeeplineError,
|
|
27
27
|
TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
|
|
@@ -2804,12 +2804,12 @@ function normalizePlayRunIntegrationMode(value) {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
return void 0;
|
|
2806
2806
|
}
|
|
2807
|
-
function resolvePlayRunIntegrationMode(request) {
|
|
2807
|
+
function resolvePlayRunIntegrationMode(request, env) {
|
|
2808
2808
|
return normalizePlayRunIntegrationMode(
|
|
2809
|
-
request.integrationMode ??
|
|
2809
|
+
request.integrationMode ?? env.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
2810
2810
|
);
|
|
2811
2811
|
}
|
|
2812
|
-
function resolvePlayRunRuntimeSelection(request) {
|
|
2812
|
+
function resolvePlayRunRuntimeSelection(request, env) {
|
|
2813
2813
|
if (request.runtime !== void 0) {
|
|
2814
2814
|
const runtime = normalizePlayRuntimeSelection(request.runtime);
|
|
2815
2815
|
if (!runtime) {
|
|
@@ -2821,10 +2821,10 @@ function resolvePlayRunRuntimeSelection(request) {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
return runtime;
|
|
2823
2823
|
}
|
|
2824
|
-
const configured =
|
|
2825
|
-
const configuredNamespace =
|
|
2826
|
-
const configuredToken =
|
|
2827
|
-
const configuredPlacementPolicy =
|
|
2824
|
+
const configured = env.DEEPLINE_RUNTIME_ENVIRONMENT?.trim();
|
|
2825
|
+
const configuredNamespace = env.DEEPLINE_RUNTIME_NAMESPACE?.trim();
|
|
2826
|
+
const configuredToken = env.DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN?.trim();
|
|
2827
|
+
const configuredPlacementPolicy = env.DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY?.trim();
|
|
2828
2828
|
if (!configured) {
|
|
2829
2829
|
if (configuredNamespace || configuredToken || configuredPlacementPolicy) {
|
|
2830
2830
|
const present = [];
|
|
@@ -2863,7 +2863,7 @@ function resolvePlayRunRuntimeSelection(request) {
|
|
|
2863
2863
|
"INVALID_RUNTIME_NAMESPACE"
|
|
2864
2864
|
);
|
|
2865
2865
|
}
|
|
2866
|
-
const configuredBackendValue =
|
|
2866
|
+
const configuredBackendValue = env.DEEPLINE_PLAY_RUNNER_BACKEND?.trim();
|
|
2867
2867
|
const configuredBackend = configuredBackendValue === "daytona" || configuredBackendValue === "modal" ? configuredBackendValue : void 0;
|
|
2868
2868
|
if (configuredBackendValue && !configuredBackend) {
|
|
2869
2869
|
throw new DeeplineError(
|
|
@@ -2886,10 +2886,10 @@ function resolvePlayRunRuntimeSelection(request) {
|
|
|
2886
2886
|
...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {}
|
|
2887
2887
|
};
|
|
2888
2888
|
}
|
|
2889
|
-
function resolveStartPlayRunRequest(request) {
|
|
2890
|
-
const integrationMode = resolvePlayRunIntegrationMode(request);
|
|
2891
|
-
const testPolicyOverrides = request.testPolicyOverrides ?? parseEnvTestPolicyOverrides();
|
|
2892
|
-
const runtime = resolvePlayRunRuntimeSelection(request);
|
|
2889
|
+
function resolveStartPlayRunRequest(request, env) {
|
|
2890
|
+
const integrationMode = resolvePlayRunIntegrationMode(request, env);
|
|
2891
|
+
const testPolicyOverrides = request.testPolicyOverrides ?? parseEnvTestPolicyOverrides(env);
|
|
2892
|
+
const runtime = resolvePlayRunRuntimeSelection(request, env);
|
|
2893
2893
|
const resolved = { ...request };
|
|
2894
2894
|
delete resolved.integrationMode;
|
|
2895
2895
|
delete resolved.runtime;
|
|
@@ -2899,9 +2899,9 @@ function resolveStartPlayRunRequest(request) {
|
|
|
2899
2899
|
if (testPolicyOverrides) resolved.testPolicyOverrides = testPolicyOverrides;
|
|
2900
2900
|
return { request: resolved, runtime };
|
|
2901
2901
|
}
|
|
2902
|
-
function runtimeSelectionHeaders(runtime) {
|
|
2902
|
+
function runtimeSelectionHeaders(runtime, env) {
|
|
2903
2903
|
if (!runtime) return void 0;
|
|
2904
|
-
const token =
|
|
2904
|
+
const token = env.DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN?.trim();
|
|
2905
2905
|
if (!token) {
|
|
2906
2906
|
throw new DeeplineError(
|
|
2907
2907
|
"DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN is required for explicit preview runtime selection.",
|
|
@@ -2909,18 +2909,18 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2909
2909
|
"RUNTIME_ENVIRONMENT_TOKEN_REQUIRED"
|
|
2910
2910
|
);
|
|
2911
2911
|
}
|
|
2912
|
-
const receivers =
|
|
2912
|
+
const receivers = env.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS?.trim();
|
|
2913
2913
|
return {
|
|
2914
2914
|
[RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2915
2915
|
...receivers ? { [RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2916
2916
|
};
|
|
2917
2917
|
}
|
|
2918
|
-
function isolatedCiRuntimeEventReadHeaders() {
|
|
2919
|
-
const schema =
|
|
2920
|
-
if (
|
|
2918
|
+
function isolatedCiRuntimeEventReadHeaders(env) {
|
|
2919
|
+
const schema = env.DEEPLINE_RUNTIME_SCHEDULER_SCHEMA?.trim();
|
|
2920
|
+
if (env.DEEPLINE_SYNTHETIC_RUN?.trim() !== "1" || !schema || !/^fly_absurd_pr_\d+_\d+(?:_\d+)?$/.test(schema)) {
|
|
2921
2921
|
return void 0;
|
|
2922
2922
|
}
|
|
2923
|
-
const token =
|
|
2923
|
+
const token = env.DEEPLINE_INTERNAL_TOKEN?.trim();
|
|
2924
2924
|
if (!token) {
|
|
2925
2925
|
throw new DeeplineError(
|
|
2926
2926
|
"DEEPLINE_INTERNAL_TOKEN is required for isolated CI runtime event reads.",
|
|
@@ -2940,8 +2940,8 @@ function normalizeTestPolicyOverrides(value, source) {
|
|
|
2940
2940
|
"INVALID_TEST_POLICY_OVERRIDES"
|
|
2941
2941
|
);
|
|
2942
2942
|
}
|
|
2943
|
-
function parseEnvTestPolicyOverrides() {
|
|
2944
|
-
const raw =
|
|
2943
|
+
function parseEnvTestPolicyOverrides(env) {
|
|
2944
|
+
const raw = env.DEEPLINE_TEST_POLICY_OVERRIDES;
|
|
2945
2945
|
const trimmed = raw?.trim();
|
|
2946
2946
|
if (!trimmed) return void 0;
|
|
2947
2947
|
let parsed;
|
|
@@ -3198,6 +3198,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3198
3198
|
http;
|
|
3199
3199
|
toolCalls;
|
|
3200
3200
|
config;
|
|
3201
|
+
environment;
|
|
3201
3202
|
/** Canonical run lifecycle namespace backed by `/api/v2/runs`. */
|
|
3202
3203
|
runs;
|
|
3203
3204
|
/** Current mutable customer database namespace backed by `/api/v2/db/query`. */
|
|
@@ -3219,6 +3220,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3219
3220
|
*/
|
|
3220
3221
|
constructor(options) {
|
|
3221
3222
|
this.config = resolveConfig(options);
|
|
3223
|
+
this.environment = this.config.environment ?? process.env;
|
|
3222
3224
|
this.http = new HttpClient(this.config);
|
|
3223
3225
|
this.toolCalls = new ToolCalls(
|
|
3224
3226
|
this.http,
|
|
@@ -3736,11 +3738,11 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3736
3738
|
* ```
|
|
3737
3739
|
*/
|
|
3738
3740
|
async startPlayRun(request) {
|
|
3739
|
-
const resolved = resolveStartPlayRunRequest(request);
|
|
3741
|
+
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
3740
3742
|
return startPlayRun(
|
|
3741
3743
|
this.http,
|
|
3742
3744
|
resolved.request,
|
|
3743
|
-
runtimeSelectionHeaders(resolved.runtime)
|
|
3745
|
+
runtimeSelectionHeaders(resolved.runtime, this.environment)
|
|
3744
3746
|
);
|
|
3745
3747
|
}
|
|
3746
3748
|
/**
|
|
@@ -3757,14 +3759,14 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3757
3759
|
* @returns Async generator of play-scoped live events.
|
|
3758
3760
|
*/
|
|
3759
3761
|
async *startPlayRunStream(request, options) {
|
|
3760
|
-
const resolved = resolveStartPlayRunRequest(request);
|
|
3762
|
+
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
3761
3763
|
const body = buildPlayRunStartBody(resolved.request);
|
|
3762
3764
|
for await (const event of this.http.streamSse(
|
|
3763
3765
|
PLAY_RUN_START_STREAM_PATH,
|
|
3764
3766
|
{
|
|
3765
3767
|
method: "POST",
|
|
3766
3768
|
body,
|
|
3767
|
-
headers: runtimeSelectionHeaders(resolved.runtime),
|
|
3769
|
+
headers: runtimeSelectionHeaders(resolved.runtime, this.environment),
|
|
3768
3770
|
signal: options?.signal
|
|
3769
3771
|
}
|
|
3770
3772
|
)) {
|
|
@@ -3876,7 +3878,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3876
3878
|
*/
|
|
3877
3879
|
async checkPlayArtifact(input) {
|
|
3878
3880
|
const integrationMode = normalizePlayRunIntegrationMode(
|
|
3879
|
-
input.integrationMode ??
|
|
3881
|
+
input.integrationMode ?? this.environment.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
3880
3882
|
);
|
|
3881
3883
|
return this.http.post("/api/v2/plays/check", {
|
|
3882
3884
|
...input,
|
|
@@ -4727,10 +4729,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4727
4729
|
params.set("runtime", "preview");
|
|
4728
4730
|
params.set("namespace", runtime.namespace);
|
|
4729
4731
|
if (runtime.backend) params.set("backend", runtime.backend);
|
|
4730
|
-
headers = runtimeSelectionHeaders(runtime);
|
|
4732
|
+
headers = runtimeSelectionHeaders(runtime, this.environment);
|
|
4731
4733
|
selectedRuntime = runtime;
|
|
4732
4734
|
} else {
|
|
4733
|
-
headers = isolatedCiRuntimeEventReadHeaders();
|
|
4735
|
+
headers = isolatedCiRuntimeEventReadHeaders(this.environment);
|
|
4734
4736
|
}
|
|
4735
4737
|
const suffix = params.size > 0 ? `?${params.toString()}` : "";
|
|
4736
4738
|
const result = await this.http.post(
|
|
@@ -4784,9 +4786,9 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4784
4786
|
params.set("runtime", "preview");
|
|
4785
4787
|
params.set("namespace", runtime.namespace);
|
|
4786
4788
|
if (runtime.backend) params.set("backend", runtime.backend);
|
|
4787
|
-
headers = runtimeSelectionHeaders(runtime);
|
|
4789
|
+
headers = runtimeSelectionHeaders(runtime, this.environment);
|
|
4788
4790
|
} else {
|
|
4789
|
-
headers = isolatedCiRuntimeEventReadHeaders();
|
|
4791
|
+
headers = isolatedCiRuntimeEventReadHeaders(this.environment);
|
|
4790
4792
|
}
|
|
4791
4793
|
return this.http.get(
|
|
4792
4794
|
`/api/v2/runs/events?${params.toString()}`,
|
|
@@ -6504,6 +6506,19 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6504
6506
|
latest = await this.getMonitorFleet(fleetId);
|
|
6505
6507
|
}
|
|
6506
6508
|
}
|
|
6509
|
+
/**
|
|
6510
|
+
* The workspace and user this client's API key authenticates as.
|
|
6511
|
+
*
|
|
6512
|
+
* @example
|
|
6513
|
+
* ```typescript
|
|
6514
|
+
* const status = await client.authStatus();
|
|
6515
|
+
* ```
|
|
6516
|
+
*/
|
|
6517
|
+
async authStatus() {
|
|
6518
|
+
return this.http.post("/api/v2/auth/cli/status", {
|
|
6519
|
+
api_key: this.config.apiKey
|
|
6520
|
+
});
|
|
6521
|
+
}
|
|
6507
6522
|
/**
|
|
6508
6523
|
* Check API connectivity and server health.
|
|
6509
6524
|
*
|