@uipath/function-tool 1.205.0-preview.276 → 1.206.0-preview.279
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/README.md +12 -0
- package/dist/{browser-strategy-tyy1nbjg.js → browser-strategy-bxv33ex0.js} +3 -6
- package/dist/{cliRunner-6t7v6dqr.js → cliRunner-mb829q93.js} +91 -92
- package/dist/index-6n2xsc30.js +14 -0
- package/dist/index-8h152v0c.js +10221 -0
- package/dist/{index-jhfvqtwr.js → index-dtz2wm6p.js} +247 -209
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-t90k2g7s.js +1130 -0
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{node-strategy-nmepnk2k.js → node-strategy-dhvvrt9n.js} +7 -12
- package/dist/{packager-tool-f7enb48c.js → packager-tool-cmtxbmhx.js} +1761 -706
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/{packager-tool-1shggyya.js → packager-tool-qjerhjyd.js} +78 -684
- package/dist/packager-tool.js +670 -30
- package/dist/tool.js +31 -30
- package/package.json +2 -2
- package/dist/index-at7vc5xq.js +0 -157
- package/dist/index-fs5kc7z6.js +0 -6224
- package/dist/index-q8r0mcyb.js +0 -10221
- package/dist/packager-tool-0gctz400.js +0 -17
- package/dist/packager-tool-b098y4a2.js +0 -646
- package/dist/packager-tool-qa9gftnj.js +0 -31
- package/dist/packager-tool-y4vgqz1w.js +0 -247
- package/dist/packager-tool-yc4kw997.js +0 -13
- /package/dist/{packager-tool-h7ke7taj.js → packager-tool-3bw869ja.js} +0 -0
package/README.md
CHANGED
|
@@ -219,6 +219,14 @@ has run once; there is no fallback to whatever `uipath` happens to be on your
|
|
|
219
219
|
`PATH`. The Python answer is shared with `uip codedagent` and
|
|
220
220
|
`uip context-grounding`, so running any one of their setups configures them all.
|
|
221
221
|
|
|
222
|
+
The Python half also holds a version floor. `@uipath/uipath-python-bridge`
|
|
223
|
+
declares the minimum `uipath` it supports in its `package.json`
|
|
224
|
+
(`uipath.requires.uipath`); `setup` prints it (`requires uipath>=…`) and refuses
|
|
225
|
+
to bind an older one. Every Python Functions command then asks the bound
|
|
226
|
+
executable `uipath --version` again right before running it, so a project
|
|
227
|
+
`.venv` that resolved an older `uipath` is caught even when your global install
|
|
228
|
+
is current.
|
|
229
|
+
|
|
222
230
|
## Troubleshooting
|
|
223
231
|
|
|
224
232
|
**"No Functions project detected in this directory."** You are not in a project
|
|
@@ -235,6 +243,10 @@ check.
|
|
|
235
243
|
**"Python not configured" on a Python project.** `uip function setup` has not
|
|
236
244
|
run yet, or the interpreter it found has gone. Run `uip function setup --force`.
|
|
237
245
|
|
|
246
|
+
**"uipath 2.x.y found at …; a.b.c or later is required."** The `uipath` the CLI
|
|
247
|
+
is bound to is older than this version of `uip` supports. Upgrade it in the
|
|
248
|
+
environment the message names, then run `uip function setup --force`.
|
|
249
|
+
|
|
238
250
|
## Known issues
|
|
239
251
|
|
|
240
252
|
- **`uip function new --language py` scaffolds an agent instead of a function**
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AUTH_CANCELLED_ERROR_CODE,
|
|
2
3
|
getGlobalThis
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import {
|
|
5
|
-
AUTH_CANCELLED_ERROR_CODE
|
|
6
|
-
} from "./packager-tool-yc4kw997.js";
|
|
7
|
-
import"./packager-tool-1de529jm.js";
|
|
4
|
+
} from "./packager-tool-qjerhjyd.js";
|
|
8
5
|
|
|
9
6
|
// ../auth/src/strategies/browser-strategy.ts
|
|
10
7
|
class BrowserAuthStrategy {
|
|
@@ -96,4 +93,4 @@ export {
|
|
|
96
93
|
BrowserAuthStrategy
|
|
97
94
|
};
|
|
98
95
|
|
|
99
|
-
//# debugId=
|
|
96
|
+
//# debugId=9157F95FFA1CCE8A64756E2164756E21
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__require,
|
|
3
2
|
__toESM
|
|
4
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-epsr41wx.js";
|
|
5
4
|
|
|
6
5
|
// ../../node_modules/@uipath/coded-functions-js-cli/dist/cliRunner.js
|
|
7
6
|
import { createRequire } from "node:module";
|
|
@@ -134,7 +133,7 @@ var __toESM2 = (mod, isNodeMode, target) => {
|
|
|
134
133
|
return to;
|
|
135
134
|
};
|
|
136
135
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
137
|
-
var
|
|
136
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
138
137
|
var require_error = __commonJS((exports) => {
|
|
139
138
|
|
|
140
139
|
class CommanderError extends Error {
|
|
@@ -703,11 +702,11 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
703
702
|
exports.suggestSimilar = suggestSimilar;
|
|
704
703
|
});
|
|
705
704
|
var require_command = __commonJS((exports) => {
|
|
706
|
-
var EventEmitter =
|
|
707
|
-
var childProcess4 =
|
|
708
|
-
var
|
|
709
|
-
var
|
|
710
|
-
var process22 =
|
|
705
|
+
var EventEmitter = __require("node:events").EventEmitter;
|
|
706
|
+
var childProcess4 = __require("node:child_process");
|
|
707
|
+
var path2 = __require("node:path");
|
|
708
|
+
var fs6 = __require("node:fs");
|
|
709
|
+
var process22 = __require("node:process");
|
|
711
710
|
var { Argument, humanReadableArgName } = require_argument();
|
|
712
711
|
var { CommanderError } = require_error();
|
|
713
712
|
var { Help } = require_help();
|
|
@@ -1199,12 +1198,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1199
1198
|
let launchWithNode = false;
|
|
1200
1199
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1201
1200
|
function findFile(baseDir, baseName) {
|
|
1202
|
-
const localBin =
|
|
1203
|
-
if (
|
|
1201
|
+
const localBin = path2.resolve(baseDir, baseName);
|
|
1202
|
+
if (fs6.existsSync(localBin))
|
|
1204
1203
|
return localBin;
|
|
1205
|
-
if (sourceExt.includes(
|
|
1204
|
+
if (sourceExt.includes(path2.extname(baseName)))
|
|
1206
1205
|
return;
|
|
1207
|
-
const foundExt = sourceExt.find((ext) =>
|
|
1206
|
+
const foundExt = sourceExt.find((ext) => fs6.existsSync(`${localBin}${ext}`));
|
|
1208
1207
|
if (foundExt)
|
|
1209
1208
|
return `${localBin}${foundExt}`;
|
|
1210
1209
|
return;
|
|
@@ -1216,23 +1215,23 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1216
1215
|
if (this._scriptPath) {
|
|
1217
1216
|
let resolvedScriptPath;
|
|
1218
1217
|
try {
|
|
1219
|
-
resolvedScriptPath =
|
|
1218
|
+
resolvedScriptPath = fs6.realpathSync(this._scriptPath);
|
|
1220
1219
|
} catch (err) {
|
|
1221
1220
|
resolvedScriptPath = this._scriptPath;
|
|
1222
1221
|
}
|
|
1223
|
-
executableDir =
|
|
1222
|
+
executableDir = path2.resolve(path2.dirname(resolvedScriptPath), executableDir);
|
|
1224
1223
|
}
|
|
1225
1224
|
if (executableDir) {
|
|
1226
1225
|
let localFile = findFile(executableDir, executableFile);
|
|
1227
1226
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1228
|
-
const legacyName =
|
|
1227
|
+
const legacyName = path2.basename(this._scriptPath, path2.extname(this._scriptPath));
|
|
1229
1228
|
if (legacyName !== this._name) {
|
|
1230
1229
|
localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1231
1230
|
}
|
|
1232
1231
|
}
|
|
1233
1232
|
executableFile = localFile || executableFile;
|
|
1234
1233
|
}
|
|
1235
|
-
launchWithNode = sourceExt.includes(
|
|
1234
|
+
launchWithNode = sourceExt.includes(path2.extname(executableFile));
|
|
1236
1235
|
let proc;
|
|
1237
1236
|
if (process22.platform !== "win32") {
|
|
1238
1237
|
if (launchWithNode) {
|
|
@@ -1798,13 +1797,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1798
1797
|
return this;
|
|
1799
1798
|
}
|
|
1800
1799
|
nameFromFilename(filename) {
|
|
1801
|
-
this._name =
|
|
1800
|
+
this._name = path2.basename(filename, path2.extname(filename));
|
|
1802
1801
|
return this;
|
|
1803
1802
|
}
|
|
1804
|
-
executableDir(
|
|
1805
|
-
if (
|
|
1803
|
+
executableDir(path2) {
|
|
1804
|
+
if (path2 === undefined)
|
|
1806
1805
|
return this._executableDir;
|
|
1807
|
-
this._executableDir =
|
|
1806
|
+
this._executableDir = path2;
|
|
1808
1807
|
return this;
|
|
1809
1808
|
}
|
|
1810
1809
|
helpInformation(contextOptions) {
|
|
@@ -2013,10 +2012,10 @@ function setupNode(cache) {
|
|
|
2013
2012
|
console.error(`Node.js ${version} found but v20+ is required. Please upgrade: https://nodejs.org`);
|
|
2014
2013
|
process.exit(1);
|
|
2015
2014
|
}
|
|
2016
|
-
const
|
|
2015
|
+
const path2 = execSync('node -e "process.stdout.write(process.execPath)"', {
|
|
2017
2016
|
encoding: "utf-8"
|
|
2018
2017
|
}).trim();
|
|
2019
|
-
cache.node = { path:
|
|
2018
|
+
cache.node = { path: path2, version };
|
|
2020
2019
|
console.log(`Node.js ${version} ✓`);
|
|
2021
2020
|
} catch {
|
|
2022
2021
|
console.error("Node.js not found. Install from https://nodejs.org (v20+).");
|
|
@@ -2317,17 +2316,17 @@ function sanitizeRegistryConfig(content, stripScopes) {
|
|
|
2317
2316
|
return kept.some((line) => !isComment(line.trim())) ? kept.join(`
|
|
2318
2317
|
`) : null;
|
|
2319
2318
|
}
|
|
2320
|
-
function ifsProjectFileReader(
|
|
2319
|
+
function ifsProjectFileReader(fs6, projectPath) {
|
|
2321
2320
|
return {
|
|
2322
2321
|
async fileExists(fileName) {
|
|
2323
2322
|
try {
|
|
2324
|
-
return await
|
|
2323
|
+
return await fs6.exists(fs6.path.join(projectPath, fileName));
|
|
2325
2324
|
} catch {
|
|
2326
2325
|
return false;
|
|
2327
2326
|
}
|
|
2328
2327
|
},
|
|
2329
2328
|
async readFile(fileName) {
|
|
2330
|
-
const content = await
|
|
2329
|
+
const content = await fs6.readFile(fs6.path.join(projectPath, fileName), "utf-8");
|
|
2331
2330
|
if (content === null)
|
|
2332
2331
|
throw new Error(`${fileName} not found in ${projectPath}.`);
|
|
2333
2332
|
return content;
|
|
@@ -2344,30 +2343,30 @@ var EXCLUDED_NAMES = new Set([
|
|
|
2344
2343
|
]);
|
|
2345
2344
|
var EXCLUDED_EXTENSIONS = [".nupkg"];
|
|
2346
2345
|
var SCOPES_NOT_PACKAGED = ["@uipath"];
|
|
2347
|
-
async function buildFunctionsPackage(
|
|
2346
|
+
async function buildFunctionsPackage(fs6, options) {
|
|
2348
2347
|
const { projectPath, outputPath, projectStorageId } = options;
|
|
2349
|
-
const contentPath =
|
|
2350
|
-
await
|
|
2351
|
-
await
|
|
2352
|
-
const uipathJsonRaw = await
|
|
2348
|
+
const contentPath = fs6.path.join(outputPath, "content");
|
|
2349
|
+
await fs6.mkdir(outputPath);
|
|
2350
|
+
await fs6.mkdir(contentPath);
|
|
2351
|
+
const uipathJsonRaw = await fs6.readFile(fs6.path.join(projectPath, "uipath.json"), "utf-8");
|
|
2353
2352
|
if (!uipathJsonRaw) {
|
|
2354
2353
|
throw new Error("uipath.json not found. Run 'uipath-functions init' first.");
|
|
2355
2354
|
}
|
|
2356
2355
|
const uipathJson = JSON.parse(uipathJsonRaw);
|
|
2357
|
-
const entryPointsRaw = await
|
|
2356
|
+
const entryPointsRaw = await fs6.readFile(fs6.path.join(projectPath, "entry-points.json"), "utf-8");
|
|
2358
2357
|
if (!entryPointsRaw) {
|
|
2359
2358
|
throw new Error("entry-points.json not found. Run 'uipath-functions pack' to generate it.");
|
|
2360
2359
|
}
|
|
2361
2360
|
const entryPoints = JSON.parse(entryPointsRaw);
|
|
2362
|
-
const bindingsRaw = await
|
|
2361
|
+
const bindingsRaw = await fs6.readFile(fs6.path.join(projectPath, "bindings_v2.json"), "utf-8");
|
|
2363
2362
|
if (!bindingsRaw) {
|
|
2364
2363
|
throw new Error("bindings_v2.json not found. Run 'uipath-functions pack' to generate it.");
|
|
2365
2364
|
}
|
|
2366
2365
|
const bindings = JSON.parse(bindingsRaw);
|
|
2367
|
-
const packageJsonRaw = await
|
|
2366
|
+
const packageJsonRaw = await fs6.readFile(fs6.path.join(projectPath, "package.json"), "utf-8");
|
|
2368
2367
|
const packageDependencies = packageJsonRaw ? JSON.parse(packageJsonRaw).dependencies ?? {} : {};
|
|
2369
2368
|
const targetRuntime = detectRuntime(uipathJson.functions);
|
|
2370
|
-
const detection = detectPackageManager(await probeLockFiles(ifsProjectFileReader(
|
|
2369
|
+
const detection = detectPackageManager(await probeLockFiles(ifsProjectFileReader(fs6, projectPath)));
|
|
2371
2370
|
if (detection.kind !== "found") {
|
|
2372
2371
|
const { problem, remedyCommand } = describeDependencyProblem(detection);
|
|
2373
2372
|
throw new Error(remedyCommand !== null ? `${problem} Run '${remedyCommand}' in the project, then pack again.` : `${problem} Then pack again.`);
|
|
@@ -2376,7 +2375,7 @@ async function buildFunctionsPackage(fs7, options) {
|
|
|
2376
2375
|
if (uipathJson.packOptions?.includeLockFile === false) {
|
|
2377
2376
|
console.warn(`uipath.json packOptions.includeLockFile is ignored: ${lockFile} is always packaged.`);
|
|
2378
2377
|
}
|
|
2379
|
-
await copyProjectFiles(
|
|
2378
|
+
await copyProjectFiles(fs6, projectPath, contentPath, lockFile, uipathJson.packOptions);
|
|
2380
2379
|
const operateJson = {
|
|
2381
2380
|
$schema: "https://cloud.uipath.com/draft/2024-12/operate",
|
|
2382
2381
|
projectId: projectStorageId,
|
|
@@ -2392,9 +2391,9 @@ async function buildFunctionsPackage(fs7, options) {
|
|
|
2392
2391
|
},
|
|
2393
2392
|
dependencies: packageDependencies
|
|
2394
2393
|
};
|
|
2395
|
-
await
|
|
2396
|
-
await
|
|
2397
|
-
await
|
|
2394
|
+
await fs6.writeFile(fs6.path.join(contentPath, "operate.json"), JSON.stringify(operateJson, null, 2));
|
|
2395
|
+
await fs6.writeFile(fs6.path.join(contentPath, "entry-points.json"), JSON.stringify(entryPoints, null, 2));
|
|
2396
|
+
await fs6.writeFile(fs6.path.join(contentPath, "bindings_v2.json"), JSON.stringify(bindings, null, 2));
|
|
2398
2397
|
const packageDescriptor = {
|
|
2399
2398
|
$schema: "https://cloud.uipath.com/draft/2024-12/package-descriptor",
|
|
2400
2399
|
files: {
|
|
@@ -2408,7 +2407,7 @@ async function buildFunctionsPackage(fs7, options) {
|
|
|
2408
2407
|
const filePath = fnEntry ? fnEntry.split(":")[0] ?? ep.filePath : ep.filePath;
|
|
2409
2408
|
packageDescriptor.files[ep.filePath] = `${filePath}`;
|
|
2410
2409
|
}
|
|
2411
|
-
await
|
|
2410
|
+
await fs6.writeFile(fs6.path.join(contentPath, "package-descriptor.json"), JSON.stringify(packageDescriptor, null, 2));
|
|
2412
2411
|
}
|
|
2413
2412
|
function detectRuntime(functions) {
|
|
2414
2413
|
if (!functions)
|
|
@@ -2422,13 +2421,13 @@ function detectRuntime(functions) {
|
|
|
2422
2421
|
return "python";
|
|
2423
2422
|
return "javascript";
|
|
2424
2423
|
}
|
|
2425
|
-
async function copyProjectFiles(
|
|
2424
|
+
async function copyProjectFiles(fs6, sourcePath, destPath, lockFile, packOptions) {
|
|
2426
2425
|
const extraExcludedDirs = new Set(packOptions?.directoriesExcluded ?? []);
|
|
2427
2426
|
const extraExcludedFiles = new Set(packOptions?.filesExcluded ?? []);
|
|
2428
2427
|
const otherLockFiles = new Set(CANDIDATE_LOCK_FILES.filter((name) => name !== lockFile));
|
|
2429
2428
|
async function walk(src, dest) {
|
|
2430
|
-
await
|
|
2431
|
-
const entries = await
|
|
2429
|
+
await fs6.mkdir(dest);
|
|
2430
|
+
const entries = await fs6.readdir(src);
|
|
2432
2431
|
for (const name of entries) {
|
|
2433
2432
|
if (EXCLUDED_NAMES.has(name))
|
|
2434
2433
|
continue;
|
|
@@ -2440,20 +2439,20 @@ async function copyProjectFiles(fs7, sourcePath, destPath, lockFile, packOptions
|
|
|
2440
2439
|
continue;
|
|
2441
2440
|
if (otherLockFiles.has(name))
|
|
2442
2441
|
continue;
|
|
2443
|
-
const srcEntry =
|
|
2444
|
-
const destEntry =
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2442
|
+
const srcEntry = fs6.path.join(src, name);
|
|
2443
|
+
const destEntry = fs6.path.join(dest, name);
|
|
2444
|
+
const stat = await fs6.stat(srcEntry);
|
|
2445
|
+
if (stat?.isDirectory()) {
|
|
2447
2446
|
await walk(srcEntry, destEntry);
|
|
2448
2447
|
} else if (isRegistryConfigFile(name)) {
|
|
2449
|
-
const raw = await
|
|
2448
|
+
const raw = await fs6.readFile(srcEntry, "utf-8") ?? "";
|
|
2450
2449
|
const sanitized = sanitizeRegistryConfig(raw, SCOPES_NOT_PACKAGED);
|
|
2451
2450
|
if (sanitized !== null)
|
|
2452
|
-
await
|
|
2453
|
-
} else if (
|
|
2454
|
-
const content = await
|
|
2451
|
+
await fs6.writeFile(destEntry, sanitized);
|
|
2452
|
+
} else if (stat?.isFile()) {
|
|
2453
|
+
const content = await fs6.readFile(srcEntry);
|
|
2455
2454
|
if (content)
|
|
2456
|
-
await
|
|
2455
|
+
await fs6.writeFile(destEntry, content);
|
|
2457
2456
|
}
|
|
2458
2457
|
}
|
|
2459
2458
|
}
|
|
@@ -3147,9 +3146,9 @@ function consumerCompilerOptions() {
|
|
|
3147
3146
|
noEmit: true
|
|
3148
3147
|
};
|
|
3149
3148
|
}
|
|
3150
|
-
function createProgram(
|
|
3151
|
-
const selfContained =
|
|
3152
|
-
const host = selfContained ? selfContainedHost(
|
|
3149
|
+
function createProgram(fs6, rootNames, options) {
|
|
3150
|
+
const selfContained = fs6.defaultLibFileName !== undefined;
|
|
3151
|
+
const host = selfContained ? selfContainedHost(fs6) : diskBackedHost(fs6, options);
|
|
3153
3152
|
if (!selfContained)
|
|
3154
3153
|
assertDefaultLibReachable(host, options);
|
|
3155
3154
|
const program2 = TS.createProgram(rootNames, options, host);
|
|
@@ -3163,42 +3162,42 @@ function assertDefaultLibReachable(host, options) {
|
|
|
3163
3162
|
` + `Type derivation cannot run without it — Array/Record/Date/Promise would resolve to ` + `any and produce wrong schemas.
|
|
3164
3163
|
That path comes from the 'typescript' module's own location. If it names a directory from another machine, 'typescript' was bundled into the caller: build with '--external typescript' so it resolves from node_modules at runtime. If the project sets "noLib", remove it.`);
|
|
3165
3164
|
}
|
|
3166
|
-
function diskBackedHost(
|
|
3165
|
+
function diskBackedHost(fs6, options) {
|
|
3167
3166
|
const host = TS.createCompilerHost(options, true);
|
|
3168
|
-
host.getCurrentDirectory = () =>
|
|
3167
|
+
host.getCurrentDirectory = () => fs6.currentDirectory;
|
|
3169
3168
|
const baseGetSourceFile = host.getSourceFile.bind(host);
|
|
3170
3169
|
const baseReadFile = host.readFile.bind(host);
|
|
3171
3170
|
const baseFileExists = host.fileExists.bind(host);
|
|
3172
3171
|
const baseDirectoryExists = host.directoryExists?.bind(host);
|
|
3173
3172
|
host.getSourceFile = (name, langVersion, onError, shouldCreate) => {
|
|
3174
|
-
const text =
|
|
3173
|
+
const text = fs6.readFile(name);
|
|
3175
3174
|
return text !== undefined ? TS.createSourceFile(name, text, langVersion, true) : baseGetSourceFile(name, langVersion, onError, shouldCreate);
|
|
3176
3175
|
};
|
|
3177
3176
|
host.readFile = (name) => {
|
|
3178
|
-
const text =
|
|
3177
|
+
const text = fs6.readFile(name);
|
|
3179
3178
|
return text !== undefined ? text : baseReadFile(name);
|
|
3180
3179
|
};
|
|
3181
|
-
host.fileExists = (name) =>
|
|
3182
|
-
host.directoryExists = (dir) =>
|
|
3180
|
+
host.fileExists = (name) => fs6.fileExists(name) || baseFileExists(name);
|
|
3181
|
+
host.directoryExists = (dir) => fs6.directoryExists(dir) || (baseDirectoryExists ? baseDirectoryExists(dir) : false);
|
|
3183
3182
|
return host;
|
|
3184
3183
|
}
|
|
3185
|
-
function selfContainedHost(
|
|
3184
|
+
function selfContainedHost(fs6) {
|
|
3186
3185
|
return {
|
|
3187
3186
|
getSourceFile: (name, langVersion) => {
|
|
3188
|
-
const text =
|
|
3187
|
+
const text = fs6.readFile(name);
|
|
3189
3188
|
return text !== undefined ? TS.createSourceFile(name, text, langVersion, true) : undefined;
|
|
3190
3189
|
},
|
|
3191
|
-
getDefaultLibFileName: () =>
|
|
3192
|
-
getDefaultLibLocation: () =>
|
|
3190
|
+
getDefaultLibFileName: () => fs6.defaultLibFileName,
|
|
3191
|
+
getDefaultLibLocation: () => fs6.defaultLibLocation ?? "/",
|
|
3193
3192
|
writeFile: () => {},
|
|
3194
|
-
getCurrentDirectory: () =>
|
|
3193
|
+
getCurrentDirectory: () => fs6.currentDirectory,
|
|
3195
3194
|
getCanonicalFileName: (f) => f,
|
|
3196
3195
|
useCaseSensitiveFileNames: () => true,
|
|
3197
3196
|
getNewLine: () => `
|
|
3198
3197
|
`,
|
|
3199
|
-
fileExists: (name) =>
|
|
3200
|
-
readFile: (name) =>
|
|
3201
|
-
directoryExists: (dir) =>
|
|
3198
|
+
fileExists: (name) => fs6.fileExists(name),
|
|
3199
|
+
readFile: (name) => fs6.readFile(name),
|
|
3200
|
+
directoryExists: (dir) => fs6.directoryExists(dir),
|
|
3202
3201
|
getDirectories: () => []
|
|
3203
3202
|
};
|
|
3204
3203
|
}
|
|
@@ -3651,9 +3650,9 @@ function readMetadata(obj) {
|
|
|
3651
3650
|
const method = stringProp(obj, "method");
|
|
3652
3651
|
if (method !== undefined)
|
|
3653
3652
|
meta.method = method;
|
|
3654
|
-
const
|
|
3655
|
-
if (
|
|
3656
|
-
meta.path =
|
|
3653
|
+
const path2 = stringProp(obj, "path");
|
|
3654
|
+
if (path2 !== undefined)
|
|
3655
|
+
meta.path = path2;
|
|
3657
3656
|
const description = stringProp(obj, "description");
|
|
3658
3657
|
if (description !== undefined)
|
|
3659
3658
|
meta.description = description;
|
|
@@ -4301,11 +4300,11 @@ function stripContentPrefix(p) {
|
|
|
4301
4300
|
const s = p.replace(/\\/g, "/");
|
|
4302
4301
|
return s.startsWith("content/") ? s.slice("content/".length) : s;
|
|
4303
4302
|
}
|
|
4304
|
-
function readJsonIfExists(
|
|
4305
|
-
if (!existsSync4(
|
|
4303
|
+
function readJsonIfExists(path2) {
|
|
4304
|
+
if (!existsSync4(path2))
|
|
4306
4305
|
return null;
|
|
4307
4306
|
try {
|
|
4308
|
-
return JSON.parse(readFileSync3(
|
|
4307
|
+
return JSON.parse(readFileSync3(path2, "utf-8"));
|
|
4309
4308
|
} catch {
|
|
4310
4309
|
return null;
|
|
4311
4310
|
}
|
|
@@ -4329,7 +4328,7 @@ async function reportStartupFailure(title, detail) {
|
|
|
4329
4328
|
category: DEPLOYMENT
|
|
4330
4329
|
};
|
|
4331
4330
|
try {
|
|
4332
|
-
const { ipc } = await import("./index-
|
|
4331
|
+
const { ipc } = await import("./index-8h152v0c.js").then((m)=>__toESM(m.default,1));
|
|
4333
4332
|
const proxy = ipc.proxy.withAddress(ipc.namedPipe(ipcEndpoint)).withService(IHttpFunctionServerApi);
|
|
4334
4333
|
await proxy.SignalStartupFailed(error);
|
|
4335
4334
|
await ipc.disposeChannel(ipc.namedPipe(ipcEndpoint));
|
|
@@ -4959,7 +4958,7 @@ var inflt = function(dat, st, buf, dict) {
|
|
|
4959
4958
|
buf = nbuf;
|
|
4960
4959
|
}
|
|
4961
4960
|
};
|
|
4962
|
-
var final = st.f || 0, pos = st.p || 0, bt = st.b || 0,
|
|
4961
|
+
var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, { l: lm, d: dm, m: lbt, n: dbt } = st;
|
|
4963
4962
|
var tbts = sl * 8;
|
|
4964
4963
|
do {
|
|
4965
4964
|
if (!lm) {
|
|
@@ -5220,16 +5219,16 @@ var wfblk = function(out, pos, dat) {
|
|
|
5220
5219
|
var wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
5221
5220
|
wbits(out, p++, final);
|
|
5222
5221
|
++lf[256];
|
|
5223
|
-
var _a2 = hTree(lf, 15),
|
|
5224
|
-
var _b2 = hTree(df, 15),
|
|
5225
|
-
var _c = lc(dlt),
|
|
5226
|
-
var _d = lc(ddt),
|
|
5222
|
+
var _a2 = hTree(lf, 15), { t: dlt, l: mlb } = _a2;
|
|
5223
|
+
var _b2 = hTree(df, 15), { t: ddt, l: mdb } = _b2;
|
|
5224
|
+
var _c = lc(dlt), { c: lclt, n: nlc } = _c;
|
|
5225
|
+
var _d = lc(ddt), { c: lcdt, n: ndc } = _d;
|
|
5227
5226
|
var lcfreq = new u16(19);
|
|
5228
5227
|
for (var i2 = 0;i2 < lclt.length; ++i2)
|
|
5229
5228
|
++lcfreq[lclt[i2] & 31];
|
|
5230
5229
|
for (var i2 = 0;i2 < lcdt.length; ++i2)
|
|
5231
5230
|
++lcfreq[lcdt[i2] & 31];
|
|
5232
|
-
var _e = hTree(lcfreq, 7),
|
|
5231
|
+
var _e = hTree(lcfreq, 7), { t: lct, l: mlcb } = _e;
|
|
5233
5232
|
var nlcc = 19;
|
|
5234
5233
|
for (;nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
5235
5234
|
;
|
|
@@ -5527,7 +5526,7 @@ function strFromU8(dat, latin1) {
|
|
|
5527
5526
|
} else if (td) {
|
|
5528
5527
|
return td.decode(dat);
|
|
5529
5528
|
} else {
|
|
5530
|
-
var _a2 = dutf8(dat),
|
|
5529
|
+
var _a2 = dutf8(dat), { s, r } = _a2;
|
|
5531
5530
|
if (r.length)
|
|
5532
5531
|
err(8);
|
|
5533
5532
|
return s;
|
|
@@ -6138,19 +6137,19 @@ var baseOpen = async (options) => {
|
|
|
6138
6137
|
}
|
|
6139
6138
|
const subprocess = childProcess3.spawn(command, cliArguments, childProcessOptions);
|
|
6140
6139
|
if (options.wait) {
|
|
6141
|
-
return new Promise((
|
|
6140
|
+
return new Promise((resolve5, reject2) => {
|
|
6142
6141
|
subprocess.once("error", reject2);
|
|
6143
6142
|
subprocess.once("close", (exitCode) => {
|
|
6144
6143
|
if (!options.allowNonzeroExitCode && exitCode !== 0) {
|
|
6145
6144
|
reject2(new Error(`Exited with code ${exitCode}`));
|
|
6146
6145
|
return;
|
|
6147
6146
|
}
|
|
6148
|
-
|
|
6147
|
+
resolve5(subprocess);
|
|
6149
6148
|
});
|
|
6150
6149
|
});
|
|
6151
6150
|
}
|
|
6152
6151
|
if (isFallbackAttempt) {
|
|
6153
|
-
return new Promise((
|
|
6152
|
+
return new Promise((resolve5, reject2) => {
|
|
6154
6153
|
subprocess.once("error", reject2);
|
|
6155
6154
|
subprocess.once("spawn", () => {
|
|
6156
6155
|
subprocess.once("close", (exitCode) => {
|
|
@@ -6160,17 +6159,17 @@ var baseOpen = async (options) => {
|
|
|
6160
6159
|
return;
|
|
6161
6160
|
}
|
|
6162
6161
|
subprocess.unref();
|
|
6163
|
-
|
|
6162
|
+
resolve5(subprocess);
|
|
6164
6163
|
});
|
|
6165
6164
|
});
|
|
6166
6165
|
});
|
|
6167
6166
|
}
|
|
6168
6167
|
subprocess.unref();
|
|
6169
|
-
return new Promise((
|
|
6168
|
+
return new Promise((resolve5, reject2) => {
|
|
6170
6169
|
subprocess.once("error", reject2);
|
|
6171
6170
|
subprocess.once("spawn", () => {
|
|
6172
6171
|
subprocess.off("error", reject2);
|
|
6173
|
-
|
|
6172
|
+
resolve5(subprocess);
|
|
6174
6173
|
});
|
|
6175
6174
|
});
|
|
6176
6175
|
};
|
|
@@ -6613,7 +6612,7 @@ Available feeds:`);
|
|
|
6613
6612
|
console.log(` ${String(i2 + 1).padStart(2)}. ${label}`);
|
|
6614
6613
|
});
|
|
6615
6614
|
console.log();
|
|
6616
|
-
return new Promise((
|
|
6615
|
+
return new Promise((resolve7) => {
|
|
6617
6616
|
emitKeypressEvents(process.stdin);
|
|
6618
6617
|
if (process.stdin.isTTY)
|
|
6619
6618
|
process.stdin.setRawMode(true);
|
|
@@ -6633,7 +6632,7 @@ Available feeds:`);
|
|
|
6633
6632
|
process.stdout.write(`
|
|
6634
6633
|
Publish cancelled.
|
|
6635
6634
|
`);
|
|
6636
|
-
|
|
6635
|
+
resolve7(null);
|
|
6637
6636
|
return;
|
|
6638
6637
|
}
|
|
6639
6638
|
if (key.name === "return") {
|
|
@@ -6642,7 +6641,7 @@ Publish cancelled.
|
|
|
6642
6641
|
cleanup();
|
|
6643
6642
|
process.stdout.write(`
|
|
6644
6643
|
`);
|
|
6645
|
-
|
|
6644
|
+
resolve7(feeds[n - 1]);
|
|
6646
6645
|
} else {
|
|
6647
6646
|
input = "";
|
|
6648
6647
|
process.stdout.write(`
|
|
@@ -7864,4 +7863,4 @@ export {
|
|
|
7864
7863
|
generateManifests
|
|
7865
7864
|
};
|
|
7866
7865
|
|
|
7867
|
-
//# debugId=
|
|
7866
|
+
//# debugId=F25E158A93AFE23064756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveEnvFilePathAsync2,
|
|
3
|
+
loadEnvFileAsync2,
|
|
4
|
+
getAuthEnv2,
|
|
5
|
+
authenticate2
|
|
6
|
+
} from "./packager-tool-qjerhjyd.js";
|
|
7
|
+
export {
|
|
8
|
+
authenticate2 as authenticate,
|
|
9
|
+
getAuthEnv2 as getAuthEnv,
|
|
10
|
+
loadEnvFileAsync2 as loadEnvFileAsync,
|
|
11
|
+
resolveEnvFilePathAsync2 as resolveEnvFilePathAsync
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# debugId=48AAF0228083DA4C64756E2164756E21
|