deepline 0.3.504 → 0.3.506
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 +121 -5
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
- package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +9 -9
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +157 -47
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/auth-MMHG2OFE.js +43 -0
- package/dist/cli/{auth-3L5AA5AX.mjs → auth-ZHFONT2D.mjs} +5 -5
- package/dist/cli/{billing-HOGXVE2V.js → billing-3Z7N4WTL.js} +101 -91
- package/dist/cli/{billing-E7EASVPO.mjs → billing-B2YEMNHE.mjs} +27 -17
- package/dist/cli/{chunk-UXQQPMYO.js → chunk-26DJ4BDY.js} +2 -2
- package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-2CFTDVEP.mjs} +2 -2
- package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-2IXXB7OA.mjs} +93 -34
- package/dist/cli/{chunk-6JNBMTCZ.js → chunk-2OY5DXTC.js} +1 -1
- package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-3BFZEHBH.mjs} +1 -1
- package/dist/cli/{chunk-67OI26OE.js → chunk-3F676QXJ.js} +96 -37
- package/dist/cli/{chunk-KCKAFTPY.js → chunk-5ARG7J7A.js} +6 -6
- package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-6RYVIZRP.mjs} +2 -2
- package/dist/cli/{chunk-QKKU2FH4.js → chunk-75NAFY36.js} +7 -7
- package/dist/cli/{chunk-7P2QVMBP.js → chunk-AD2WJUZA.js} +91 -48
- package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-AFSYNOG4.mjs} +42 -7
- package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-BJ5OX62J.mjs} +5 -5
- package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-BQBPVUFJ.mjs} +3 -3
- package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-CHGRURBN.mjs} +5 -5
- package/dist/cli/{chunk-22OCKCYS.mjs → chunk-D7OCORZ7.mjs} +1 -1
- package/dist/cli/{chunk-SMSQVRHE.js → chunk-DB54ROPH.js} +5 -5
- package/dist/cli/{chunk-KGUGNEKL.js → chunk-E554XCJI.js} +96 -96
- package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-EN7GXLFX.mjs} +4 -4
- package/dist/cli/{chunk-2W77YCKH.js → chunk-F53SGS3C.js} +5 -5
- package/dist/cli/{chunk-6SMR7LU7.js → chunk-F7IQQYKV.js} +2 -2
- package/dist/cli/chunk-FFGQR5J3.mjs +405 -0
- package/dist/cli/{chunk-UJMBG5JU.js → chunk-FWSEGIT6.js} +4 -4
- package/dist/cli/{chunk-GJ2DA35C.js → chunk-GDHLL5EQ.js} +42 -7
- package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-GJNIC2CO.mjs} +84 -441
- package/dist/cli/chunk-GRESJ3H3.js +405 -0
- package/dist/cli/{chunk-WZSFIJMG.js → chunk-HINTYT5H.js} +113 -470
- package/dist/cli/{chunk-A6LA42JY.js → chunk-LRSRJJPD.js} +16 -16
- package/dist/cli/{chunk-WBIDPDKJ.js → chunk-MHRR47VQ.js} +3 -3
- package/dist/cli/{chunk-FTRVCIGC.js → chunk-N7G36GXB.js} +26 -26
- package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-ND4WPLTE.mjs} +2 -2
- package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-O4DZG4VA.mjs} +2 -2
- package/dist/cli/{chunk-LHXYCZYO.js → chunk-OD6TASBP.js} +8 -8
- package/dist/cli/{chunk-GRAGUYIE.js → chunk-OHNMJ5XQ.js} +41 -41
- package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-ONBXTEFQ.mjs} +46 -3
- package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-OPBXKB57.mjs} +1 -1
- package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-OUGJUM5X.mjs} +6 -6
- package/dist/cli/{chunk-USTJEEND.js → chunk-PRIHD5XS.js} +9 -9
- package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-QAY5AS2H.mjs} +12 -12
- package/dist/cli/{chunk-5Z6EULD5.js → chunk-QP333GFE.js} +7 -7
- package/dist/cli/{chunk-JPR2546F.js → chunk-SUJIVF6L.js} +16 -16
- package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-TEMORCEE.mjs} +1 -1
- package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-TS4KFQKS.mjs} +1 -1
- package/dist/cli/{chunk-4CC67XH5.mjs → chunk-XUY7WQ2R.mjs} +3 -3
- package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-YEX6RPUO.mjs} +1 -1
- package/dist/cli/{chunk-MJTK6Q3G.js → chunk-YJKKOSXS.js} +3 -3
- package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-YVOS5KSG.mjs} +1 -1
- package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-YWZEBPXK.mjs} +2 -2
- package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-Z7EHY2MF.mjs} +2 -2
- package/dist/cli/{chunk-FISP4LCK.js → chunk-ZM5BJ5MP.js} +53 -53
- package/dist/cli/{chunk-IPAMOMGP.js → chunk-ZZDTWVCQ.js} +21 -21
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-2XWGPITO.js → csv-7K7LK63Y.js} +13 -13
- package/dist/cli/{csv-433JEHLQ.mjs → csv-ARHQ54HA.mjs} +4 -4
- package/dist/cli/{db-K747DH43.mjs → db-JBX24NJY.mjs} +6 -6
- package/dist/cli/{db-PJJMD4VH.js → db-V4Z2I6DY.js} +27 -27
- package/dist/cli/describe-AYXVS6DZ.js +50 -0
- package/dist/cli/{describe-VEDDYW4P.mjs → describe-RBDSGSZ7.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-JWRX3XCT.mjs → executions-BAZEU63W.mjs} +6 -6
- package/dist/cli/{executions-HM5T72H6.js → executions-XEZKV5QU.js} +8 -8
- package/dist/cli/{feedback-34UG4BO3.js → feedback-LOERESRU.js} +8 -8
- package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-YDSWBHCO.mjs} +4 -4
- package/dist/cli/{git-ZKEOXV3A.mjs → git-4Z3W2CQU.mjs} +5 -5
- package/dist/cli/git-T6WKO7EA.js +25 -0
- package/dist/cli/index.js +146 -148
- package/dist/cli/index.mjs +53 -55
- package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-4QIQPVE5.js} +8 -8
- package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
- package/dist/cli/{monitors-C65OC4AW.mjs → monitors-FPDW5DDM.mjs} +305 -8
- package/dist/cli/{monitors-O25GDOYE.js → monitors-QBHDSDA7.js} +423 -126
- package/dist/cli/{org-2GSPLY2A.js → org-JO4GGSAH.js} +72 -72
- package/dist/cli/{org-ZRMG5NS2.mjs → org-UCDHIHAD.mjs} +6 -6
- package/dist/cli/{pages-TZZUFBRO.mjs → pages-6V52IZXY.mjs} +6 -6
- package/dist/cli/{pages-45DPADK6.js → pages-FJAAXAWO.js} +18 -18
- package/dist/cli/{play-RCGMND6X.js → play-F3AENS6W.js} +317 -316
- package/dist/cli/{play-3D7HH273.mjs → play-MF4DWROJ.mjs} +18 -17
- package/dist/cli/{providers-PSAKV6CJ.mjs → providers-NJJLTECA.mjs} +6 -6
- package/dist/cli/{providers-3N3ECMTY.js → providers-XXOQLPX7.js} +9 -9
- package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-JCE3XGQG.js} +6 -6
- package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
- package/dist/cli/{run-F3TLDGUO.mjs → run-56UGPIRL.mjs} +23 -22
- package/dist/cli/{run-F6ZXTASZ.js → run-X2DNIW3F.js} +41 -40
- package/dist/cli/search-B753RTKC.js +33 -0
- package/dist/cli/{search-CZLCY3D2.mjs → search-SZYI4NBB.mjs} +8 -7
- package/dist/cli/{search-output-R5XDNILW.js → search-output-7UNT6EMP.js} +6 -6
- package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-T35QNZUF.mjs} +4 -4
- package/dist/cli/{secrets-DCJYHDSY.js → secrets-JMUAVIVC.js} +15 -15
- package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-Q36VC35L.mjs} +6 -6
- package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-HG6I3HMY.mjs} +5 -5
- package/dist/cli/{sessions-Z4JYJSDP.js → sessions-SUXU7OM7.js} +6 -6
- package/dist/cli/{settings-UVXXAT4A.js → settings-UIELQ5CV.js} +106 -78
- package/dist/cli/{settings-G7QEXA4N.mjs → settings-Z76XW4KF.mjs} +39 -11
- package/dist/cli/{setup-5I42W7D4.js → setup-2L7H5P2O.js} +50 -49
- package/dist/cli/{setup-QHJU3DUI.mjs → setup-OXNYAOQ4.mjs} +10 -9
- package/dist/cli/skills-DEVXYGYH.js +37 -0
- package/dist/cli/{skills-5LRF4UKX.mjs → skills-XSNLXJGI.mjs} +8 -7
- package/dist/cli/tools-SCGHABDL.js +57 -0
- package/dist/cli/{tools-PUT6STVG.mjs → tools-SUSFAYFH.mjs} +17 -16
- package/dist/cli/update-BSIILGO3.js +35 -0
- package/dist/cli/{update-CJ2GA64X.mjs → update-ENSTG3QO.mjs} +10 -9
- package/dist/cli/{workflow-O67MEBCP.js → workflow-FMBZNY4F.js} +17 -17
- package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-Z33QE6VT.mjs} +7 -7
- package/dist/{client-DYAfJpaN.d.mts → client-BDbouy3Y.d.mts} +1 -1
- package/dist/{client-CIwenMFS.d.ts → client-Cx0420fs.d.ts} +1 -1
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-B4hq0-m2.d.ts} +56 -4
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-CwiVaMZ5.d.mts} +56 -4
- package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
- package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
- package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
- package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
- package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
- package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +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 +116 -110
- 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/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-UPK4IIIN.js +0 -43
- package/dist/cli/describe-OYS7LZJD.js +0 -49
- package/dist/cli/git-5YQJSJFR.js +0 -25
- package/dist/cli/search-R5VEWJO2.js +0 -32
- package/dist/cli/skills-FB6TV52O.js +0 -36
- package/dist/cli/tools-L2364RPA.js +0 -56
- package/dist/cli/update-ESYJGYVZ.js +0 -34
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
293
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
294
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
295
295
|
function getAuthedHttpClient() {
|
|
296
|
-
const config =
|
|
297
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkMHRR47VQjs.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkMHRR47VQjs.HttpClient)(config) };
|
|
298
298
|
}
|
|
299
299
|
function stableOsUserId() {
|
|
300
300
|
try {
|
|
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
634
634
|
os: `${process.platform} ${process.arch}`,
|
|
635
635
|
node_version: process.version,
|
|
636
636
|
home_dir: homeDir,
|
|
637
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunkFWSEGIT6js.detectAgentRuntime.call(void 0, )
|
|
638
638
|
};
|
|
639
639
|
const env = process.env;
|
|
640
640
|
const optional = {
|
|
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
881
881
|
}
|
|
882
882
|
function withAgentCommandContext(value) {
|
|
883
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
884
|
-
return
|
|
884
|
+
return _chunkFWSEGIT6js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
885
885
|
...valueRecord,
|
|
886
|
-
command_context:
|
|
886
|
+
command_context: _chunkMHRR47VQjs.resolveCliCommandContext.call(void 0, )
|
|
887
887
|
} : value;
|
|
888
888
|
}
|
|
889
889
|
function printJson(value, fields) {
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkFWSEGIT6js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1107,8 +1107,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1109
1109
|
return {
|
|
1110
|
-
[
|
|
1111
|
-
...receivers ? { [
|
|
1110
|
+
[_chunkFWSEGIT6js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1111
|
+
...receivers ? { [_chunkFWSEGIT6js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1179,7 +1179,7 @@ var PlayClient = class {
|
|
|
1179
1179
|
return _chunkRNSHCJMEjs.startPlayRun.call(void 0,
|
|
1180
1180
|
this.http,
|
|
1181
1181
|
resolved.request,
|
|
1182
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1182
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkFWSEGIT6js.SDK_API_MAJOR) } : headers,
|
|
1183
1183
|
options
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
@@ -3260,7 +3260,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3260
3260
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3261
3261
|
);
|
|
3262
3262
|
}
|
|
3263
|
-
return { [
|
|
3263
|
+
return { [_chunkFWSEGIT6js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3264
3264
|
}
|
|
3265
3265
|
function sleep(ms) {
|
|
3266
3266
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3548,8 +3548,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3548
3548
|
this.billing = {
|
|
3549
3549
|
quote: (input) => this.http.post("/api/v2/billing/quote", input),
|
|
3550
3550
|
entitlements: () => this.http.get("/api/v2/billing/entitlements"),
|
|
3551
|
-
includedCompute: () => this.http.get(
|
|
3552
|
-
|
|
3551
|
+
includedCompute: ({ includeOverage } = {}) => this.http.get(
|
|
3552
|
+
includeOverage ? "/api/v2/billing/included-compute?include_overage=true" : "/api/v2/billing/included-compute"
|
|
3553
|
+
),
|
|
3554
|
+
enableIncludedCompute: ({ includeOverage } = {}) => this.http.post(
|
|
3555
|
+
includeOverage ? "/api/v2/billing/included-compute?include_overage=true" : "/api/v2/billing/included-compute",
|
|
3556
|
+
{}
|
|
3557
|
+
),
|
|
3553
3558
|
topUp: (options) => this.topUpBillingBalance(options),
|
|
3554
3559
|
topUpWithReceipt: (options) => this.topUpBillingBalanceWithReceipt(options),
|
|
3555
3560
|
plans: () => this.getBillingPlans(),
|
|
@@ -3649,6 +3654,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3649
3654
|
sync: (definitionOrId, options) => this.syncMonitorFleet(definitionOrId, options),
|
|
3650
3655
|
get: (fleetId, options) => fleetId === void 0 ? this.listMonitorFleets() : this.getMonitorFleet(fleetId, options),
|
|
3651
3656
|
list: () => this.listMonitorFleets(),
|
|
3657
|
+
overview: (fleetId, options) => fleetId === void 0 ? this.listMonitorFleetOverviews(options) : this.getMonitorFleetOverview(fleetId, options),
|
|
3658
|
+
issues: (fleetId, options) => this.listMonitorFleetIssues(fleetId, options),
|
|
3652
3659
|
deactivate: (fleetId, options) => this.deactivateMonitorFleet(fleetId, options),
|
|
3653
3660
|
reactivate: (fleetId, options) => this.reactivateMonitorFleet(fleetId, options),
|
|
3654
3661
|
start: (fleetId, options) => this.reactivateMonitorFleet(fleetId, options),
|
|
@@ -4072,7 +4079,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4072
4079
|
);
|
|
4073
4080
|
const headers = _optionalChain([options, 'optionalAccess', _184 => _184.cliAdmission]) ? {
|
|
4074
4081
|
...runtimeHeaders,
|
|
4075
|
-
"X-Deepline-API-Major": String(
|
|
4082
|
+
"X-Deepline-API-Major": String(_chunkFWSEGIT6js.SDK_API_MAJOR)
|
|
4076
4083
|
} : runtimeHeaders;
|
|
4077
4084
|
const http = this.http;
|
|
4078
4085
|
let submitted = false;
|
|
@@ -6707,11 +6714,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6707
6714
|
for (const signal of _nullishCoalesce(_optionalChain([options, 'optionalAccess', _367 => _367.signals]), () => ( [])))
|
|
6708
6715
|
params.append("signal", signal);
|
|
6709
6716
|
if (_optionalChain([options, 'optionalAccess', _368 => _368.play])) params.set("play", options.play);
|
|
6710
|
-
if (_optionalChain([options, 'optionalAccess', _369 => _369.
|
|
6711
|
-
if (_optionalChain([options, 'optionalAccess', _370 => _370.
|
|
6712
|
-
if (_optionalChain([options, 'optionalAccess', _371 => _371.
|
|
6717
|
+
if (_optionalChain([options, 'optionalAccess', _369 => _369.fleet])) params.set("fleet", options.fleet);
|
|
6718
|
+
if (_optionalChain([options, 'optionalAccess', _370 => _370.sort])) params.set("sort", options.sort);
|
|
6719
|
+
if (_optionalChain([options, 'optionalAccess', _371 => _371.window])) params.set("window", options.window);
|
|
6720
|
+
if (_optionalChain([options, 'optionalAccess', _372 => _372.limit]) !== void 0)
|
|
6713
6721
|
params.set("limit", String(options.limit));
|
|
6714
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
6722
|
+
if (_optionalChain([options, 'optionalAccess', _373 => _373.cursor])) params.set("cursor", options.cursor);
|
|
6715
6723
|
const query = params.toString();
|
|
6716
6724
|
const suffix = query ? `?${query}` : "";
|
|
6717
6725
|
return this.http.request(
|
|
@@ -6728,7 +6736,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6728
6736
|
}
|
|
6729
6737
|
/** A monitor's recent findings. Prefer `client.monitors.ledgerFindings(...)`. */
|
|
6730
6738
|
async listMonitorLedgerFindings(key, options) {
|
|
6731
|
-
const suffix = _optionalChain([options, 'optionalAccess',
|
|
6739
|
+
const suffix = _optionalChain([options, 'optionalAccess', _374 => _374.cursor]) ? `?cursor=${encodeURIComponent(options.cursor)}` : "";
|
|
6732
6740
|
return this.http.request(
|
|
6733
6741
|
`/api/v2/monitors/ledger/${encodeURIComponent(key)}/findings${suffix}`,
|
|
6734
6742
|
{ method: "GET" }
|
|
@@ -6742,7 +6750,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6742
6750
|
);
|
|
6743
6751
|
}
|
|
6744
6752
|
async testMonitorWebhook(key, payload, options) {
|
|
6745
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
6753
|
+
if (_optionalChain([options, 'optionalAccess', _375 => _375.dispatch]) === true || _optionalChain([options, 'optionalAccess', _376 => _376.validationOnly]) === false) {
|
|
6746
6754
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
6747
6755
|
"Monitor tests are validation-only and cannot dispatch events.",
|
|
6748
6756
|
void 0,
|
|
@@ -6797,7 +6805,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6797
6805
|
}
|
|
6798
6806
|
/** Delete a deployed monitor and its upstream provider resource. `dryRun` returns the delete plan. Prefer `client.monitors.delete(...)`. */
|
|
6799
6807
|
async deleteMonitor(key, options) {
|
|
6800
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
6808
|
+
if (_optionalChain([options, 'optionalAccess', _377 => _377.localOnly]) === true) {
|
|
6801
6809
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
6802
6810
|
"localOnly monitor deletion is no longer supported. Monitor deletion always deprovisions the upstream provider resource.",
|
|
6803
6811
|
void 0,
|
|
@@ -6805,11 +6813,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6805
6813
|
);
|
|
6806
6814
|
}
|
|
6807
6815
|
const params = new URLSearchParams();
|
|
6808
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
6816
|
+
if (_optionalChain([options, 'optionalAccess', _378 => _378.dryRun])) params.set("dry_run", "true");
|
|
6809
6817
|
const query = params.toString();
|
|
6810
6818
|
return this.http.request(
|
|
6811
6819
|
`/api/v2/monitors/deployed/${encodeURIComponent(key)}${query ? `?${query}` : ""}`,
|
|
6812
|
-
_optionalChain([options, 'optionalAccess',
|
|
6820
|
+
_optionalChain([options, 'optionalAccess', _379 => _379.dryRun]) ? { method: "DELETE" } : {
|
|
6813
6821
|
method: "DELETE",
|
|
6814
6822
|
// Deletion is a provider lifecycle operation. A timeout is an
|
|
6815
6823
|
// unknown outcome, not authority to begin another delete attempt.
|
|
@@ -6822,10 +6830,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6822
6830
|
* Prefer `client.monitors.reactivate(...)`.
|
|
6823
6831
|
*/
|
|
6824
6832
|
async reactivateMonitor(key, options) {
|
|
6825
|
-
const query = _optionalChain([options, 'optionalAccess',
|
|
6833
|
+
const query = _optionalChain([options, 'optionalAccess', _380 => _380.dryRun]) ? "?dry_run=true" : "";
|
|
6826
6834
|
return this.http.request(
|
|
6827
6835
|
`/api/v2/monitors/deployed/${encodeURIComponent(key)}/reactivate${query}`,
|
|
6828
|
-
_optionalChain([options, 'optionalAccess',
|
|
6836
|
+
_optionalChain([options, 'optionalAccess', _381 => _381.dryRun]) ? { method: "POST", body: {} } : {
|
|
6829
6837
|
method: "POST",
|
|
6830
6838
|
body: {},
|
|
6831
6839
|
// Reactivation can create an upstream resource, so it must not use
|
|
@@ -6839,7 +6847,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6839
6847
|
// ——————————————————————————————————————————————————————————
|
|
6840
6848
|
static __initStatic() {this.MONITOR_JOB_IDEMPOTENCY_KEY_MAX_LENGTH = 96}
|
|
6841
6849
|
monitorJobIdempotencyKey(operation) {
|
|
6842
|
-
const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access',
|
|
6850
|
+
const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access', _382 => _382.crypto, 'optionalAccess', _383 => _383.randomUUID, 'optionalCall', _384 => _384()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`));
|
|
6843
6851
|
const prefix = "monitor-job-";
|
|
6844
6852
|
const safeOperation = operation.replace(/[^A-Za-z0-9._-]/g, "-");
|
|
6845
6853
|
const maxOperationLength = Math.max(
|
|
@@ -6850,7 +6858,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6850
6858
|
}
|
|
6851
6859
|
monitorJobHeaders(operation, idempotencyKey) {
|
|
6852
6860
|
return {
|
|
6853
|
-
"Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess',
|
|
6861
|
+
"Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _385 => _385.trim, 'call', _386 => _386()]) || this.monitorJobIdempotencyKey(operation)
|
|
6854
6862
|
};
|
|
6855
6863
|
}
|
|
6856
6864
|
async deployMonitorBatch(definitions, options) {
|
|
@@ -6861,7 +6869,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6861
6869
|
body: { version: 1, kind: "batch", monitors: definitions },
|
|
6862
6870
|
headers: this.monitorJobHeaders(
|
|
6863
6871
|
"batch-deploy",
|
|
6864
|
-
_optionalChain([options, 'optionalAccess',
|
|
6872
|
+
_optionalChain([options, 'optionalAccess', _387 => _387.idempotencyKey])
|
|
6865
6873
|
),
|
|
6866
6874
|
maxRetries: 0,
|
|
6867
6875
|
exactUrlOnly: true
|
|
@@ -6880,11 +6888,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6880
6888
|
version: 1,
|
|
6881
6889
|
kind: "batch",
|
|
6882
6890
|
monitors: definitions,
|
|
6883
|
-
..._optionalChain([options, 'optionalAccess',
|
|
6891
|
+
..._optionalChain([options, 'optionalAccess', _388 => _388.expectedGeneration]) === void 0 ? {} : { expected_generation: options.expectedGeneration }
|
|
6884
6892
|
},
|
|
6885
6893
|
headers: this.monitorJobHeaders(
|
|
6886
6894
|
`batch-sync-${batchId}`,
|
|
6887
|
-
_optionalChain([options, 'optionalAccess',
|
|
6895
|
+
_optionalChain([options, 'optionalAccess', _389 => _389.idempotencyKey])
|
|
6888
6896
|
),
|
|
6889
6897
|
maxRetries: 0,
|
|
6890
6898
|
exactUrlOnly: true
|
|
@@ -6899,7 +6907,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6899
6907
|
body: {},
|
|
6900
6908
|
headers: this.monitorJobHeaders(
|
|
6901
6909
|
`batch-start-${batchId}`,
|
|
6902
|
-
_optionalChain([options, 'optionalAccess',
|
|
6910
|
+
_optionalChain([options, 'optionalAccess', _390 => _390.idempotencyKey])
|
|
6903
6911
|
),
|
|
6904
6912
|
maxRetries: 0,
|
|
6905
6913
|
exactUrlOnly: true
|
|
@@ -6914,7 +6922,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6914
6922
|
body: {},
|
|
6915
6923
|
headers: this.monitorJobHeaders(
|
|
6916
6924
|
`batch-stop-${batchId}`,
|
|
6917
|
-
_optionalChain([options, 'optionalAccess',
|
|
6925
|
+
_optionalChain([options, 'optionalAccess', _391 => _391.idempotencyKey])
|
|
6918
6926
|
),
|
|
6919
6927
|
maxRetries: 0,
|
|
6920
6928
|
exactUrlOnly: true
|
|
@@ -6935,7 +6943,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6935
6943
|
body: {},
|
|
6936
6944
|
headers: this.monitorJobHeaders(
|
|
6937
6945
|
`${action}-${monitorKey}`,
|
|
6938
|
-
_optionalChain([options, 'optionalAccess',
|
|
6946
|
+
_optionalChain([options, 'optionalAccess', _392 => _392.idempotencyKey])
|
|
6939
6947
|
),
|
|
6940
6948
|
maxRetries: 0,
|
|
6941
6949
|
exactUrlOnly: true
|
|
@@ -6948,7 +6956,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6948
6956
|
body: definition,
|
|
6949
6957
|
headers: this.monitorJobHeaders(
|
|
6950
6958
|
`sync-${definition.key}`,
|
|
6951
|
-
_optionalChain([options, 'optionalAccess',
|
|
6959
|
+
_optionalChain([options, 'optionalAccess', _393 => _393.idempotencyKey])
|
|
6952
6960
|
),
|
|
6953
6961
|
maxRetries: 0,
|
|
6954
6962
|
exactUrlOnly: true
|
|
@@ -6961,7 +6969,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6961
6969
|
);
|
|
6962
6970
|
}
|
|
6963
6971
|
async getMonitorJobLogs(jobId, options) {
|
|
6964
|
-
const query = _optionalChain([options, 'optionalAccess',
|
|
6972
|
+
const query = _optionalChain([options, 'optionalAccess', _394 => _394.limit]) === void 0 ? "" : `?limit=${encodeURIComponent(String(options.limit))}`;
|
|
6965
6973
|
return this.http.request(
|
|
6966
6974
|
`/api/v2/monitors/jobs/${encodeURIComponent(jobId)}/logs${query}`,
|
|
6967
6975
|
{ method: "GET" }
|
|
@@ -6974,15 +6982,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6974
6982
|
);
|
|
6975
6983
|
}
|
|
6976
6984
|
async waitForMonitorJob(jobId, options) {
|
|
6977
|
-
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
6978
|
-
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
6985
|
+
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _395 => _395.timeoutMs]), () => ( 10 * 6e4)));
|
|
6986
|
+
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _396 => _396.pollIntervalMs]), () => ( 2e3)));
|
|
6979
6987
|
const terminal = /* @__PURE__ */ new Set(["succeeded", "failed", "cancelled"]);
|
|
6980
6988
|
const startedAt = Date.now();
|
|
6981
6989
|
let latest = await this.getMonitorJob(jobId);
|
|
6982
6990
|
while (true) {
|
|
6983
|
-
_optionalChain([options, 'optionalAccess',
|
|
6991
|
+
_optionalChain([options, 'optionalAccess', _397 => _397.onProgress, 'optionalCall', _398 => _398(latest)]);
|
|
6984
6992
|
const job = latest.job;
|
|
6985
|
-
const state = typeof _optionalChain([job, 'optionalAccess',
|
|
6993
|
+
const state = typeof _optionalChain([job, 'optionalAccess', _399 => _399.state]) === "string" ? job.state : void 0;
|
|
6986
6994
|
if (state && terminal.has(state)) return latest;
|
|
6987
6995
|
if (Date.now() - startedAt >= timeoutMs) return latest;
|
|
6988
6996
|
await sleep(pollIntervalMs);
|
|
@@ -6993,12 +7001,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6993
7001
|
// Monitor Fleets
|
|
6994
7002
|
// ——————————————————————————————————————————————————————————
|
|
6995
7003
|
monitorFleetIdempotencyKey(operation) {
|
|
6996
|
-
const uuid = _optionalChain([globalThis, 'access',
|
|
7004
|
+
const uuid = _optionalChain([globalThis, 'access', _400 => _400.crypto, 'optionalAccess', _401 => _401.randomUUID, 'optionalCall', _402 => _402()]);
|
|
6997
7005
|
return `monitor-fleet-${operation}-${_nullishCoalesce(uuid, () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`))}`;
|
|
6998
7006
|
}
|
|
6999
7007
|
monitorFleetHeaders(operation, idempotencyKey) {
|
|
7000
7008
|
return {
|
|
7001
|
-
"Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess',
|
|
7009
|
+
"Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _403 => _403.trim, 'call', _404 => _404()]) || this.monitorFleetIdempotencyKey(operation)
|
|
7002
7010
|
};
|
|
7003
7011
|
}
|
|
7004
7012
|
monitorFleetPath(fleetId) {
|
|
@@ -7018,15 +7026,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7018
7026
|
const fleetId = typeof definitionOrId === "string" ? definitionOrId : definitionOrId.id;
|
|
7019
7027
|
const body = {
|
|
7020
7028
|
...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
|
|
7021
|
-
..._optionalChain([options, 'optionalAccess',
|
|
7022
|
-
..._optionalChain([options, 'optionalAccess',
|
|
7029
|
+
..._optionalChain([options, 'optionalAccess', _405 => _405.dryRun]) ? { dry_run: true } : {},
|
|
7030
|
+
..._optionalChain([options, 'optionalAccess', _406 => _406.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
|
|
7023
7031
|
};
|
|
7024
7032
|
return this.http.request(
|
|
7025
7033
|
this.monitorFleetPath(fleetId),
|
|
7026
7034
|
{
|
|
7027
7035
|
method: "PUT",
|
|
7028
7036
|
body,
|
|
7029
|
-
headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess',
|
|
7037
|
+
headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _407 => _407.idempotencyKey])),
|
|
7030
7038
|
maxRetries: 0,
|
|
7031
7039
|
exactUrlOnly: true
|
|
7032
7040
|
}
|
|
@@ -7037,10 +7045,45 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7037
7045
|
method: "GET"
|
|
7038
7046
|
});
|
|
7039
7047
|
}
|
|
7048
|
+
/** The Fleets list. Prefer `client.monitors.fleets.overview()`. */
|
|
7049
|
+
async listMonitorFleetOverviews(options) {
|
|
7050
|
+
const params = new URLSearchParams({ view: "overview" });
|
|
7051
|
+
if (_optionalChain([options, 'optionalAccess', _408 => _408.q])) params.set("q", options.q);
|
|
7052
|
+
for (const state of _nullishCoalesce(_optionalChain([options, 'optionalAccess', _409 => _409.states]), () => ( []))) params.append("state", state);
|
|
7053
|
+
if (_optionalChain([options, 'optionalAccess', _410 => _410.sort])) params.set("sort", options.sort);
|
|
7054
|
+
if (_optionalChain([options, 'optionalAccess', _411 => _411.window])) params.set("window", options.window);
|
|
7055
|
+
return this.http.request(
|
|
7056
|
+
`/api/v2/monitors/fleets?${params.toString()}`,
|
|
7057
|
+
{ method: "GET" }
|
|
7058
|
+
);
|
|
7059
|
+
}
|
|
7060
|
+
/** One fleet's overview. Prefer `client.monitors.fleets.overview(fleetId)`. */
|
|
7061
|
+
async getMonitorFleetOverview(fleetId, options) {
|
|
7062
|
+
const params = new URLSearchParams({ view: "overview" });
|
|
7063
|
+
if (_optionalChain([options, 'optionalAccess', _412 => _412.window])) params.set("window", options.window);
|
|
7064
|
+
return this.http.request(
|
|
7065
|
+
`${this.monitorFleetPath(fleetId)}?${params.toString()}`,
|
|
7066
|
+
{ method: "GET" }
|
|
7067
|
+
);
|
|
7068
|
+
}
|
|
7069
|
+
/** A fleet's problem members. Prefer `client.monitors.fleets.issues(...)`. */
|
|
7070
|
+
async listMonitorFleetIssues(fleetId, options) {
|
|
7071
|
+
const params = new URLSearchParams();
|
|
7072
|
+
if (_optionalChain([options, 'optionalAccess', _413 => _413.group])) params.set("group", options.group);
|
|
7073
|
+
if (_optionalChain([options, 'optionalAccess', _414 => _414.cause])) params.set("cause", options.cause);
|
|
7074
|
+
if (_optionalChain([options, 'optionalAccess', _415 => _415.cursor])) params.set("cursor", options.cursor);
|
|
7075
|
+
if (_optionalChain([options, 'optionalAccess', _416 => _416.limit]) !== void 0)
|
|
7076
|
+
params.set("limit", String(options.limit));
|
|
7077
|
+
const query = params.toString();
|
|
7078
|
+
return this.http.request(
|
|
7079
|
+
`${this.monitorFleetPath(fleetId)}/issues${query ? `?${query}` : ""}`,
|
|
7080
|
+
{ method: "GET" }
|
|
7081
|
+
);
|
|
7082
|
+
}
|
|
7040
7083
|
async getMonitorFleet(fleetId, options) {
|
|
7041
7084
|
const params = new URLSearchParams();
|
|
7042
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7043
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7085
|
+
if (_optionalChain([options, 'optionalAccess', _417 => _417.drift])) params.set("drift", "1");
|
|
7086
|
+
if (_optionalChain([options, 'optionalAccess', _418 => _418.limit]) !== void 0)
|
|
7044
7087
|
params.set("limit", String(options.limit));
|
|
7045
7088
|
const query = params.toString();
|
|
7046
7089
|
return this.http.request(
|
|
@@ -7053,10 +7096,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7053
7096
|
this.monitorFleetPath(fleetId),
|
|
7054
7097
|
{
|
|
7055
7098
|
method: "DELETE",
|
|
7056
|
-
body: _optionalChain([options, 'optionalAccess',
|
|
7099
|
+
body: _optionalChain([options, 'optionalAccess', _419 => _419.dryRun]) ? { dry_run: true } : {},
|
|
7057
7100
|
headers: this.monitorFleetHeaders(
|
|
7058
7101
|
"deactivate",
|
|
7059
|
-
_optionalChain([options, 'optionalAccess',
|
|
7102
|
+
_optionalChain([options, 'optionalAccess', _420 => _420.idempotencyKey])
|
|
7060
7103
|
),
|
|
7061
7104
|
maxRetries: 0,
|
|
7062
7105
|
exactUrlOnly: true
|
|
@@ -7071,7 +7114,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7071
7114
|
body: {},
|
|
7072
7115
|
headers: this.monitorFleetHeaders(
|
|
7073
7116
|
"reactivate",
|
|
7074
|
-
_optionalChain([options, 'optionalAccess',
|
|
7117
|
+
_optionalChain([options, 'optionalAccess', _421 => _421.idempotencyKey])
|
|
7075
7118
|
),
|
|
7076
7119
|
maxRetries: 0,
|
|
7077
7120
|
exactUrlOnly: true
|
|
@@ -7088,9 +7131,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7088
7131
|
* identical to "the request failed".
|
|
7089
7132
|
*/
|
|
7090
7133
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
7091
|
-
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7092
|
-
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7093
|
-
const terminal = _optionalChain([options, 'optionalAccess',
|
|
7134
|
+
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _422 => _422.timeoutMs]), () => ( 10 * 6e4)));
|
|
7135
|
+
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _423 => _423.pollIntervalMs]), () => ( 2e3)));
|
|
7136
|
+
const terminal = _optionalChain([options, 'optionalAccess', _424 => _424.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set([
|
|
7094
7137
|
"converged",
|
|
7095
7138
|
"degraded",
|
|
7096
7139
|
"deactivated",
|
|
@@ -7099,7 +7142,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7099
7142
|
const startedAt = Date.now();
|
|
7100
7143
|
let latest = await this.getMonitorFleet(fleetId);
|
|
7101
7144
|
while (true) {
|
|
7102
|
-
_optionalChain([options, 'optionalAccess',
|
|
7145
|
+
_optionalChain([options, 'optionalAccess', _425 => _425.onProgress, 'optionalCall', _426 => _426(latest)]);
|
|
7103
7146
|
const status = typeof latest.status === "string" ? latest.status : void 0;
|
|
7104
7147
|
if (status && terminal.has(status)) return latest;
|
|
7105
7148
|
if (Date.now() - startedAt >= timeoutMs) return latest;
|
|
@@ -323,7 +323,8 @@ Cost:
|
|
|
323
323
|
Purpose:
|
|
324
324
|
Show Play runtime pricing, included compute, and usage.
|
|
325
325
|
Output:
|
|
326
|
-
|
|
326
|
+
Your runtime price, allowance used, paid overage, and reset date.
|
|
327
|
+
Usage is shown in standard sandbox minutes at your current rate and in credits.
|
|
327
328
|
${PLAY_RUNTIME_PRICING_NOTE}
|
|
328
329
|
Cost:
|
|
329
330
|
Free to check.
|
|
@@ -402,26 +403,40 @@ Purpose:
|
|
|
402
403
|
When:
|
|
403
404
|
First, whenever you do not already know what to run.
|
|
404
405
|
Input:
|
|
405
|
-
|
|
406
|
-
|
|
406
|
+
Search for one capability at a time.
|
|
407
|
+
Include the input fields, the result you need, and requirements.
|
|
408
|
+
Leave out customer data like names and domains, and export details like filenames.
|
|
409
|
+
For a workflow with distinct steps, search for each step separately.
|
|
410
|
+
[[cli:
|
|
411
|
+
To run multiple searches in one command, quote each query separately.
|
|
412
|
+
Each argument is ranked independently and gets its own results section.
|
|
413
|
+
Filters, --limit, and --offset apply to each query.
|
|
414
|
+
]]
|
|
407
415
|
Examples:
|
|
408
416
|
[[cli:
|
|
417
|
+
deepline search "business address -> company domain" "name and company domain -> work email"
|
|
409
418
|
deepline search "first name, last name and company domain -> verified work email"
|
|
410
|
-
deepline search "
|
|
411
|
-
deepline search "company domain ->
|
|
419
|
+
deepline search "company domains -> shop management software they use"
|
|
420
|
+
deepline search "company domain -> employees by job title and office location" --type plays
|
|
412
421
|
deepline search "upload a contact list as a Meta ads audience"
|
|
413
422
|
deepline search "how do webhooks trigger a play" --type docs
|
|
414
423
|
]]
|
|
415
424
|
[[mcp:
|
|
416
425
|
query "first name, last name and company domain -> verified work email"
|
|
417
|
-
query "
|
|
418
|
-
query "company domain ->
|
|
426
|
+
query "company domains -> shop management software they use"
|
|
427
|
+
query "company domain -> employees by job title and office location"
|
|
419
428
|
query "upload a contact list as a Meta ads audience"
|
|
420
429
|
]]
|
|
421
430
|
Output:
|
|
422
431
|
A ranked list. Each result has an id, its kind, what it does, and its price.
|
|
423
432
|
Tools that need a provider connection are flagged. Describe the tool to
|
|
424
433
|
see how to connect it.
|
|
434
|
+
When search suggests a rewrite, retry with the core task in a shorter query.
|
|
435
|
+
[[cli:
|
|
436
|
+
Multiple queries print one section per query in argument order. With --json,
|
|
437
|
+
read searches[] for each query's results or error. A failed query returns
|
|
438
|
+
a nonzero exit code and successful queries still appear.
|
|
439
|
+
]]
|
|
425
440
|
Cost:
|
|
426
441
|
Free.
|
|
427
442
|
Next:
|
|
@@ -2021,6 +2036,26 @@ Cost:
|
|
|
2021
2036
|
Avoid:
|
|
2022
2037
|
Without --dry-run it replaces skill files; in a sandbox or a task that said
|
|
2023
2038
|
not to change skills, use [[--dry-run]].
|
|
2039
|
+
`
|
|
2040
|
+
},
|
|
2041
|
+
"settings skills-sync": {
|
|
2042
|
+
core: `
|
|
2043
|
+
Purpose:
|
|
2044
|
+
Show or change this machine's saved automatic skill sync setting.
|
|
2045
|
+
Input:
|
|
2046
|
+
Omit the mode to check it. Pass off to disable syncing or on to enable it.
|
|
2047
|
+
--dry-run shows the requested setting without saving it.
|
|
2048
|
+
Examples:
|
|
2049
|
+
deepline settings skills-sync
|
|
2050
|
+
deepline settings skills-sync off
|
|
2051
|
+
deepline settings skills-sync on
|
|
2052
|
+
Output (JSON with --json):
|
|
2053
|
+
autoSkillsSyncEnabled is the saved or requested value. Dry runs include dryRun.
|
|
2054
|
+
Cost:
|
|
2055
|
+
Free. Changes write a local preference.
|
|
2056
|
+
Notes:
|
|
2057
|
+
DEEPLINE_SKIP_SKILLS_SYNC and --maintenance off still skip automatic sync.
|
|
2058
|
+
Explicit deepline skills install remains available.
|
|
2024
2059
|
`
|
|
2025
2060
|
},
|
|
2026
2061
|
update: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3BFZEHBH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EN7GXLFX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GJNIC2CO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TS4KFQKS.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BJ5OX62J.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GJNIC2CO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TS4KFQKS.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAD2WJUZAjs = require('./chunk-AD2WJUZA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkAD2WJUZAjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkMHRR47VQjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkMHRR47VQjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|