deepline 0.3.333 → 0.3.335
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/play.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +227 -61
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +8 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +64 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-deadline.ts +14 -14
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +12 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +55 -6
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +7 -0
- package/dist/cli/auth-7K5HVWDU.js +31 -0
- package/dist/cli/{auth-OQ356CEE.mjs → auth-UAPR5UHG.mjs} +4 -4
- package/dist/cli/{billing-7YVHLDMO.mjs → billing-2M2MOKZ2.mjs} +4 -4
- package/dist/cli/{billing-3APFTHNY.js → billing-7MFJB4YT.js} +71 -71
- package/dist/cli/{chunk-DROPDYOD.js → chunk-2BKBPQYB.js} +1 -1
- package/dist/cli/{chunk-N5KGBQPG.mjs → chunk-5CYUDMCR.mjs} +3 -3
- package/dist/cli/{chunk-H5SORD7Q.mjs → chunk-BC5OUOUV.mjs} +2 -2
- package/dist/cli/{chunk-KREEYWVL.mjs → chunk-DPTGX6LJ.mjs} +23 -10
- package/dist/cli/{chunk-JNNOCMQY.js → chunk-EBU7LQ64.js} +18 -6
- package/dist/cli/{chunk-NI4FJRFJ.mjs → chunk-F67PGWBO.mjs} +5 -5
- package/dist/cli/{chunk-HNX3RC6V.mjs → chunk-FTX3SMNS.mjs} +1 -1
- package/dist/cli/{chunk-2CLENWOQ.mjs → chunk-G7YDITCA.mjs} +1 -1
- package/dist/cli/{chunk-AFVETOG3.js → chunk-GP5TSYAJ.js} +15 -15
- package/dist/cli/{chunk-F2QKAGST.js → chunk-H2QPAGD4.js} +9 -9
- package/dist/cli/{chunk-V77J5ISS.js → chunk-H3ZK3C4S.js} +4 -4
- package/dist/cli/{chunk-AGGDEQDF.mjs → chunk-H6HO3EX2.mjs} +1 -1
- package/dist/cli/{chunk-KBXHB5P3.js → chunk-HNWBP7F4.js} +26 -26
- package/dist/cli/{chunk-3WQJWQ5T.js → chunk-L45TG5XU.js} +60 -60
- package/dist/cli/{chunk-F2XAQHQC.mjs → chunk-LD5NKLNP.mjs} +4 -4
- package/dist/cli/{chunk-64CZWDWT.js → chunk-MGQODOU7.js} +8 -8
- package/dist/cli/{chunk-6JPZJ5W7.mjs → chunk-NFZEBZN5.mjs} +2 -2
- package/dist/cli/{chunk-ABVOFJAE.mjs → chunk-OYWLA5NH.mjs} +1 -1
- package/dist/cli/{chunk-4DUEB2WO.mjs → chunk-R6HWDMKH.mjs} +2 -2
- package/dist/cli/{chunk-STVJ7ZPD.js → chunk-ROTTZP5Y.js} +6 -6
- package/dist/cli/{chunk-UHHTRBJF.js → chunk-T4A2PPAD.js} +45 -45
- package/dist/cli/{chunk-PRZ4S4NU.js → chunk-TMGNPDHK.js} +6 -6
- package/dist/cli/{chunk-SXX4ST3D.mjs → chunk-U5MMLE2K.mjs} +1 -1
- package/dist/cli/{chunk-IYFKFNEB.js → chunk-V67UHLXQ.js} +327 -314
- package/dist/cli/{chunk-SFLARO4Y.mjs → chunk-WIYWSYDS.mjs} +18 -6
- package/dist/cli/{chunk-5A44CWQE.js → chunk-YJWCFMIA.js} +48 -48
- package/dist/cli/{chunk-5UN6KLD2.mjs → chunk-Z3KXO6AE.mjs} +1 -1
- package/dist/cli/{chunk-IDEK4DND.js → chunk-ZY6VIQF3.js} +2 -2
- package/dist/cli/client-JEP4W4GO.js +20 -0
- package/dist/cli/{client-WKS7HQRP.mjs → client-O7SUBEWH.mjs} +3 -3
- package/dist/cli/{csv-ZFY2LD2K.mjs → csv-3QEFBKVA.mjs} +3 -3
- package/dist/cli/{csv-MMW6EKKD.js → csv-RKCZ32SM.js} +12 -12
- package/dist/cli/{db-FMOQU6QW.js → db-6NL2DXCZ.js} +29 -29
- package/dist/cli/{db-Q2NJVILC.mjs → db-YA77SZH2.mjs} +4 -4
- package/dist/cli/{describe-4KG2JAQV.js → describe-3T6SY4OF.js} +15 -15
- package/dist/cli/{describe-EWP7DMNU.mjs → describe-WRGAPAY4.mjs} +8 -8
- package/dist/cli/{executions-Y4XSGKN6.js → executions-4QH4WOAS.js} +6 -6
- package/dist/cli/{executions-UOD7FWEE.mjs → executions-QAXAJTVH.mjs} +4 -4
- package/dist/cli/{feedback-3F3EURZC.mjs → feedback-27PPTJMV.mjs} +3 -3
- package/dist/cli/{feedback-TEJJUXDI.js → feedback-LE2I5YC6.js} +6 -6
- package/dist/cli/getting-started.d.mts +47 -9
- package/dist/cli/getting-started.d.ts +47 -9
- package/dist/cli/getting-started.js +2 -2
- package/dist/cli/getting-started.mjs +1 -1
- package/dist/cli/{git-5YM22RGA.mjs → git-C7WLGDRA.mjs} +4 -4
- package/dist/cli/git-PY2E4CUB.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-T5OUSXMR.js → legacy-noops-LK44HVCZ.js} +7 -7
- package/dist/cli/{legacy-noops-D5XBVUHS.mjs → legacy-noops-MENMLXEB.mjs} +4 -4
- package/dist/cli/{monitors-VI7VBQRP.js → monitors-D2MOP24X.js} +85 -85
- package/dist/cli/{monitors-LPZNYNQW.mjs → monitors-EPYJCNDI.mjs} +4 -4
- package/dist/cli/{org-BYIDOMJB.mjs → org-N5YSFPOM.mjs} +4 -4
- package/dist/cli/{org-OBGIV5QE.js → org-ZEXEZJWX.js} +60 -60
- package/dist/cli/{play-Y5PQQRBO.mjs → play-EJJKDHUY.mjs} +7 -7
- package/dist/cli/play-ZLRJLPLS.js +153 -0
- package/dist/cli/{providers-GEGIGKOL.mjs → providers-5UPKT6WL.mjs} +4 -4
- package/dist/cli/{providers-VH6J7FFY.js → providers-BE7A6VON.js} +7 -7
- package/dist/cli/{quickstart-GHITFT27.mjs → quickstart-FPBWZ3XR.mjs} +4 -4
- package/dist/cli/{quickstart-ZQX5XNHG.js → quickstart-QYWCXL3Z.js} +12 -12
- package/dist/cli/{search-AFX3DYAC.mjs → search-WN6UAW3I.mjs} +5 -5
- package/dist/cli/search-XM4JURG3.js +26 -0
- package/dist/cli/{secrets-F37M7D7R.js → secrets-2NBEJSA7.js} +13 -13
- package/dist/cli/{secrets-4EOVXQJM.mjs → secrets-DGY65IAZ.mjs} +4 -4
- package/dist/cli/{sessions-T57Q72GD.js → sessions-EPSCU52L.js} +5 -5
- package/dist/cli/{sessions-RX5SFHDI.mjs → sessions-FQTEUX6Q.mjs} +4 -4
- package/dist/cli/{settings-764O5ZEH.mjs → settings-AVW7W6KG.mjs} +7 -7
- package/dist/cli/{settings-3FVWW7GL.js → settings-QWUYZKVG.js} +74 -74
- package/dist/cli/{setup-X7OAHFTO.mjs → setup-D3ZMOSVR.mjs} +7 -7
- package/dist/cli/{setup-FQVRVTR6.js → setup-G7F5LIFR.js} +49 -49
- package/dist/cli/{skills-O6ILHPV5.mjs → skills-744HOKKT.mjs} +4 -4
- package/dist/cli/skills-FNGT3DEV.js +28 -0
- package/dist/cli/tools-CPNEQIQP.js +40 -0
- package/dist/cli/{tools-HL4SQG35.mjs → tools-DJRG7RTC.mjs} +6 -6
- package/dist/cli/update-K7FVDY7F.js +28 -0
- package/dist/cli/{update-A3P2RSIB.mjs → update-ORTHR3FA.mjs} +6 -6
- package/dist/cli/{workflow-62AGKI6T.js → workflow-5IIN7CW2.js} +15 -15
- package/dist/cli/{workflow-44424AVE.mjs → workflow-XD7CRWCQ.mjs} +5 -5
- package/dist/{client-l-IoLh8Z.d.ts → client-DkoxT4wF.d.ts} +1 -1
- package/dist/{client-D5XOQKsA.d.mts → client-PDAfbylh.d.mts} +1 -1
- package/dist/{compiler-manifest-82q4jtfQ.d.ts → compiler-manifest-CButyeZ8.d.mts} +7 -0
- package/dist/{compiler-manifest-82q4jtfQ.d.mts → compiler-manifest-CButyeZ8.d.ts} +7 -0
- package/dist/{index-BPbW2XHF.d.mts → index-BMsNUoL5.d.mts} +1 -1
- package/dist/{index-k0rquHIm.d.ts → index-LDRzwo09.d.ts} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -82
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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/package.json +1 -1
- package/dist/cli/auth-26GA3RM6.js +0 -31
- package/dist/cli/client-IZRTEBU4.js +0 -20
- package/dist/cli/git-GNEZSTVF.js +0 -23
- package/dist/cli/play-5JYRSXAL.js +0 -153
- package/dist/cli/search-YIXGQFXA.js +0 -26
- package/dist/cli/skills-DPGB67XX.js +0 -28
- package/dist/cli/tools-WZCXSXER.js +0 -40
- package/dist/cli/update-63MANY7U.js +0 -28
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./chunk-EDWJY6T4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
registerDeprecatedSearchCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5CYUDMCR.mjs";
|
|
14
14
|
import {
|
|
15
15
|
handleDeploymentGet,
|
|
16
16
|
handleDeploymentsList
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-R6HWDMKH.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
20
20
|
PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
normalizeRunEventOperationRequest,
|
|
40
40
|
parseLogLevel,
|
|
41
41
|
playInputExampleArgs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-U5MMLE2K.mjs";
|
|
43
43
|
import {
|
|
44
44
|
CSV_DATA_INPUT_KEY,
|
|
45
45
|
buildNamedPlayRunRequest,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
printJsonError,
|
|
73
73
|
renderCommandEnvelopeText,
|
|
74
74
|
shouldEmitJson
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-FTX3SMNS.mjs";
|
|
76
76
|
import {
|
|
77
77
|
fetchWithDeploymentProtection
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-Z3KXO6AE.mjs";
|
|
79
79
|
import {
|
|
80
80
|
PLAY_DEFAULT_EXPORT,
|
|
81
81
|
extractDefinedPlayName,
|
|
@@ -13692,6 +13692,12 @@ function assertDatasetHasExportableRows(input) {
|
|
|
13692
13692
|
if (input.rowsInfo.rows.length > 0) {
|
|
13693
13693
|
return input.rowsInfo;
|
|
13694
13694
|
}
|
|
13695
|
+
const rowOutcomes = readRowOutcomeSummary(input.status) ?? readRowOutcomeSummary(
|
|
13696
|
+
getRecordField(getRecordField(input.status, "result"), "_metadata")
|
|
13697
|
+
);
|
|
13698
|
+
if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && rowOutcomes?.failedRows === 0 && !rowOutcomes.hasRowFailures) {
|
|
13699
|
+
return input.rowsInfo;
|
|
13700
|
+
}
|
|
13695
13701
|
const datasetLabel = input.datasetPath ?? input.rowsInfo.tableNamespace ?? input.rowsInfo.source ?? "result.rows";
|
|
13696
13702
|
const available = input.availableRows.map((info) => info.tableNamespace ?? info.source).filter((name) => typeof name === "string");
|
|
13697
13703
|
const runStatus = String(input.status.status ?? "").toLowerCase();
|
|
@@ -13711,7 +13717,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
13711
13717
|
if (!TERMINAL_PLAY_STATUSES.has(input.status.status)) {
|
|
13712
13718
|
const waitCommand = `${retryCommand} --wait`;
|
|
13713
13719
|
throw new DeeplineError(
|
|
13714
|
-
`Run ${input.status.runId} is ${runStatus}; this dataset has
|
|
13720
|
+
`Run ${input.status.runId} is ${runStatus}; this dataset has zero rows to export yet. Wait for this same run: ${waitCommand}. Do not start another run to retrieve results.`,
|
|
13715
13721
|
void 0,
|
|
13716
13722
|
"RUN_EXPORT_EMPTY",
|
|
13717
13723
|
{
|
|
@@ -13892,6 +13898,7 @@ ${commands.join("\n")}`,
|
|
|
13892
13898
|
status,
|
|
13893
13899
|
availableRows,
|
|
13894
13900
|
datasetPath: options.datasetPath,
|
|
13901
|
+
allowEmpty: options.allowEmpty,
|
|
13895
13902
|
outPath,
|
|
13896
13903
|
format: options.format
|
|
13897
13904
|
});
|
|
@@ -13903,6 +13910,7 @@ ${commands.join("\n")}`,
|
|
|
13903
13910
|
status,
|
|
13904
13911
|
availableRows,
|
|
13905
13912
|
datasetPath: options.datasetPath,
|
|
13913
|
+
allowEmpty: options.allowEmpty,
|
|
13906
13914
|
outPath,
|
|
13907
13915
|
format: options.format
|
|
13908
13916
|
});
|
|
@@ -13936,6 +13944,7 @@ ${commands.join("\n")}`,
|
|
|
13936
13944
|
status,
|
|
13937
13945
|
availableRows,
|
|
13938
13946
|
datasetPath: options.datasetPath,
|
|
13947
|
+
allowEmpty: options.allowEmpty,
|
|
13939
13948
|
outPath,
|
|
13940
13949
|
format: options.format
|
|
13941
13950
|
});
|
|
@@ -16463,7 +16472,7 @@ async function handleRunStopAll(args) {
|
|
|
16463
16472
|
async function handleRunExport(args) {
|
|
16464
16473
|
const selection = parseJsonFields(args, "export");
|
|
16465
16474
|
args = selection.args;
|
|
16466
|
-
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
|
|
16475
|
+
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
16467
16476
|
let runId;
|
|
16468
16477
|
try {
|
|
16469
16478
|
runId = parseRunIdPositional(args, usage2);
|
|
@@ -16550,6 +16559,7 @@ async function handleRunExport(args) {
|
|
|
16550
16559
|
}
|
|
16551
16560
|
const exportResult = await exportPlayStatusRows(client, status, outPath, {
|
|
16552
16561
|
datasetPath,
|
|
16562
|
+
allowEmpty: args.includes("--allow-empty"),
|
|
16553
16563
|
format
|
|
16554
16564
|
});
|
|
16555
16565
|
const source = exportResult?.rowsInfo.source ?? datasetPath ?? null;
|
|
@@ -16569,7 +16579,7 @@ async function handleRunExport(args) {
|
|
|
16569
16579
|
outPath,
|
|
16570
16580
|
unambiguousName ?? datasetPath ?? exportResult?.datasetPath,
|
|
16571
16581
|
{ format }
|
|
16572
|
-
);
|
|
16582
|
+
) + (args.includes("--allow-empty") ? " --allow-empty" : "");
|
|
16573
16583
|
const fileLocation = format === "json" ? { json_path: exportResult?.path ?? null } : { csv_path: exportResult?.path ?? null };
|
|
16574
16584
|
const exportedRowOutcomes = exportResult?.rowsInfo.exportedRowOutcomes;
|
|
16575
16585
|
const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
|
|
@@ -18156,7 +18166,7 @@ Examples:
|
|
|
18156
18166
|
process.exitCode = await ownView();
|
|
18157
18167
|
return;
|
|
18158
18168
|
}
|
|
18159
|
-
const { describeAnything } = await import("./describe-
|
|
18169
|
+
const { describeAnything } = await import("./describe-WRGAPAY4.mjs");
|
|
18160
18170
|
process.exitCode = await describeAnything(
|
|
18161
18171
|
name,
|
|
18162
18172
|
{
|
|
@@ -18693,6 +18703,8 @@ Notes:
|
|
|
18693
18703
|
--json controls stdout metadata, not the file format.
|
|
18694
18704
|
--metadata-out writes the same export metadata object returned by --json,
|
|
18695
18705
|
including the source dataset path and row/column metadata.
|
|
18706
|
+
--allow-empty permits a completed dataset with a known zero count and no
|
|
18707
|
+
failed rows. Missing advertised rows and failed runs still fail loudly.
|
|
18696
18708
|
An active run exports only the rows accepted so far; the receipt labels it
|
|
18697
18709
|
partial. --wait observes the same run until it completes, fails, or is cancelled
|
|
18698
18710
|
before exporting its saved rows. --timeout-ms bounds that wait (default 300000);
|
|
@@ -18709,7 +18721,7 @@ Examples:
|
|
|
18709
18721
|
).requiredOption("--out <path>", "Output file path").option("--format <format>", "File format: csv or json", "csv").option(
|
|
18710
18722
|
"--dataset <path>",
|
|
18711
18723
|
"Returned dataset handle path, such as result.rows"
|
|
18712
|
-
).option("--metadata-out <path>", "Write export metadata JSON to a file").option(
|
|
18724
|
+
).option("--metadata-out <path>", "Write export metadata JSON to a file").option("--allow-empty", "Allow a completed, healthy zero-row dataset").option(
|
|
18713
18725
|
"--wait",
|
|
18714
18726
|
"Wait for this run to reach a terminal status before export"
|
|
18715
18727
|
).option("--timeout-ms <ms>", "Maximum wait with --wait (default: 300000)").option(
|
|
@@ -18724,6 +18736,7 @@ Examples:
|
|
|
18724
18736
|
"--format",
|
|
18725
18737
|
options.format,
|
|
18726
18738
|
...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
|
|
18739
|
+
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18727
18740
|
...options.wait ? ["--wait"] : [],
|
|
18728
18741
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18729
18742
|
...jsonFieldArgs(options.json)
|
|
@@ -2,21 +2,33 @@
|
|
|
2
2
|
var DEEPLINE_GTM_SKILL = "/deepline-gtm";
|
|
3
3
|
var DEEPLINE_GTM_STARTER_PROMPTS = [
|
|
4
4
|
{
|
|
5
|
+
// Preserve the historical opaque SDK choice ID.
|
|
5
6
|
id: "competitor-tracking",
|
|
6
|
-
title: "
|
|
7
|
-
prompt: "/deepline-gtm
|
|
7
|
+
title: "Recently funded AI companies",
|
|
8
|
+
prompt: "/deepline-gtm Find 3 AI companies funded in the last 30 days, with founder contacts and verified work emails.",
|
|
9
|
+
prebuilt: "prebuilt/starter-funded-ai-founders",
|
|
10
|
+
defaultInput: { target_count: 3, days: 30 },
|
|
11
|
+
requiredInputs: [],
|
|
12
|
+
runCommand: "deepline plays run prebuilt/starter-funded-ai-founders --input '{}' --watch"
|
|
8
13
|
},
|
|
9
14
|
{
|
|
10
15
|
id: "contact-email-enrichment",
|
|
11
16
|
title: "Contact email enrichment",
|
|
12
|
-
prompt: "/deepline-gtm Find 10 CTOs at B2B SaaS companies and enrich them with email addresses."
|
|
17
|
+
prompt: "/deepline-gtm Find 10 CTOs at B2B SaaS companies and enrich them with email addresses.",
|
|
18
|
+
prebuilt: "prebuilt/starter-b2b-saas-ctos",
|
|
19
|
+
defaultInput: { target_count: 10 },
|
|
20
|
+
requiredInputs: [],
|
|
21
|
+
runCommand: "deepline plays run prebuilt/starter-b2b-saas-ctos --input '{}' --watch"
|
|
13
22
|
},
|
|
14
23
|
{
|
|
15
|
-
//
|
|
16
|
-
// starter copy is the fintech hiring-and-growth workflow below.
|
|
24
|
+
// Preserve the historical opaque SDK choice ID.
|
|
17
25
|
id: "decision-maker-discovery",
|
|
18
26
|
title: "Fintech hiring and growth",
|
|
19
|
-
prompt: "/deepline-gtm Find
|
|
27
|
+
prompt: "/deepline-gtm Find 3 fintech companies with live SDR openings and six-month headcount growth. Show dated evidence for both.",
|
|
28
|
+
prebuilt: "prebuilt/starter-fintech-hiring-growth",
|
|
29
|
+
defaultInput: { target_count: 3 },
|
|
30
|
+
requiredInputs: [],
|
|
31
|
+
runCommand: "deepline plays run prebuilt/starter-fintech-hiring-growth --input '{}' --watch"
|
|
20
32
|
}
|
|
21
33
|
];
|
|
22
34
|
var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
recentSearchRef,
|
|
12
12
|
registerDeprecatedSearchCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5CYUDMCR.mjs";
|
|
14
14
|
import {
|
|
15
15
|
extractSummaryFields,
|
|
16
16
|
projectRowOutput,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
DeeplineClient,
|
|
24
24
|
validateExecutionIdempotencyKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-U5MMLE2K.mjs";
|
|
26
26
|
import {
|
|
27
27
|
beginToolExecuteCommand,
|
|
28
28
|
getToolExecuteInvocationId,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
printJsonError,
|
|
37
37
|
renderCommandEnvelopeText,
|
|
38
38
|
shouldEmitJson
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-FTX3SMNS.mjs";
|
|
40
40
|
import {
|
|
41
41
|
resolveConfig,
|
|
42
42
|
sdkCliStateDirPath
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-Z3KXO6AE.mjs";
|
|
44
44
|
import {
|
|
45
45
|
playToolListGetterMode
|
|
46
46
|
} from "./chunk-NTVTZAVZ.mjs";
|
|
@@ -1029,7 +1029,7 @@ Examples:
|
|
|
1029
1029
|
process.exitCode = await narrowView();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
const { describeAnything } = await import("./describe-
|
|
1032
|
+
const { describeAnything } = await import("./describe-WRGAPAY4.mjs");
|
|
1033
1033
|
process.exitCode = await describeAnything(
|
|
1034
1034
|
toolId,
|
|
1035
1035
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.335",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZY6VIQF3js = require('./chunk-ZY6VIQF3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkL45TG5XUjs = require('./chunk-L45TG5XU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkTMGNPDHKjs = require('./chunk-TMGNPDHK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkH3ZK3C4Sjs = require('./chunk-H3ZK3C4S.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkL45TG5XUjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkZY6VIQF3js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkZY6VIQF3js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkH3ZK3C4Sjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkL45TG5XUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkH3ZK3C4Sjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkL45TG5XUjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkH3ZK3C4Sjs = require('./chunk-H3ZK3C4S.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkH3ZK3C4Sjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkH3ZK3C4Sjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkH3ZK3C4Sjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2877
2877
|
return {
|
|
2878
|
-
[
|
|
2879
|
-
...receivers ? { [
|
|
2878
|
+
[_chunkH3ZK3C4Sjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2879
|
+
...receivers ? { [_chunkH3ZK3C4Sjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2892
2892
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
2895
|
-
return { [
|
|
2895
|
+
return { [_chunkH3ZK3C4Sjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2896
2896
|
}
|
|
2897
2897
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2898
2898
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3182
3182
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3183
3183
|
*/
|
|
3184
3184
|
constructor(options) {
|
|
3185
|
-
this.config =
|
|
3186
|
-
this.http = new (0,
|
|
3185
|
+
this.config = _chunkH3ZK3C4Sjs.resolveConfig.call(void 0, options);
|
|
3186
|
+
this.http = new (0, _chunkH3ZK3C4Sjs.HttpClient)(this.config);
|
|
3187
3187
|
this.toolCalls = new ToolCalls(
|
|
3188
3188
|
this.http,
|
|
3189
3189
|
this.config.timeout,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2BKBPQYBjs = require('./chunk-2BKBPQYB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunk2BKBPQYBjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunk2BKBPQYBjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk2BKBPQYBjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTMGNPDHKjs = require('./chunk-TMGNPDHK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkH3ZK3C4Sjs = require('./chunk-H3ZK3C4S.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkTMGNPDHKjs.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 = _chunkH3ZK3C4Sjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkTMGNPDHKjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.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
|
+
_chunkTMGNPDHKjs.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 } = _chunkTMGNPDHKjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkTMGNPDHKjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|