deepline 0.3.377 → 0.3.378
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/plays/run-request.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/cli/auth-GC4ZJ6HO.js +39 -0
- package/dist/cli/{auth-3SJMD5GS.mjs → auth-Z4TP4SLF.mjs} +10 -6
- package/dist/cli/{billing-IN4CGRX5.js → billing-2LO7C4OI.js} +74 -74
- package/dist/cli/{billing-N4PYTCSM.mjs → billing-JR4QD4UG.mjs} +5 -5
- package/dist/cli/{chunk-DW7BDVZY.mjs → chunk-2TEN5IOR.mjs} +4 -4
- package/dist/cli/{chunk-MDMP2VS2.mjs → chunk-3H2Q377V.mjs} +21 -8
- package/dist/cli/{chunk-CUKV3EXY.mjs → chunk-3OPJYNS2.mjs} +3 -3
- package/dist/cli/{chunk-KHZQCKZ6.js → chunk-4DAUDGO2.js} +26 -26
- package/dist/cli/{chunk-ATK45XHI.mjs → chunk-4YJHPJKQ.mjs} +2 -2
- package/dist/cli/{chunk-HYMVGRZP.js → chunk-A7VUVXW6.js} +65 -54
- package/dist/cli/{chunk-GPM3AZXB.js → chunk-AIRU4XTZ.js} +25 -25
- package/dist/cli/{chunk-ON7BSEMT.js → chunk-BUHZUAEB.js} +8 -8
- package/dist/cli/{chunk-FVFKLSMD.mjs → chunk-C47TYIAO.mjs} +2 -2
- package/dist/cli/{chunk-VD6KRRST.mjs → chunk-DNORWBSX.mjs} +2 -2
- package/dist/cli/{chunk-M2RT2YVB.mjs → chunk-EEXP6W4X.mjs} +2 -2
- package/dist/cli/{chunk-7EEPWHRK.mjs → chunk-F2RPSYZC.mjs} +5 -5
- package/dist/cli/{chunk-CEUIAIUI.js → chunk-F7MGUP72.js} +48 -48
- package/dist/cli/{chunk-4T62V4WC.js → chunk-FH3WJOCD.js} +2 -2
- package/dist/cli/{chunk-3H5U7XCU.mjs → chunk-FJ3JEYFJ.mjs} +1 -1
- package/dist/cli/{chunk-FWF24ULX.mjs → chunk-HVDBGPDP.mjs} +5 -4
- package/dist/cli/{chunk-4WINCNNH.js → chunk-HXENYWVS.js} +5 -4
- package/dist/cli/{chunk-SQPNP3IQ.js → chunk-ISVKLCGQ.js} +6 -6
- package/dist/cli/{chunk-OEVLOA6Y.mjs → chunk-JORLGBPA.mjs} +1 -1
- package/dist/cli/{chunk-SHPLCIOL.mjs → chunk-KTZFOS57.mjs} +1 -1
- package/dist/cli/{chunk-LJCC26EK.js → chunk-LHBPC7PZ.js} +1 -1
- package/dist/cli/{chunk-JMDMPIGV.mjs → chunk-M5HYHFIV.mjs} +1 -1
- package/dist/cli/{chunk-D3GRDNJO.js → chunk-NGYNHAAC.js} +60 -60
- package/dist/cli/{chunk-LA46MMTL.js → chunk-PAIMOGCM.js} +1 -0
- package/dist/cli/{chunk-CBVIJSHF.mjs → chunk-Q6EOHNRH.mjs} +1 -0
- package/dist/cli/{chunk-VEUTINSL.js → chunk-UCDAF3TI.js} +255 -242
- package/dist/cli/{chunk-OWJRRGZH.mjs → chunk-V4TN5MXK.mjs} +15 -4
- package/dist/cli/{chunk-IHXLIPY3.js → chunk-WHEDPNPN.js} +15 -15
- package/dist/cli/{chunk-BBONZ7CN.js → chunk-YSX6SSGW.js} +8 -8
- package/dist/cli/{chunk-Y72FFPX5.js → chunk-ZNGZPKXT.js} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-747TCRJS.mjs → csv-EQV4HK57.mjs} +3 -3
- package/dist/cli/{csv-JHBQL7PV.js → csv-KEA6YLCU.js} +12 -12
- package/dist/cli/{db-FGCCQJ64.js → db-BSD7XVVZ.js} +30 -30
- package/dist/cli/{db-42NBKURO.mjs → db-CXWVEYF5.mjs} +5 -5
- package/dist/cli/{describe-E6WVN74T.mjs → describe-5PIG7QJH.mjs} +9 -9
- package/dist/cli/{describe-PJYBUSVL.js → describe-FG5JQWSB.js} +17 -17
- package/dist/cli/{executions-5P5ZJCRJ.js → executions-HLJQEBSX.js} +7 -7
- package/dist/cli/{executions-UF7KP7B6.mjs → executions-IPUW4YTD.mjs} +5 -5
- package/dist/cli/{feedback-S43D42JP.js → feedback-6QQVVCSY.js} +7 -7
- package/dist/cli/{feedback-BFXXUVXK.mjs → feedback-P2IEMRL7.mjs} +3 -3
- package/dist/cli/git-24TVX47T.js +23 -0
- package/dist/cli/{git-TNNTQ5IJ.mjs → git-JD6UFEWE.mjs} +4 -4
- package/dist/cli/index.js +108 -103
- package/dist/cli/index.mjs +58 -53
- package/dist/cli/{legacy-noops-SYWQBRUI.js → legacy-noops-JZAEUIHY.js} +7 -7
- package/dist/cli/{legacy-noops-3ZEHUFE4.mjs → legacy-noops-R6FG44MY.mjs} +4 -4
- package/dist/cli/{monitors-DAU53OC5.mjs → monitors-7YTG6MUN.mjs} +5 -5
- package/dist/cli/{monitors-GTBPXIN7.js → monitors-AEDYTXDI.js} +86 -86
- package/dist/cli/{org-G77WDHXX.js → org-CXXZEKOE.js} +65 -65
- package/dist/cli/{org-4TGDZ2ZL.mjs → org-HFFNL6B2.mjs} +5 -5
- package/dist/cli/{play-OZV6FDMR.mjs → play-2LBL27HQ.mjs} +8 -8
- package/dist/cli/play-BTDMU7WD.js +155 -0
- package/dist/cli/{providers-GHS5B4FX.js → providers-FYPDMYJD.js} +8 -8
- package/dist/cli/{providers-FPTHZSZH.mjs → providers-TSQ4IKGL.mjs} +5 -5
- package/dist/cli/{quickstart-TGO5N665.js → quickstart-OLB32KQD.js} +5 -5
- package/dist/cli/{quickstart-ADJZVPQR.mjs → quickstart-X4EK2VUO.mjs} +3 -3
- package/dist/cli/{search-B7BRMMFR.mjs → search-DC3MH3SK.mjs} +6 -6
- package/dist/cli/search-MHDPSHQG.js +26 -0
- package/dist/cli/{secrets-FDREPCLL.js → secrets-ND2ZJBTH.js} +14 -14
- package/dist/cli/{secrets-A4UK4TMU.mjs → secrets-YS5G7TKA.mjs} +5 -5
- package/dist/cli/{sessions-2UJPBSAV.mjs → sessions-FJYWJT4E.mjs} +4 -4
- package/dist/cli/{sessions-KQSHUEEV.js → sessions-ZAWZ23R4.js} +5 -5
- package/dist/cli/{settings-BZ5JTH67.mjs → settings-2PBXGFTK.mjs} +8 -8
- package/dist/cli/{settings-XZSSJUSS.js → settings-VGSUOAPQ.js} +75 -75
- package/dist/cli/{setup-DIQPCI6O.mjs → setup-5EGLDCAF.mjs} +6 -6
- package/dist/cli/{setup-GQO2XQLS.js → setup-SBBMRM7G.js} +41 -41
- package/dist/cli/{skills-6ZJBKK6M.mjs → skills-HGC3BDBU.mjs} +4 -4
- package/dist/cli/skills-OSEKG6FD.js +28 -0
- package/dist/cli/tools-57UDLV2I.js +40 -0
- package/dist/cli/{tools-NKGWJUGR.mjs → tools-UTLVTTWW.mjs} +7 -7
- package/dist/cli/update-5YD7PJFE.js +28 -0
- package/dist/cli/{update-I3H7FXIF.mjs → update-IFOQMPAX.mjs} +6 -6
- package/dist/cli/{workflow-XFRG5G5H.mjs → workflow-JYUD2UHZ.mjs} +6 -6
- package/dist/cli/{workflow-J3FZEW4S.js → workflow-PAM64TA4.js} +16 -16
- package/dist/{client-Cn-txrXv.d.mts → client-0avPvYBP.d.mts} +5 -0
- package/dist/{client-fPoIN-3V.d.ts → client-DEKvymBI.d.ts} +5 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +78 -78
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-C54HQ3XR.js +0 -35
- package/dist/cli/git-C6PRTVHM.js +0 -23
- package/dist/cli/play-LNKMZFTI.js +0 -155
- package/dist/cli/search-L6K36YWC.js +0 -26
- package/dist/cli/skills-VSIYWK7T.js +0 -28
- package/dist/cli/tools-L7A6ITNQ.js +0 -40
- package/dist/cli/update-IP3GCUVX.js +0 -28
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4YJHPJKQ.mjs";
|
|
6
6
|
import "./chunk-6IKARAYD.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-Q6EOHNRH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createTimestampedName,
|
|
10
10
|
getAuthedHttpClient,
|
|
11
11
|
openInBrowser,
|
|
12
12
|
printCommandEnvelope,
|
|
13
13
|
shouldEmitJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KTZFOS57.mjs";
|
|
15
15
|
import {
|
|
16
16
|
AuthError,
|
|
17
17
|
ConfigError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M5HYHFIV.mjs";
|
|
19
19
|
import "./chunk-DLIRSHV6.mjs";
|
|
20
20
|
import {
|
|
21
21
|
DeeplineError
|
|
22
22
|
} from "./chunk-NXGCO4JB.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FJ3JEYFJ.mjs";
|
|
24
24
|
import "./chunk-WZYKRD7T.mjs";
|
|
25
25
|
import "./chunk-KRD6H754.mjs";
|
|
26
26
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JORLGBPA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C47TYIAO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KTZFOS57.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M5HYHFIV.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
} from "./chunk-EDWJY6T4.mjs";
|
|
20
20
|
import {
|
|
21
21
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3OPJYNS2.mjs";
|
|
23
23
|
import {
|
|
24
24
|
handleDeploymentGet,
|
|
25
25
|
handleDeploymentsList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DNORWBSX.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeRunEventOperationRequest,
|
|
43
43
|
parseLogLevel,
|
|
44
44
|
playInputExampleArgs
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4YJHPJKQ.mjs";
|
|
46
46
|
import {
|
|
47
47
|
CSV_DATA_INPUT_KEY,
|
|
48
48
|
buildNamedPlayRunRequest,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
setDottedInputValue,
|
|
53
53
|
stageFileInputs,
|
|
54
54
|
stagedFileContentType
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-Q6EOHNRH.mjs";
|
|
56
56
|
import {
|
|
57
57
|
recordCliTrace,
|
|
58
58
|
traceCliSpan
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
printJsonError,
|
|
76
76
|
renderCommandEnvelopeText,
|
|
77
77
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-KTZFOS57.mjs";
|
|
79
79
|
import {
|
|
80
80
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-M5HYHFIV.mjs";
|
|
82
82
|
import {
|
|
83
83
|
DeeplineError
|
|
84
84
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -7790,6 +7790,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7790
7790
|
forceToolRefresh,
|
|
7791
7791
|
maxConcurrentExternalCalls,
|
|
7792
7792
|
maxConcurrentRows,
|
|
7793
|
+
maxCredits: null,
|
|
7793
7794
|
open: open2,
|
|
7794
7795
|
profile,
|
|
7795
7796
|
debugMapLatency,
|
|
@@ -7861,6 +7862,9 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7861
7862
|
if (externalCalls !== null) resolveMaxConcurrentExternalCalls(externalCalls);
|
|
7862
7863
|
const rows = countOption(options.maxConcurrentRows, "--max-concurrent-rows") ?? base.maxConcurrentRows;
|
|
7863
7864
|
if (rows !== null) resolveMaxConcurrentRows(rows);
|
|
7865
|
+
const maxCredits = options.maxCredits === void 0 ? null : Number(options.maxCredits);
|
|
7866
|
+
if (maxCredits !== null && !(maxCredits > 0 && isFinite(maxCredits)))
|
|
7867
|
+
throw new Error("--max-credits must be a number greater than 0.");
|
|
7864
7868
|
const waitTimeoutMs = countOption(options.tailTimeoutMs, "--tail-timeout-ms") ?? base.waitTimeoutMs;
|
|
7865
7869
|
let fixtureBehavior = base.fixtureBehavior;
|
|
7866
7870
|
if (options.fixtureBehavior !== void 0) {
|
|
@@ -7922,6 +7926,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7922
7926
|
forceToolRefresh: options.forceToolRefresh ?? base.forceToolRefresh,
|
|
7923
7927
|
maxConcurrentExternalCalls: externalCalls,
|
|
7924
7928
|
maxConcurrentRows: rows,
|
|
7929
|
+
maxCredits,
|
|
7925
7930
|
open: options.open ?? base.open,
|
|
7926
7931
|
debugMapLatency
|
|
7927
7932
|
};
|
|
@@ -11520,6 +11525,9 @@ function buildOrdinaryPlayRunCommand(options, resolvedRevisionId) {
|
|
|
11520
11525
|
if (options.maxConcurrentRows !== null) {
|
|
11521
11526
|
parts.push("--max-concurrent-rows", String(options.maxConcurrentRows));
|
|
11522
11527
|
}
|
|
11528
|
+
if (options.maxCredits !== null) {
|
|
11529
|
+
parts.push("--max-credits", String(options.maxCredits));
|
|
11530
|
+
}
|
|
11523
11531
|
const pinnedRevisionId = options.target.kind === "name" ? resolvedRevisionId ?? options.revisionId : null;
|
|
11524
11532
|
if (pinnedRevisionId) {
|
|
11525
11533
|
parts.push("--revision-id", shellQuote(pinnedRevisionId));
|
|
@@ -13198,6 +13206,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13198
13206
|
...options.forceToolRefresh ? { forceToolRefresh: true } : {},
|
|
13199
13207
|
...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
|
|
13200
13208
|
...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
|
|
13209
|
+
...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
|
|
13201
13210
|
...options.profile ? { profile: options.profile } : {},
|
|
13202
13211
|
...Object.keys(testPolicyOverrides).length > 0 ? { testPolicyOverrides } : {},
|
|
13203
13212
|
...integrationMode ? { integrationMode } : {},
|
|
@@ -13385,6 +13394,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13385
13394
|
...options.forceToolRefresh ? { forceToolRefresh: true } : {},
|
|
13386
13395
|
...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
|
|
13387
13396
|
...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
|
|
13397
|
+
...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
|
|
13388
13398
|
...options.profile ? { profile: options.profile } : {},
|
|
13389
13399
|
...Object.keys(testPolicyOverrides).length > 0 ? { testPolicyOverrides } : {},
|
|
13390
13400
|
...integrationMode ? { integrationMode } : {},
|
|
@@ -16161,6 +16171,8 @@ Notes:
|
|
|
16161
16171
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16162
16172
|
resolvers. Accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16163
16173
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16174
|
+
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16175
|
+
Tool calls that would exceed it are denied.
|
|
16164
16176
|
This command starts cloud work and may spend Deepline credits through tool calls.
|
|
16165
16177
|
|
|
16166
16178
|
Idempotent execution:
|
|
@@ -16202,6 +16214,7 @@ Examples:
|
|
|
16202
16214
|
deepline plays run my.play.ts --input '{"domain":"stripe.com"}' --log-level debug
|
|
16203
16215
|
deepline plays run my.play.ts --profile absurd
|
|
16204
16216
|
deepline plays run my.play.ts --max-concurrent-external-calls 20
|
|
16217
|
+
deepline plays run my.play.ts --max-credits 50
|
|
16205
16218
|
deepline plays run my.play.ts --input @input.json
|
|
16206
16219
|
deepline plays run cto-search.play.ts --limit 5
|
|
16207
16220
|
deepline runs export <run-id> --out output.csv
|
|
@@ -16257,7 +16270,7 @@ Examples:
|
|
|
16257
16270
|
).option(
|
|
16258
16271
|
"--max-concurrent-rows <count>",
|
|
16259
16272
|
`Run-wide dataset map row resolver ceiling (max ${MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16260
|
-
).option("--open", "Open the play page in a browser after the run starts").option(
|
|
16273
|
+
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16261
16274
|
"--debug-map-latency",
|
|
16262
16275
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
16263
16276
|
).option(
|
|
@@ -16498,7 +16511,7 @@ Examples:
|
|
|
16498
16511
|
process.exitCode = await ownView();
|
|
16499
16512
|
return;
|
|
16500
16513
|
}
|
|
16501
|
-
const { describeAnything } = await import("./describe-
|
|
16514
|
+
const { describeAnything } = await import("./describe-5PIG7QJH.mjs");
|
|
16502
16515
|
process.exitCode = await describeAnything(
|
|
16503
16516
|
name,
|
|
16504
16517
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4YJHPJKQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KTZFOS57.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M5HYHFIV.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkISVKLCGQjs = require('./chunk-ISVKLCGQ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkZNGZPKXTjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkISVKLCGQjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
mintStagedPlayFileUploads,
|
|
14
14
|
stagePlayFiles,
|
|
15
15
|
startPlayRun
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Q6EOHNRH.mjs";
|
|
17
17
|
import {
|
|
18
18
|
COORDINATOR_INTERNAL_TOKEN_HEADER,
|
|
19
19
|
CustomerDbQueryOutcomeUnknownError,
|
|
@@ -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-M5HYHFIV.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DeeplineError,
|
|
27
27
|
TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
|