@pipelab/plugin-nvpatch 1.0.0-beta.18 → 1.0.0-beta.19
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 +447 -495
- package/dist/index.mjs +43 -91
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -9616,7 +9616,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
9616
9616
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
9617
9617
|
locale: "en-US",
|
|
9618
9618
|
theme: "light",
|
|
9619
|
-
version: "
|
|
9619
|
+
version: "7.0.0",
|
|
9620
9620
|
autosave: true,
|
|
9621
9621
|
agents: [],
|
|
9622
9622
|
tours: {
|
|
@@ -9629,11 +9629,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
9629
9629
|
completed: false
|
|
9630
9630
|
}
|
|
9631
9631
|
},
|
|
9632
|
-
buildHistory: { retentionPolicy: {
|
|
9633
|
-
enabled: false,
|
|
9634
|
-
maxEntries: 50,
|
|
9635
|
-
maxAge: 30
|
|
9636
|
-
} },
|
|
9637
9632
|
plugins: DEFAULT_PLUGINS,
|
|
9638
9633
|
isInternalMigrationBannerClosed: false
|
|
9639
9634
|
});
|
|
@@ -9690,18 +9685,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
9690
9685
|
return {
|
|
9691
9686
|
...rest,
|
|
9692
9687
|
agents: [],
|
|
9693
|
-
buildHistory: { retentionPolicy: {
|
|
9694
|
-
enabled: false,
|
|
9695
|
-
maxEntries: 50,
|
|
9696
|
-
maxAge: 30
|
|
9697
|
-
} },
|
|
9698
9688
|
plugins: DEFAULT_PLUGINS,
|
|
9699
9689
|
isInternalMigrationBannerClosed: false
|
|
9700
9690
|
};
|
|
9701
9691
|
}
|
|
9702
9692
|
}),
|
|
9703
9693
|
createMigration({
|
|
9704
|
-
version: "
|
|
9694
|
+
version: "7.0.0",
|
|
9705
9695
|
up: finalVersion
|
|
9706
9696
|
})
|
|
9707
9697
|
]
|
|
@@ -9720,7 +9710,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
9720
9710
|
});
|
|
9721
9711
|
const fileRepoMigratorInternal = createMigrator();
|
|
9722
9712
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
9723
|
-
version: "
|
|
9713
|
+
version: "3.0.0",
|
|
9724
9714
|
projects: [{
|
|
9725
9715
|
id: "main",
|
|
9726
9716
|
name: "Default project",
|
|
@@ -9730,30 +9720,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
9730
9720
|
});
|
|
9731
9721
|
fileRepoMigratorInternal.createMigrations({
|
|
9732
9722
|
defaultValue: defaultFileRepo,
|
|
9733
|
-
migrations: [
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9723
|
+
migrations: [
|
|
9724
|
+
createMigration({
|
|
9725
|
+
version: "1.0.0",
|
|
9726
|
+
up: (state) => {
|
|
9727
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
9728
|
+
return {
|
|
9729
|
+
...file,
|
|
9730
|
+
id,
|
|
9731
|
+
project: "main"
|
|
9732
|
+
};
|
|
9733
|
+
});
|
|
9737
9734
|
return {
|
|
9738
|
-
...
|
|
9739
|
-
|
|
9740
|
-
|
|
9735
|
+
...state,
|
|
9736
|
+
projects: [{
|
|
9737
|
+
id: "main",
|
|
9738
|
+
name: "Default project",
|
|
9739
|
+
description: "The initial default project"
|
|
9740
|
+
}],
|
|
9741
|
+
pipelines
|
|
9741
9742
|
};
|
|
9742
|
-
}
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
up: finalVersion
|
|
9756
|
-
})]
|
|
9743
|
+
}
|
|
9744
|
+
}),
|
|
9745
|
+
createMigration({
|
|
9746
|
+
version: "2.0.0",
|
|
9747
|
+
up: (state) => {
|
|
9748
|
+
return { ...state };
|
|
9749
|
+
}
|
|
9750
|
+
}),
|
|
9751
|
+
createMigration({
|
|
9752
|
+
version: "3.0.0",
|
|
9753
|
+
up: finalVersion
|
|
9754
|
+
})
|
|
9755
|
+
]
|
|
9757
9756
|
});
|
|
9758
9757
|
const savedFileMigratorInternal = createMigrator();
|
|
9759
9758
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -9914,14 +9913,19 @@ object({
|
|
|
9914
9913
|
version: literal("1.0.0"),
|
|
9915
9914
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
9916
9915
|
});
|
|
9917
|
-
const FileRepoProjectValidatorV2
|
|
9916
|
+
const FileRepoProjectValidatorV2 = object({
|
|
9918
9917
|
id: string(),
|
|
9919
9918
|
name: string(),
|
|
9920
9919
|
description: string()
|
|
9921
9920
|
});
|
|
9922
9921
|
object({
|
|
9923
9922
|
version: literal("2.0.0"),
|
|
9924
|
-
projects: array(FileRepoProjectValidatorV2
|
|
9923
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
9924
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
9925
|
+
});
|
|
9926
|
+
object({
|
|
9927
|
+
version: literal("3.0.0"),
|
|
9928
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
9925
9929
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
9926
9930
|
});
|
|
9927
9931
|
object({
|
|
@@ -10030,44 +10034,6 @@ object({
|
|
|
10030
10034
|
name: string(),
|
|
10031
10035
|
url: string()
|
|
10032
10036
|
})),
|
|
10033
|
-
buildHistory: object({ retentionPolicy: object({
|
|
10034
|
-
enabled: boolean(),
|
|
10035
|
-
maxEntries: number(),
|
|
10036
|
-
maxAge: number()
|
|
10037
|
-
}) })
|
|
10038
|
-
});
|
|
10039
|
-
object({
|
|
10040
|
-
theme: union([literal("light"), literal("dark")]),
|
|
10041
|
-
version: literal("8.0.0"),
|
|
10042
|
-
locale: union([
|
|
10043
|
-
literal("en-US"),
|
|
10044
|
-
literal("fr-FR"),
|
|
10045
|
-
literal("pt-BR"),
|
|
10046
|
-
literal("zh-CN"),
|
|
10047
|
-
literal("es-ES"),
|
|
10048
|
-
literal("de-DE")
|
|
10049
|
-
]),
|
|
10050
|
-
tours: object({
|
|
10051
|
-
dashboard: object({
|
|
10052
|
-
step: number(),
|
|
10053
|
-
completed: boolean()
|
|
10054
|
-
}),
|
|
10055
|
-
editor: object({
|
|
10056
|
-
step: number(),
|
|
10057
|
-
completed: boolean()
|
|
10058
|
-
})
|
|
10059
|
-
}),
|
|
10060
|
-
autosave: boolean(),
|
|
10061
|
-
agents: array(object({
|
|
10062
|
-
id: string(),
|
|
10063
|
-
name: string(),
|
|
10064
|
-
url: string()
|
|
10065
|
-
})),
|
|
10066
|
-
buildHistory: object({ retentionPolicy: object({
|
|
10067
|
-
enabled: boolean(),
|
|
10068
|
-
maxEntries: number(),
|
|
10069
|
-
maxAge: number()
|
|
10070
|
-
}) }),
|
|
10071
10037
|
plugins: array(object({
|
|
10072
10038
|
name: string(),
|
|
10073
10039
|
enabled: boolean(),
|
|
@@ -52921,20 +52887,6 @@ var WebSocketError = class extends Error {
|
|
|
52921
52887
|
const isWebSocketRequestMessage = (message) => {
|
|
52922
52888
|
return message && typeof message.channel === "string" && message.requestId;
|
|
52923
52889
|
};
|
|
52924
|
-
object({
|
|
52925
|
-
version: literal("1.0.0"),
|
|
52926
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
52927
|
-
});
|
|
52928
|
-
const FileRepoProjectValidatorV2 = object({
|
|
52929
|
-
id: string(),
|
|
52930
|
-
name: string(),
|
|
52931
|
-
description: string()
|
|
52932
|
-
});
|
|
52933
|
-
object({
|
|
52934
|
-
version: literal("2.0.0"),
|
|
52935
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
52936
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
52937
|
-
});
|
|
52938
52890
|
//#endregion
|
|
52939
52891
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
52940
52892
|
var getFilename, getDirname, __dirname;
|
|
@@ -155205,13 +155157,13 @@ var src_default = createNodeDefinition({ nodes: [{
|
|
|
155205
155157
|
node: createAction({
|
|
155206
155158
|
id: "nvpatch",
|
|
155207
155159
|
name: "Patch binary",
|
|
155208
|
-
description: "",
|
|
155160
|
+
description: "Apply a compatibility patch to an executable binary file.",
|
|
155209
155161
|
icon: "",
|
|
155210
155162
|
displayString: "`Patch binary ${fmt.param(params['input'], 'primary')}`",
|
|
155211
155163
|
meta: {},
|
|
155212
155164
|
params: { input: createPathParam("", {
|
|
155213
155165
|
required: true,
|
|
155214
|
-
label: "
|
|
155166
|
+
label: "Binary file to patch",
|
|
155215
155167
|
control: {
|
|
155216
155168
|
type: "path",
|
|
155217
155169
|
options: { properties: ["openFile"] }
|