@pipelab/plugin-poki 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 +465 -508
- package/dist/index.mjs +57 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2093,7 +2093,7 @@ const settingsMigratorInternal = createMigrator();
|
|
|
2093
2093
|
const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
2094
2094
|
locale: "en-US",
|
|
2095
2095
|
theme: "light",
|
|
2096
|
-
version: "
|
|
2096
|
+
version: "7.0.0",
|
|
2097
2097
|
autosave: true,
|
|
2098
2098
|
agents: [],
|
|
2099
2099
|
tours: {
|
|
@@ -2106,11 +2106,6 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
|
|
|
2106
2106
|
completed: false
|
|
2107
2107
|
}
|
|
2108
2108
|
},
|
|
2109
|
-
buildHistory: { retentionPolicy: {
|
|
2110
|
-
enabled: false,
|
|
2111
|
-
maxEntries: 50,
|
|
2112
|
-
maxAge: 30
|
|
2113
|
-
} },
|
|
2114
2109
|
plugins: DEFAULT_PLUGINS,
|
|
2115
2110
|
isInternalMigrationBannerClosed: false
|
|
2116
2111
|
});
|
|
@@ -2167,18 +2162,13 @@ settingsMigratorInternal.createMigrations({
|
|
|
2167
2162
|
return {
|
|
2168
2163
|
...rest,
|
|
2169
2164
|
agents: [],
|
|
2170
|
-
buildHistory: { retentionPolicy: {
|
|
2171
|
-
enabled: false,
|
|
2172
|
-
maxEntries: 50,
|
|
2173
|
-
maxAge: 30
|
|
2174
|
-
} },
|
|
2175
2165
|
plugins: DEFAULT_PLUGINS,
|
|
2176
2166
|
isInternalMigrationBannerClosed: false
|
|
2177
2167
|
};
|
|
2178
2168
|
}
|
|
2179
2169
|
}),
|
|
2180
2170
|
createMigration({
|
|
2181
|
-
version: "
|
|
2171
|
+
version: "7.0.0",
|
|
2182
2172
|
up: finalVersion
|
|
2183
2173
|
})
|
|
2184
2174
|
]
|
|
@@ -2197,7 +2187,7 @@ connectionsMigratorInternal.createMigrations({
|
|
|
2197
2187
|
});
|
|
2198
2188
|
const fileRepoMigratorInternal = createMigrator();
|
|
2199
2189
|
const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
2200
|
-
version: "
|
|
2190
|
+
version: "3.0.0",
|
|
2201
2191
|
projects: [{
|
|
2202
2192
|
id: "main",
|
|
2203
2193
|
name: "Default project",
|
|
@@ -2207,30 +2197,39 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
|
|
|
2207
2197
|
});
|
|
2208
2198
|
fileRepoMigratorInternal.createMigrations({
|
|
2209
2199
|
defaultValue: defaultFileRepo,
|
|
2210
|
-
migrations: [
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2200
|
+
migrations: [
|
|
2201
|
+
createMigration({
|
|
2202
|
+
version: "1.0.0",
|
|
2203
|
+
up: (state) => {
|
|
2204
|
+
const pipelines = Object.entries(state.data || {}).map(([id, file]) => {
|
|
2205
|
+
return {
|
|
2206
|
+
...file,
|
|
2207
|
+
id,
|
|
2208
|
+
project: "main"
|
|
2209
|
+
};
|
|
2210
|
+
});
|
|
2214
2211
|
return {
|
|
2215
|
-
...
|
|
2216
|
-
|
|
2217
|
-
|
|
2212
|
+
...state,
|
|
2213
|
+
projects: [{
|
|
2214
|
+
id: "main",
|
|
2215
|
+
name: "Default project",
|
|
2216
|
+
description: "The initial default project"
|
|
2217
|
+
}],
|
|
2218
|
+
pipelines
|
|
2218
2219
|
};
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
up: finalVersion
|
|
2233
|
-
})]
|
|
2220
|
+
}
|
|
2221
|
+
}),
|
|
2222
|
+
createMigration({
|
|
2223
|
+
version: "2.0.0",
|
|
2224
|
+
up: (state) => {
|
|
2225
|
+
return { ...state };
|
|
2226
|
+
}
|
|
2227
|
+
}),
|
|
2228
|
+
createMigration({
|
|
2229
|
+
version: "3.0.0",
|
|
2230
|
+
up: finalVersion
|
|
2231
|
+
})
|
|
2232
|
+
]
|
|
2234
2233
|
});
|
|
2235
2234
|
const savedFileMigratorInternal = createMigrator();
|
|
2236
2235
|
const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
|
|
@@ -2391,14 +2390,19 @@ object({
|
|
|
2391
2390
|
version: literal("1.0.0"),
|
|
2392
2391
|
data: optional(record(string(), SaveLocationValidator), {})
|
|
2393
2392
|
});
|
|
2394
|
-
const FileRepoProjectValidatorV2
|
|
2393
|
+
const FileRepoProjectValidatorV2 = object({
|
|
2395
2394
|
id: string(),
|
|
2396
2395
|
name: string(),
|
|
2397
2396
|
description: string()
|
|
2398
2397
|
});
|
|
2399
2398
|
object({
|
|
2400
2399
|
version: literal("2.0.0"),
|
|
2401
|
-
projects: array(FileRepoProjectValidatorV2
|
|
2400
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2401
|
+
pipelines: optional(array(SaveLocationValidator), [])
|
|
2402
|
+
});
|
|
2403
|
+
object({
|
|
2404
|
+
version: literal("3.0.0"),
|
|
2405
|
+
projects: array(FileRepoProjectValidatorV2),
|
|
2402
2406
|
pipelines: optional(array(SaveLocationValidator), [])
|
|
2403
2407
|
});
|
|
2404
2408
|
object({
|
|
@@ -2507,44 +2511,6 @@ object({
|
|
|
2507
2511
|
name: string(),
|
|
2508
2512
|
url: string()
|
|
2509
2513
|
})),
|
|
2510
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2511
|
-
enabled: boolean(),
|
|
2512
|
-
maxEntries: number(),
|
|
2513
|
-
maxAge: number()
|
|
2514
|
-
}) })
|
|
2515
|
-
});
|
|
2516
|
-
object({
|
|
2517
|
-
theme: union([literal("light"), literal("dark")]),
|
|
2518
|
-
version: literal("8.0.0"),
|
|
2519
|
-
locale: union([
|
|
2520
|
-
literal("en-US"),
|
|
2521
|
-
literal("fr-FR"),
|
|
2522
|
-
literal("pt-BR"),
|
|
2523
|
-
literal("zh-CN"),
|
|
2524
|
-
literal("es-ES"),
|
|
2525
|
-
literal("de-DE")
|
|
2526
|
-
]),
|
|
2527
|
-
tours: object({
|
|
2528
|
-
dashboard: object({
|
|
2529
|
-
step: number(),
|
|
2530
|
-
completed: boolean()
|
|
2531
|
-
}),
|
|
2532
|
-
editor: object({
|
|
2533
|
-
step: number(),
|
|
2534
|
-
completed: boolean()
|
|
2535
|
-
})
|
|
2536
|
-
}),
|
|
2537
|
-
autosave: boolean(),
|
|
2538
|
-
agents: array(object({
|
|
2539
|
-
id: string(),
|
|
2540
|
-
name: string(),
|
|
2541
|
-
url: string()
|
|
2542
|
-
})),
|
|
2543
|
-
buildHistory: object({ retentionPolicy: object({
|
|
2544
|
-
enabled: boolean(),
|
|
2545
|
-
maxEntries: number(),
|
|
2546
|
-
maxAge: number()
|
|
2547
|
-
}) }),
|
|
2548
2514
|
plugins: array(object({
|
|
2549
2515
|
name: string(),
|
|
2550
2516
|
enabled: boolean(),
|
|
@@ -45408,20 +45374,6 @@ var WebSocketError = class extends Error {
|
|
|
45408
45374
|
const isWebSocketRequestMessage = (message) => {
|
|
45409
45375
|
return message && typeof message.channel === "string" && message.requestId;
|
|
45410
45376
|
};
|
|
45411
|
-
object({
|
|
45412
|
-
version: literal("1.0.0"),
|
|
45413
|
-
data: optional(record(string(), SaveLocationValidator), {})
|
|
45414
|
-
});
|
|
45415
|
-
const FileRepoProjectValidatorV2 = object({
|
|
45416
|
-
id: string(),
|
|
45417
|
-
name: string(),
|
|
45418
|
-
description: string()
|
|
45419
|
-
});
|
|
45420
|
-
object({
|
|
45421
|
-
version: literal("2.0.0"),
|
|
45422
|
-
projects: array(FileRepoProjectValidatorV2),
|
|
45423
|
-
pipelines: optional(array(SaveLocationValidator), [])
|
|
45424
|
-
});
|
|
45425
45377
|
//#endregion
|
|
45426
45378
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
45427
45379
|
var getFilename, getDirname, __dirname;
|
|
@@ -45453,6 +45405,11 @@ function findProjectRoot(startDir) {
|
|
|
45453
45405
|
return null;
|
|
45454
45406
|
}
|
|
45455
45407
|
const projectRoot = findProjectRoot(_dirname);
|
|
45408
|
+
const CacheFolder = {
|
|
45409
|
+
Actions: "actions",
|
|
45410
|
+
Pipelines: "pipelines",
|
|
45411
|
+
Pacote: "pacote"
|
|
45412
|
+
};
|
|
45456
45413
|
//#endregion
|
|
45457
45414
|
//#region ../../packages/core-node/node_modules/ws/lib/constants.js
|
|
45458
45415
|
var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -151224,7 +151181,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151224
151181
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151225
151182
|
} else throw new Error(`Offline and no local fallback version available for ${packageName}`);
|
|
151226
151183
|
} else try {
|
|
151227
|
-
const cachePath =
|
|
151184
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151228
151185
|
let packumentPromise = packumentRequests.get(packageName);
|
|
151229
151186
|
if (!packumentPromise) {
|
|
151230
151187
|
packumentPromise = import_lib.default.packument(packageName, { cache: cachePath });
|
|
@@ -151255,7 +151212,7 @@ async function fetchPackage(packageName, versionOrRange, options) {
|
|
|
151255
151212
|
console.log(`[Fetcher] ${packageName}: Resolved to local fallback ${resolvedVersion} (${Date.now() - fallbackStart}ms)`);
|
|
151256
151213
|
} else throw error;
|
|
151257
151214
|
}
|
|
151258
|
-
const cachePath =
|
|
151215
|
+
const cachePath = ctx.getCachePath(CacheFolder.Pacote);
|
|
151259
151216
|
const packageDir = join(baseDir, resolvedVersion);
|
|
151260
151217
|
const checkStart = Date.now();
|
|
151261
151218
|
const isInstalled = options?.installDeps ? isPackageComplete(packageDir) && isDependenciesInstalledSync(packageDir) : isPackageComplete(packageDir);
|
|
@@ -151332,7 +151289,7 @@ async function runPnpm(cwd, options) {
|
|
|
151332
151289
|
...process.env,
|
|
151333
151290
|
NODE_ENV: "production",
|
|
151334
151291
|
PATH: nodePath ? `${dirname(nodePath)}${delimiter}${process.env.PATH}` : process.env.PATH,
|
|
151335
|
-
PNPM_HOME:
|
|
151292
|
+
PNPM_HOME: ctx.getPnpmPath(),
|
|
151336
151293
|
PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: "false",
|
|
151337
151294
|
...extraEnv
|
|
151338
151295
|
}
|
|
@@ -151589,15 +151546,15 @@ var src_default = createNodeDefinition({
|
|
|
151589
151546
|
nodes: [{
|
|
151590
151547
|
node: createAction({
|
|
151591
151548
|
id: "poki-upload",
|
|
151592
|
-
name: "Upload to Poki
|
|
151593
|
-
description: "",
|
|
151549
|
+
name: "Upload to Poki",
|
|
151550
|
+
description: "Upload and publish your build to the Poki Developer Portal.",
|
|
151594
151551
|
icon: "",
|
|
151595
|
-
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to ${fmt.param(params['project'], 'primary', 'No project')}
|
|
151552
|
+
displayString: "`Upload ${fmt.param(params['input-folder'], 'primary', 'No path selected')} to Poki game ID ${fmt.param(params['project'], 'primary', 'No project')} (${fmt.param(params['name'], 'primary', 'No version name')})`",
|
|
151596
151553
|
meta: {},
|
|
151597
151554
|
params: {
|
|
151598
151555
|
"input-folder": createPathParam("", {
|
|
151599
151556
|
required: true,
|
|
151600
|
-
label: "Folder to
|
|
151557
|
+
label: "Folder to upload",
|
|
151601
151558
|
control: {
|
|
151602
151559
|
type: "path",
|
|
151603
151560
|
options: { properties: ["openDirectory"] }
|
|
@@ -151605,18 +151562,18 @@ var src_default = createNodeDefinition({
|
|
|
151605
151562
|
}),
|
|
151606
151563
|
project: createStringParam("", {
|
|
151607
151564
|
required: true,
|
|
151608
|
-
label: "
|
|
151609
|
-
description: "
|
|
151565
|
+
label: "Poki Game ID",
|
|
151566
|
+
description: "Your unique Poki game ID."
|
|
151610
151567
|
}),
|
|
151611
151568
|
name: createStringParam("", {
|
|
151612
151569
|
required: true,
|
|
151613
151570
|
label: "Version name",
|
|
151614
|
-
description: "
|
|
151571
|
+
description: "The version label for this build."
|
|
151615
151572
|
}),
|
|
151616
151573
|
notes: createStringParam("", {
|
|
151617
151574
|
required: true,
|
|
151618
151575
|
label: "Version notes",
|
|
151619
|
-
description: "
|
|
151576
|
+
description: "Release notes describing the changes in this version."
|
|
151620
151577
|
})
|
|
151621
151578
|
},
|
|
151622
151579
|
outputs: {}
|