@pipelab/plugin-core 1.0.0-beta.14 → 1.0.0-beta.16
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/index.cjs +158 -80
- package/dist/index.d.cts +2 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +146 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -39,10 +39,9 @@ let os = require("os");
|
|
|
39
39
|
let path = require("path");
|
|
40
40
|
let util = require("util");
|
|
41
41
|
let _pipelab_core_node = require("@pipelab/core-node");
|
|
42
|
+
let node_fs = require("node:fs");
|
|
42
43
|
let node_fs_promises = require("node:fs/promises");
|
|
43
44
|
let node_path = require("node:path");
|
|
44
|
-
let node_os = require("node:os");
|
|
45
|
-
let node_fs = require("node:fs");
|
|
46
45
|
let tar = require("tar");
|
|
47
46
|
tar = __toESM(tar);
|
|
48
47
|
let yauzl = require("yauzl");
|
|
@@ -1625,6 +1624,56 @@ function literal(literal_, message) {
|
|
|
1625
1624
|
}
|
|
1626
1625
|
};
|
|
1627
1626
|
}
|
|
1627
|
+
function looseObject(entries, message) {
|
|
1628
|
+
return {
|
|
1629
|
+
kind: "schema",
|
|
1630
|
+
type: "loose_object",
|
|
1631
|
+
reference: looseObject,
|
|
1632
|
+
expects: "Object",
|
|
1633
|
+
async: false,
|
|
1634
|
+
entries,
|
|
1635
|
+
message,
|
|
1636
|
+
_run(dataset, config2) {
|
|
1637
|
+
const input = dataset.value;
|
|
1638
|
+
if (input && typeof input === "object") {
|
|
1639
|
+
dataset.typed = true;
|
|
1640
|
+
dataset.value = {};
|
|
1641
|
+
for (const key in this.entries) {
|
|
1642
|
+
const value2 = input[key];
|
|
1643
|
+
const valueDataset = this.entries[key]._run({
|
|
1644
|
+
typed: false,
|
|
1645
|
+
value: value2
|
|
1646
|
+
}, config2);
|
|
1647
|
+
if (valueDataset.issues) {
|
|
1648
|
+
const pathItem = {
|
|
1649
|
+
type: "object",
|
|
1650
|
+
origin: "value",
|
|
1651
|
+
input,
|
|
1652
|
+
key,
|
|
1653
|
+
value: value2
|
|
1654
|
+
};
|
|
1655
|
+
for (const issue of valueDataset.issues) {
|
|
1656
|
+
if (issue.path) issue.path.unshift(pathItem);
|
|
1657
|
+
else issue.path = [pathItem];
|
|
1658
|
+
dataset.issues?.push(issue);
|
|
1659
|
+
}
|
|
1660
|
+
if (!dataset.issues) dataset.issues = valueDataset.issues;
|
|
1661
|
+
if (config2.abortEarly) {
|
|
1662
|
+
dataset.typed = false;
|
|
1663
|
+
break;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
if (!valueDataset.typed) dataset.typed = false;
|
|
1667
|
+
if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
|
|
1668
|
+
}
|
|
1669
|
+
if (!dataset.issues || !config2.abortEarly) {
|
|
1670
|
+
for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
|
|
1671
|
+
}
|
|
1672
|
+
} else _addIssue(this, "type", dataset, config2);
|
|
1673
|
+
return dataset;
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1628
1677
|
function number(message) {
|
|
1629
1678
|
return {
|
|
1630
1679
|
kind: "schema",
|
|
@@ -2162,6 +2211,18 @@ const appSettingsMigrator$1 = settingsMigratorInternal.createMigrations({
|
|
|
2162
2211
|
})
|
|
2163
2212
|
]
|
|
2164
2213
|
});
|
|
2214
|
+
const connectionsMigratorInternal = createMigrator();
|
|
2215
|
+
const defaultConnections$1 = connectionsMigratorInternal.createDefault({
|
|
2216
|
+
version: "1.0.0",
|
|
2217
|
+
connections: []
|
|
2218
|
+
});
|
|
2219
|
+
const connectionsMigrator$1 = connectionsMigratorInternal.createMigrations({
|
|
2220
|
+
defaultValue: defaultConnections$1,
|
|
2221
|
+
migrations: [createMigration({
|
|
2222
|
+
version: "1.0.0",
|
|
2223
|
+
up: finalVersion
|
|
2224
|
+
})]
|
|
2225
|
+
});
|
|
2165
2226
|
const fileRepoMigratorInternal = createMigrator();
|
|
2166
2227
|
const defaultFileRepo$1 = fileRepoMigratorInternal.createDefault({
|
|
2167
2228
|
version: "2.0.0",
|
|
@@ -2323,10 +2384,7 @@ const LEGACY_ID_MAP = {
|
|
|
2323
2384
|
};
|
|
2324
2385
|
const getStrictPluginId = (pluginId) => {
|
|
2325
2386
|
if (!pluginId) return pluginId;
|
|
2326
|
-
|
|
2327
|
-
if (pluginId.startsWith("@") || pluginId.includes("/") || pluginId.startsWith("pipelab-plugin-")) return pluginId;
|
|
2328
|
-
const prefixed = `@pipelab/plugin-${pluginId}`;
|
|
2329
|
-
return LEGACY_ID_MAP[prefixed] || prefixed;
|
|
2387
|
+
return LEGACY_ID_MAP[pluginId] || pluginId;
|
|
2330
2388
|
};
|
|
2331
2389
|
const normalizeBlockPluginId = (block) => {
|
|
2332
2390
|
if (!block) return false;
|
|
@@ -2356,9 +2414,59 @@ const normalizePipelineConfig$1 = (state) => {
|
|
|
2356
2414
|
const configRegistry$1 = {
|
|
2357
2415
|
settings: appSettingsMigrator$1,
|
|
2358
2416
|
projects: fileRepoMigrations$1,
|
|
2359
|
-
pipeline: savedFileMigrator$1
|
|
2417
|
+
pipeline: savedFileMigrator$1,
|
|
2418
|
+
connections: connectionsMigrator$1
|
|
2360
2419
|
};
|
|
2361
2420
|
//#endregion
|
|
2421
|
+
//#region ../../packages/shared/src/save-location.ts
|
|
2422
|
+
const SaveLocationInternalValidator = object({
|
|
2423
|
+
id: string(),
|
|
2424
|
+
project: string(),
|
|
2425
|
+
lastModified: string(),
|
|
2426
|
+
type: literal("internal"),
|
|
2427
|
+
configName: string()
|
|
2428
|
+
});
|
|
2429
|
+
/** @deprecated External pipeline files are deprecated and will be removed in future versions. */
|
|
2430
|
+
const SaveLocationExternalValidator = object({
|
|
2431
|
+
id: string(),
|
|
2432
|
+
project: string(),
|
|
2433
|
+
path: string(),
|
|
2434
|
+
lastModified: string(),
|
|
2435
|
+
type: literal("external"),
|
|
2436
|
+
summary: object({
|
|
2437
|
+
plugins: array(string()),
|
|
2438
|
+
name: string(),
|
|
2439
|
+
description: string()
|
|
2440
|
+
})
|
|
2441
|
+
});
|
|
2442
|
+
const SaveLocationPipelabCloudValidator = object({
|
|
2443
|
+
id: string(),
|
|
2444
|
+
project: string(),
|
|
2445
|
+
type: literal("pipelab-cloud")
|
|
2446
|
+
});
|
|
2447
|
+
const SaveLocationValidator = union([
|
|
2448
|
+
SaveLocationExternalValidator,
|
|
2449
|
+
SaveLocationInternalValidator,
|
|
2450
|
+
SaveLocationPipelabCloudValidator
|
|
2451
|
+
]);
|
|
2452
|
+
//#endregion
|
|
2453
|
+
//#region ../../packages/shared/src/config/projects-definition.ts
|
|
2454
|
+
const FileRepoValidatorV1 = object({
|
|
2455
|
+
version: literal("1.0.0"),
|
|
2456
|
+
data: optional(record(string(), SaveLocationValidator), {})
|
|
2457
|
+
});
|
|
2458
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2459
|
+
id: string(),
|
|
2460
|
+
name: string(),
|
|
2461
|
+
description: string()
|
|
2462
|
+
});
|
|
2463
|
+
const FileRepoValidatorV2 = object({
|
|
2464
|
+
version: literal("2.0.0"),
|
|
2465
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2466
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2467
|
+
});
|
|
2468
|
+
const FileRepoValidator = FileRepoValidatorV2;
|
|
2469
|
+
//#endregion
|
|
2362
2470
|
//#region ../../packages/shared/src/apis.ts
|
|
2363
2471
|
const ShellChannels = ["dialog:showOpenDialog", "dialog:showSaveDialog"];
|
|
2364
2472
|
//#endregion
|
|
@@ -2515,6 +2623,18 @@ const AppSettingsValidatorV8 = object({
|
|
|
2515
2623
|
})),
|
|
2516
2624
|
isInternalMigrationBannerClosed: optional(boolean(), false)
|
|
2517
2625
|
});
|
|
2626
|
+
const ConnectionValidator = looseObject({
|
|
2627
|
+
id: string(),
|
|
2628
|
+
pluginName: string(),
|
|
2629
|
+
name: string(),
|
|
2630
|
+
createdAt: string(),
|
|
2631
|
+
isDefault: boolean()
|
|
2632
|
+
});
|
|
2633
|
+
const ConnectionsValidatorV1 = object({
|
|
2634
|
+
version: literal("1.0.0"),
|
|
2635
|
+
connections: array(ConnectionValidator)
|
|
2636
|
+
});
|
|
2637
|
+
const ConnectionsValidator = ConnectionsValidatorV1;
|
|
2518
2638
|
const AppSettingsValidator = AppSettingsValidatorV8;
|
|
2519
2639
|
//#endregion
|
|
2520
2640
|
//#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
|
|
@@ -4219,7 +4339,8 @@ var en_US_default = {
|
|
|
4219
4339
|
"billing": "Billing",
|
|
4220
4340
|
"plugins": "Plugins",
|
|
4221
4341
|
"core-plugins": "Core Plugins",
|
|
4222
|
-
"community-plugins": "Community Plugins"
|
|
4342
|
+
"community-plugins": "Community Plugins",
|
|
4343
|
+
"versions": "Versions"
|
|
4223
4344
|
},
|
|
4224
4345
|
"pipeline-cache-folder": "Pipeline Cache Folder:",
|
|
4225
4346
|
"enter-or-browse-for-a-folder": "Enter or browse for a folder",
|
|
@@ -4387,7 +4508,8 @@ var fr_FR_default = {
|
|
|
4387
4508
|
"billing": "Facturation",
|
|
4388
4509
|
"plugins": "Plugins",
|
|
4389
4510
|
"core-plugins": "Plugins de base",
|
|
4390
|
-
"community-plugins": "Plugins de la communauté"
|
|
4511
|
+
"community-plugins": "Plugins de la communauté",
|
|
4512
|
+
"versions": "Versions"
|
|
4391
4513
|
},
|
|
4392
4514
|
"clearTempFolders": "Nettoyer automatiquement les fichiers temporaires",
|
|
4393
4515
|
"clearTempFoldersDescription": "Lorsque cette option est activée, tous les fichiers temporaires créés lors de l'exécution du pipeline seront automatiquement supprimés une fois le pipeline terminé. Cela permet d'économiser de l'espace disque, mais vous devrez peut-être copier vous-même des artefacts pour les préserver.",
|
|
@@ -4479,7 +4601,8 @@ var pt_BR_default = {
|
|
|
4479
4601
|
"billing": "Pagamento",
|
|
4480
4602
|
"plugins": "Plugins",
|
|
4481
4603
|
"core-plugins": "Plugins nativos",
|
|
4482
|
-
"community-plugins": "Plugins da comunidade"
|
|
4604
|
+
"community-plugins": "Plugins da comunidade",
|
|
4605
|
+
"versions": "Versões"
|
|
4483
4606
|
},
|
|
4484
4607
|
"clearTempFolders": "Automatically clean up temporary files",
|
|
4485
4608
|
"clearTempFoldersDescription": "When enabled, all temporary files created during pipeline execution will be automatically deleted after the pipeline completes. This helps save disk space but you may need to copy artifacts yourself to preserve them.",
|
|
@@ -4568,7 +4691,8 @@ var zh_CN_default = {
|
|
|
4568
4691
|
"billing": "Billing",
|
|
4569
4692
|
"plugins": "Plugins",
|
|
4570
4693
|
"core-plugins": "核心插件",
|
|
4571
|
-
"community-plugins": "社区插件"
|
|
4694
|
+
"community-plugins": "社区插件",
|
|
4695
|
+
"versions": "版本"
|
|
4572
4696
|
},
|
|
4573
4697
|
"clearTempFolders": "Automatically clean up temporary files",
|
|
4574
4698
|
"clearTempFoldersDescription": "When enabled, all temporary files created during pipeline execution will be automatically deleted after the pipeline completes. This helps save disk space but you may need to copy artifacts yourself to preserve them.",
|
|
@@ -4657,7 +4781,8 @@ var es_ES_default = {
|
|
|
4657
4781
|
"billing": "Billing",
|
|
4658
4782
|
"plugins": "Plugins",
|
|
4659
4783
|
"core-plugins": "Complementos principales",
|
|
4660
|
-
"community-plugins": "Complementos de la comunidad"
|
|
4784
|
+
"community-plugins": "Complementos de la comunidad",
|
|
4785
|
+
"versions": "Versiones"
|
|
4661
4786
|
},
|
|
4662
4787
|
"clearTempFolders": "Automatically clean up temporary files",
|
|
4663
4788
|
"clearTempFoldersDescription": "Cuando está habilitado, todos los archivos temporales creados durante la ejecución del pipeline se eliminarán automáticamente después de que el pipeline se complete. Esto ayuda a ahorrar espacio en el disco, pero puede que necesite copiar los artefactos usted mismo para preservarlos.",
|
|
@@ -4746,7 +4871,8 @@ var de_DE_default = {
|
|
|
4746
4871
|
"billing": "Billing",
|
|
4747
4872
|
"plugins": "Plugins",
|
|
4748
4873
|
"core-plugins": "Core-Plugins",
|
|
4749
|
-
"community-plugins": "Community-Plugins"
|
|
4874
|
+
"community-plugins": "Community-Plugins",
|
|
4875
|
+
"versions": "Versionen"
|
|
4750
4876
|
},
|
|
4751
4877
|
"clearTempFolders": "Automatically clean up temporary files",
|
|
4752
4878
|
"clearTempFoldersDescription": "Wenn aktiviert, werden alle temporären Dateien, die während der Pipeline-Ausführung erstellt wurden, automatisch gelöscht, nachdem die Pipeline abgeschlossen ist. Dies hilft, Speicherplatz auf der Festplatte zu sparen, aber möglicherweise müssen Sie selbst Artefakte kopieren, um sie zu bewahren.",
|
|
@@ -4818,7 +4944,7 @@ var de_DE_default = {
|
|
|
4818
4944
|
const OriginValidator = object({
|
|
4819
4945
|
pluginId: string(),
|
|
4820
4946
|
nodeId: string(),
|
|
4821
|
-
version: pipe(
|
|
4947
|
+
version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
|
|
4822
4948
|
});
|
|
4823
4949
|
const BlockActionValidatorV1 = object({
|
|
4824
4950
|
type: literal("action"),
|
|
@@ -4831,7 +4957,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
|
|
|
4831
4957
|
const BlockActionValidatorV3 = object({
|
|
4832
4958
|
type: literal("action"),
|
|
4833
4959
|
uid: string(),
|
|
4834
|
-
name: pipe(
|
|
4960
|
+
name: optional(pipe(string(), description("A custom name provided by the user"))),
|
|
4835
4961
|
disabled: optional(boolean()),
|
|
4836
4962
|
params: record(string(), object({
|
|
4837
4963
|
editor: EditorParamValidatorV3,
|
|
@@ -47230,38 +47356,6 @@ const createEvent = (event) => {
|
|
|
47230
47356
|
};
|
|
47231
47357
|
};
|
|
47232
47358
|
//#endregion
|
|
47233
|
-
//#region ../../packages/shared/src/save-location.ts
|
|
47234
|
-
const SaveLocationInternalValidator = object({
|
|
47235
|
-
id: string(),
|
|
47236
|
-
project: string(),
|
|
47237
|
-
lastModified: string(),
|
|
47238
|
-
type: literal("internal"),
|
|
47239
|
-
configName: string()
|
|
47240
|
-
});
|
|
47241
|
-
/** @deprecated External pipeline files are deprecated and will be removed in future versions. */
|
|
47242
|
-
const SaveLocationExternalValidator = object({
|
|
47243
|
-
id: string(),
|
|
47244
|
-
project: string(),
|
|
47245
|
-
path: string(),
|
|
47246
|
-
lastModified: string(),
|
|
47247
|
-
type: literal("external"),
|
|
47248
|
-
summary: object({
|
|
47249
|
-
plugins: array(string()),
|
|
47250
|
-
name: string(),
|
|
47251
|
-
description: string()
|
|
47252
|
-
})
|
|
47253
|
-
});
|
|
47254
|
-
const SaveLocationPipelabCloudValidator = object({
|
|
47255
|
-
id: string(),
|
|
47256
|
-
project: string(),
|
|
47257
|
-
type: literal("pipelab-cloud")
|
|
47258
|
-
});
|
|
47259
|
-
const SaveLocationValidator = union([
|
|
47260
|
-
SaveLocationExternalValidator,
|
|
47261
|
-
SaveLocationInternalValidator,
|
|
47262
|
-
SaveLocationPipelabCloudValidator
|
|
47263
|
-
]);
|
|
47264
|
-
//#endregion
|
|
47265
47359
|
//#region ../../packages/shared/src/subscription-errors.ts
|
|
47266
47360
|
var SubscriptionRequiredError = class extends Error {
|
|
47267
47361
|
code = "SUBSCRIPTION_REQUIRED";
|
|
@@ -64461,20 +64555,6 @@ object({
|
|
|
64461
64555
|
projects: array(FileRepoProjectValidatorV2$1),
|
|
64462
64556
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
64463
64557
|
});
|
|
64464
|
-
object({
|
|
64465
|
-
version: literal("1.0.0"),
|
|
64466
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
64467
|
-
});
|
|
64468
|
-
const FileRepoProjectValidatorV2 = object({
|
|
64469
|
-
id: string(),
|
|
64470
|
-
name: string(),
|
|
64471
|
-
description: string()
|
|
64472
|
-
});
|
|
64473
|
-
object({
|
|
64474
|
-
version: literal("2.0.0"),
|
|
64475
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
64476
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
64477
|
-
});
|
|
64478
64558
|
//#endregion
|
|
64479
64559
|
//#region ../../packages/shared/src/index.ts
|
|
64480
64560
|
const appSettingsMigrator = appSettingsMigrator$1;
|
|
@@ -64484,6 +64564,8 @@ const defaultFileRepo = defaultFileRepo$1;
|
|
|
64484
64564
|
const savedFileMigrator = savedFileMigrator$1;
|
|
64485
64565
|
const configRegistry = configRegistry$1;
|
|
64486
64566
|
const normalizePipelineConfig = normalizePipelineConfig$1;
|
|
64567
|
+
const connectionsMigrator = connectionsMigrator$1;
|
|
64568
|
+
const defaultConnections = defaultConnections$1;
|
|
64487
64569
|
//#endregion
|
|
64488
64570
|
//#region src/pipelab.ts
|
|
64489
64571
|
const createActionRunner = (runner) => runner;
|
|
@@ -64509,23 +64591,6 @@ const fileExists = async (path) => {
|
|
|
64509
64591
|
}
|
|
64510
64592
|
};
|
|
64511
64593
|
//#endregion
|
|
64512
|
-
//#region src/fs-utils.ts
|
|
64513
|
-
const ensure = async (filesPath, defaultContent = "{}") => {
|
|
64514
|
-
await (0, node_fs_promises.mkdir)((0, node_path.dirname)(filesPath), { recursive: true });
|
|
64515
|
-
try {
|
|
64516
|
-
await (0, node_fs_promises.access)(filesPath);
|
|
64517
|
-
} catch {
|
|
64518
|
-
await (0, node_fs_promises.writeFile)(filesPath, defaultContent);
|
|
64519
|
-
}
|
|
64520
|
-
};
|
|
64521
|
-
const generateTempFolder = async (base) => {
|
|
64522
|
-
const targetBase = base || (0, node_os.tmpdir)();
|
|
64523
|
-
await (0, node_fs_promises.mkdir)(targetBase, { recursive: true });
|
|
64524
|
-
const realPath = await (0, node_fs_promises.realpath)(targetBase);
|
|
64525
|
-
console.log("join", (0, node_path.join)(realPath, "pipelab-"));
|
|
64526
|
-
return await (0, node_fs_promises.mkdtemp)((0, node_path.join)(realPath, "pipelab-"));
|
|
64527
|
-
};
|
|
64528
|
-
//#endregion
|
|
64529
64594
|
//#region src/archive-utils.ts
|
|
64530
64595
|
/**
|
|
64531
64596
|
* Extracts a .tar.gz archive.
|
|
@@ -64649,8 +64714,15 @@ exports.AppSettingsValidatorV6 = AppSettingsValidatorV6;
|
|
|
64649
64714
|
exports.AppSettingsValidatorV7 = AppSettingsValidatorV7;
|
|
64650
64715
|
exports.AppSettingsValidatorV8 = AppSettingsValidatorV8;
|
|
64651
64716
|
exports.BenefitNotFoundError = BenefitNotFoundError;
|
|
64717
|
+
exports.ConnectionValidator = ConnectionValidator;
|
|
64718
|
+
exports.ConnectionsValidator = ConnectionsValidator;
|
|
64719
|
+
exports.ConnectionsValidatorV1 = ConnectionsValidatorV1;
|
|
64652
64720
|
exports.EditorParamValidatorV3 = EditorParamValidatorV3;
|
|
64653
64721
|
exports.ExternalCommandError = ExternalCommandError;
|
|
64722
|
+
exports.FileRepoProjectValidatorV2 = FileRepoProjectValidatorV2;
|
|
64723
|
+
exports.FileRepoValidator = FileRepoValidator;
|
|
64724
|
+
exports.FileRepoValidatorV1 = FileRepoValidatorV1;
|
|
64725
|
+
exports.FileRepoValidatorV2 = FileRepoValidatorV2;
|
|
64654
64726
|
exports.OriginValidator = OriginValidator;
|
|
64655
64727
|
exports.PipelabContext = _pipelab_core_node.PipelabContext;
|
|
64656
64728
|
exports.RELEASE_SYNC = src_default;
|
|
@@ -64679,6 +64751,7 @@ exports.WebSocketTimeoutError = WebSocketTimeoutError;
|
|
|
64679
64751
|
exports.__toCommonJS = __toCommonJS;
|
|
64680
64752
|
exports.appSettingsMigrator = appSettingsMigrator;
|
|
64681
64753
|
exports.configRegistry = configRegistry;
|
|
64754
|
+
exports.connectionsMigrator = connectionsMigrator;
|
|
64682
64755
|
exports.createAction = createAction;
|
|
64683
64756
|
exports.createActionRunner = createActionRunner;
|
|
64684
64757
|
exports.createArray = createArray;
|
|
@@ -64708,6 +64781,7 @@ Object.defineProperty(exports, "de_DE", {
|
|
|
64708
64781
|
}
|
|
64709
64782
|
});
|
|
64710
64783
|
exports.defaultAppSettings = defaultAppSettings;
|
|
64784
|
+
exports.defaultConnections = defaultConnections;
|
|
64711
64785
|
exports.defaultFileRepo = defaultFileRepo;
|
|
64712
64786
|
exports.detectRuntime = detectRuntime;
|
|
64713
64787
|
Object.defineProperty(exports, "downloadFile", {
|
|
@@ -64722,7 +64796,12 @@ Object.defineProperty(exports, "en_US", {
|
|
|
64722
64796
|
return en_US_default;
|
|
64723
64797
|
}
|
|
64724
64798
|
});
|
|
64725
|
-
exports
|
|
64799
|
+
Object.defineProperty(exports, "ensure", {
|
|
64800
|
+
enumerable: true,
|
|
64801
|
+
get: function() {
|
|
64802
|
+
return _pipelab_core_node.ensure;
|
|
64803
|
+
}
|
|
64804
|
+
});
|
|
64726
64805
|
Object.defineProperty(exports, "es_ES", {
|
|
64727
64806
|
enumerable: true,
|
|
64728
64807
|
get: function() {
|
|
@@ -64765,7 +64844,6 @@ Object.defineProperty(exports, "fr_FR", {
|
|
|
64765
64844
|
return fr_FR_default;
|
|
64766
64845
|
}
|
|
64767
64846
|
});
|
|
64768
|
-
exports.generateTempFolder = generateTempFolder;
|
|
64769
64847
|
exports.getSubscriptionErrorMessage = getSubscriptionErrorMessage;
|
|
64770
64848
|
exports.isRenderer = isRenderer;
|
|
64771
64849
|
exports.isRequired = isRequired;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionRunner, ActionRunnerData, DownloadHooks as Hooks, EventRunner, ExpressionRunner, PipelabContext, Runner, RunnerCallbackFnArgument, downloadFile, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, runPnpm, runWithLiveLogs } from "@pipelab/core-node";
|
|
1
|
+
import { ActionRunner, ActionRunnerData, DownloadHooks as Hooks, EventRunner, ExpressionRunner, PipelabContext, Runner, RunnerCallbackFnArgument, downloadFile, ensure, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, runPnpm, runWithLiveLogs } from "@pipelab/core-node";
|
|
2
2
|
import { z as schema } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/pipelab.d.ts
|
|
@@ -47,10 +47,6 @@ declare const createPlugin: (plugin: Plugin) => Plugin;
|
|
|
47
47
|
//#region src/utils.d.ts
|
|
48
48
|
declare const fileExists: (path: string) => Promise<boolean>;
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region src/fs-utils.d.ts
|
|
51
|
-
declare const ensure: (filesPath: string, defaultContent?: string) => Promise<void>;
|
|
52
|
-
declare const generateTempFolder: (base?: string) => Promise<string>;
|
|
53
|
-
//#endregion
|
|
54
50
|
//#region src/archive-utils.d.ts
|
|
55
51
|
/**
|
|
56
52
|
* Extracts a .tar.gz archive.
|
|
@@ -85,5 +81,5 @@ declare const detectRuntime: (appFolder: string | undefined) => Promise<OutputRu
|
|
|
85
81
|
//#region src/index.d.ts
|
|
86
82
|
type NoData = { [index in string]?: unknown };
|
|
87
83
|
//#endregion
|
|
88
|
-
export { type ActionRunner, type ActionRunnerData, type EventRunner, type ExpressionRunner, ExternalCommandError, type Hooks, NoData, OutputRuntimes, PipelabContext, Plugin, type Runner, type RunnerCallbackFnArgument, createActionRunner, createEventRunner, createExpressionRunner, createPlugin, detectRuntime, downloadFile, ensure, extractTarGz, extractZip, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, fileExists,
|
|
84
|
+
export { type ActionRunner, type ActionRunnerData, type EventRunner, type ExpressionRunner, ExternalCommandError, type Hooks, NoData, OutputRuntimes, PipelabContext, Plugin, type Runner, type RunnerCallbackFnArgument, createActionRunner, createEventRunner, createExpressionRunner, createPlugin, detectRuntime, downloadFile, ensure, extractTarGz, extractZip, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, fileExists, runPnpm, runWithLiveLogs, schema, sleep, zipFolder };
|
|
89
85
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/pipelab.ts","../src/create-plugin.ts","../src/utils.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/pipelab.ts","../src/create-plugin.ts","../src/utils.ts","../src/archive-utils.ts","../src/custom-errors.ts","../src/node-utils.ts","../src/index.ts"],"mappings":";;;;cAiCa,kBAAA,kBAAqC,MAAA,EAChD,MAAA,GAAS,IAAA,EAAM,gBAAA,CAAiB,MAAA,MAAY,OAAA,YAAa,IAAA,EAA1C,gBAAA,CAAiB,MAAA,MAAY,OAAA;AAAA,cAGjC,sBAAA,sBAA6C,UAAA,EACxD,MAAA,GAAS,IAAA;EACP,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,SAAA,EAAW,qBAAA,CAAsB,UAAA;EACjC,MAAA,EAAQ,2BAAA,CAA4B,UAAA;EACpC,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,UAAA,aAAuB,UAAA;EAClD,IAAA,EAAM,UAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA,cAAe,IAAA;EAPnB,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,SAAA,EAAW,qBAAA,CAAsB,UAAA;EACjC,MAAA,EAAQ,2BAAA,CAA4B,UAAA;EACpC,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,UAAA,aAAuB,UAAA;EAClD,IAAA,EAAM,UAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA;AAAA,cAGK,iBAAA,iBAAmC,KAAA,EAC9C,MAAA,GAAS,IAAA;EACP,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,MAAA,EAAQ,sBAAA,CAAuB,KAAA;EAC/B,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,KAAA,aAAkB,KAAA;EAC7C,IAAA,EAAM,KAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA,YAAa,IAAA;EANjB,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,MAAA,EAAQ,sBAAA,CAAuB,KAAA;EAC/B,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,KAAA,aAAkB,KAAA;EAC7C,IAAA,EAAM,KAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA;AAAA,cAGK,KAAA,GAAS,QAAA,aAAgB,OAAA;;;KC5D1B,MAAA;EACV,KAAA,EAAO,MAAA;EACP,OAAA,QAAe,OAAA;AAAA;AAAA,cAGJ,YAAA,GAAgB,MAAA,EAAQ,MAAA,KAAM,MAAA;;;cCY9B,UAAA,GAAoB,IAAA,aAAe,OAAA;;;;;;;AFgBhD;;iBGnBsB,YAAA,CAAa,WAAA,UAAqB,cAAA,WAAyB,OAAA;;;;;;;iBAoB3D,UAAA,CAAW,WAAA,UAAqB,cAAA,WAAyB,OAAA;AAAA,cAuDlE,SAAA,GAAmB,IAAA,UAAc,EAAA,UAAY,GAAA,SAAY,OAAA,CAAQ,GAAA,KAAG,OAAA;;;cCzFpE,oBAAA,SAA6B,KAAA;EACxC,IAAA;cAEY,OAAA,UAAiB,IAAA;AAAA;;;KCAnB,cAAA;;;;AL8BZ;cKfa,aAAA,GACX,SAAA,yBACC,OAAA,CAAQ,cAAA;;;KCXC,MAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionRunner, ActionRunnerData, DownloadHooks as Hooks, EventRunner, ExpressionRunner, PipelabContext, Runner, RunnerCallbackFnArgument, downloadFile, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, runPnpm, runWithLiveLogs } from "@pipelab/core-node";
|
|
1
|
+
import { ActionRunner, ActionRunnerData, DownloadHooks as Hooks, EventRunner, ExpressionRunner, PipelabContext, Runner, RunnerCallbackFnArgument, downloadFile, ensure, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, runPnpm, runWithLiveLogs } from "@pipelab/core-node";
|
|
2
2
|
import { z as schema } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/pipelab.d.ts
|
|
@@ -47,10 +47,6 @@ declare const createPlugin: (plugin: Plugin) => Plugin;
|
|
|
47
47
|
//#region src/utils.d.ts
|
|
48
48
|
declare const fileExists: (path: string) => Promise<boolean>;
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region src/fs-utils.d.ts
|
|
51
|
-
declare const ensure: (filesPath: string, defaultContent?: string) => Promise<void>;
|
|
52
|
-
declare const generateTempFolder: (base?: string) => Promise<string>;
|
|
53
|
-
//#endregion
|
|
54
50
|
//#region src/archive-utils.d.ts
|
|
55
51
|
/**
|
|
56
52
|
* Extracts a .tar.gz archive.
|
|
@@ -85,5 +81,5 @@ declare const detectRuntime: (appFolder: string | undefined) => Promise<OutputRu
|
|
|
85
81
|
//#region src/index.d.ts
|
|
86
82
|
type NoData = { [index in string]?: unknown };
|
|
87
83
|
//#endregion
|
|
88
|
-
export { type ActionRunner, type ActionRunnerData, type EventRunner, type ExpressionRunner, ExternalCommandError, type Hooks, NoData, OutputRuntimes, PipelabContext, Plugin, type Runner, type RunnerCallbackFnArgument, createActionRunner, createEventRunner, createExpressionRunner, createPlugin, detectRuntime, downloadFile, ensure, extractTarGz, extractZip, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, fileExists,
|
|
84
|
+
export { type ActionRunner, type ActionRunnerData, type EventRunner, type ExpressionRunner, ExternalCommandError, type Hooks, NoData, OutputRuntimes, PipelabContext, Plugin, type Runner, type RunnerCallbackFnArgument, createActionRunner, createEventRunner, createExpressionRunner, createPlugin, detectRuntime, downloadFile, ensure, extractTarGz, extractZip, fetchPackage, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, fileExists, runPnpm, runWithLiveLogs, schema, sleep, zipFolder };
|
|
89
85
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/pipelab.ts","../src/create-plugin.ts","../src/utils.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/pipelab.ts","../src/create-plugin.ts","../src/utils.ts","../src/archive-utils.ts","../src/custom-errors.ts","../src/node-utils.ts","../src/index.ts"],"mappings":";;;;cAiCa,kBAAA,kBAAqC,MAAA,EAChD,MAAA,GAAS,IAAA,EAAM,gBAAA,CAAiB,MAAA,MAAY,OAAA,YAAa,IAAA,EAA1C,gBAAA,CAAiB,MAAA,MAAY,OAAA;AAAA,cAGjC,sBAAA,sBAA6C,UAAA,EACxD,MAAA,GAAS,IAAA;EACP,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,SAAA,EAAW,qBAAA,CAAsB,UAAA;EACjC,MAAA,EAAQ,2BAAA,CAA4B,UAAA;EACpC,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,UAAA,aAAuB,UAAA;EAClD,IAAA,EAAM,UAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA,cAAe,IAAA;EAPnB,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,SAAA,EAAW,qBAAA,CAAsB,UAAA;EACjC,MAAA,EAAQ,2BAAA,CAA4B,UAAA;EACpC,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,UAAA,aAAuB,UAAA;EAClD,IAAA,EAAM,UAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA;AAAA,cAGK,iBAAA,iBAAmC,KAAA,EAC9C,MAAA,GAAS,IAAA;EACP,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,MAAA,EAAQ,sBAAA,CAAuB,KAAA;EAC/B,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,KAAA,aAAkB,KAAA;EAC7C,IAAA,EAAM,KAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA,YAAa,IAAA;EANjB,GAAA,SAAY,OAAA,CAAQ,GAAA;EACpB,MAAA,EAAQ,sBAAA,CAAuB,KAAA;EAC/B,OAAA,GAAU,QAAA,GAAW,IAAA,EAAM,KAAA,aAAkB,KAAA;EAC7C,IAAA,EAAM,KAAA;EACN,GAAA;EACA,OAAA,EAAS,cAAA;AAAA,MACL,OAAA;AAAA,cAGK,KAAA,GAAS,QAAA,aAAgB,OAAA;;;KC5D1B,MAAA;EACV,KAAA,EAAO,MAAA;EACP,OAAA,QAAe,OAAA;AAAA;AAAA,cAGJ,YAAA,GAAgB,MAAA,EAAQ,MAAA,KAAM,MAAA;;;cCY9B,UAAA,GAAoB,IAAA,aAAe,OAAA;;;;;;;AFgBhD;;iBGnBsB,YAAA,CAAa,WAAA,UAAqB,cAAA,WAAyB,OAAA;;;;;;;iBAoB3D,UAAA,CAAW,WAAA,UAAqB,cAAA,WAAyB,OAAA;AAAA,cAuDlE,SAAA,GAAmB,IAAA,UAAc,EAAA,UAAY,GAAA,SAAY,OAAA,CAAQ,GAAA,KAAG,OAAA;;;cCzFpE,oBAAA,SAA6B,KAAA;EACxC,IAAA;cAEY,OAAA,UAAiB,IAAA;AAAA;;;KCAnB,cAAA;;;;AL8BZ;cKfa,aAAA,GACX,SAAA,yBACC,OAAA,CAAQ,cAAA;;;KCXC,MAAA"}
|