@hey-api/openapi-python 0.0.0-next-20260621204633 → 0.0.0-next-20260624063741
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 +0 -19
- package/bin/run.js +8 -15
- package/dist/clients/aiohttp/__init__.py +3 -0
- package/dist/clients/aiohttp/client.py +128 -0
- package/dist/clients/requests/__init__.py +3 -0
- package/dist/clients/requests/client.py +128 -0
- package/dist/clients/urllib3/__init__.py +3 -0
- package/dist/clients/urllib3/client.py +128 -0
- package/dist/index-Baeurbo3.d.mts +3319 -0
- package/dist/index-Baeurbo3.d.mts.map +1 -0
- package/dist/index.d.mts +2 -3042
- package/dist/index.mjs +2 -2
- package/dist/plugins.d.mts +2 -9
- package/dist/plugins.mjs +8 -2
- package/dist/plugins.mjs.map +1 -1
- package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
- package/dist/run.mjs +12 -47
- package/dist/run.mjs.map +1 -1
- package/dist/{src-DaXm5pxY.mjs → src-CZHHZvY9.mjs} +63 -25
- package/dist/src-CZHHZvY9.mjs.map +1 -0
- package/package.json +7 -7
- package/bin/run.cmd +0 -3
- package/dist/index.d.mts.map +0 -1
- package/dist/plugins.d.mts.map +0 -1
- package/dist/src-DaXm5pxY.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as coerce, c as defineConfigTable, d as utils, f as createClient, i as applyNaming, l as definePluginConfig, n as OperationPath, o as defaultPaginationKeywords, p as defaultPlugins, r as OperationStrategy, s as defineConfig, t as Logger, u as toCase } from "./src-
|
|
1
|
+
import { S as PyDsl, _ as reserved, a as coerce, b as PyDslContext, c as defineConfigTable, d as utils, f as createClient, g as KwargPyDsl, h as PythonRenderer, i as applyNaming, l as definePluginConfig, m as $, n as OperationPath, o as defaultPaginationKeywords, p as defaultPlugins, r as OperationStrategy, s as defineConfig, t as Logger, u as toCase, v as keywords, x as ctx, y as regexp } from "./src-CZHHZvY9.mjs";
|
|
2
2
|
import { t as plugins_exports } from "./plugins.mjs";
|
|
3
|
-
export { Logger, OperationPath, OperationStrategy, applyNaming, coerce, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, plugins_exports as plugins, toCase, utils };
|
|
3
|
+
export { $, KwargPyDsl, Logger, OperationPath, OperationStrategy, PyDsl, PyDslContext, PythonRenderer, applyNaming, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, plugins_exports as plugins, regexp, reserved, toCase, utils };
|
package/dist/plugins.d.mts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
declare const clientHttpx: any;
|
|
5
|
-
declare const sdk: any;
|
|
6
|
-
declare const pydantic: any;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { clientHttpx, pydantic, sdk, plugins_d_exports as t };
|
|
9
|
-
//# sourceMappingURL=plugins.d.mts.map
|
|
1
|
+
import { I as pydantic, L as sdk, M as clientHttpx, N as clientRequests, P as clientUrllib3, j as clientAiohttp } from "./index-Baeurbo3.mjs";
|
|
2
|
+
export { clientAiohttp, clientHttpx, clientRequests, clientUrllib3, pydantic, sdk };
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { pluginHelper } from "@hey-api/shared";
|
|
3
3
|
//#region src/plugins.ts
|
|
4
4
|
var plugins_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
clientAiohttp: () => clientAiohttp,
|
|
5
6
|
clientHttpx: () => clientHttpx,
|
|
7
|
+
clientRequests: () => clientRequests,
|
|
8
|
+
clientUrllib3: () => clientUrllib3,
|
|
6
9
|
pydantic: () => pydantic,
|
|
7
10
|
sdk: () => sdk
|
|
8
11
|
});
|
|
12
|
+
const clientAiohttp = pluginHelper("@hey-api/client-aiohttp");
|
|
9
13
|
const clientHttpx = pluginHelper("@hey-api/client-httpx");
|
|
14
|
+
const clientRequests = pluginHelper("@hey-api/client-requests");
|
|
15
|
+
const clientUrllib3 = pluginHelper("@hey-api/client-urllib3");
|
|
10
16
|
const sdk = pluginHelper("@hey-api/python-sdk");
|
|
11
17
|
const pydantic = pluginHelper("pydantic");
|
|
12
18
|
//#endregion
|
|
13
|
-
export { clientHttpx, pydantic, sdk, plugins_exports as t };
|
|
19
|
+
export { clientAiohttp, clientHttpx, clientRequests, clientUrllib3, pydantic, sdk, plugins_exports as t };
|
|
14
20
|
|
|
15
21
|
//# sourceMappingURL=plugins.mjs.map
|
package/dist/plugins.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.mjs","names":[],"sources":["../src/plugins.ts"],"sourcesContent":["import { pluginHelper } from '@hey-api/shared';\n\n// Hey API\nexport const clientHttpx = pluginHelper('@hey-api/client-httpx');\nexport const sdk = pluginHelper('@hey-api/python-sdk');\n// Other\nexport const pydantic = pluginHelper('pydantic');\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.mjs","names":[],"sources":["../src/plugins.ts"],"sourcesContent":["import { pluginHelper } from '@hey-api/shared';\n\n// Hey API\nexport const clientAiohttp = pluginHelper('@hey-api/client-aiohttp');\nexport const clientHttpx = pluginHelper('@hey-api/client-httpx');\nexport const clientRequests = pluginHelper('@hey-api/client-requests');\nexport const clientUrllib3 = pluginHelper('@hey-api/client-urllib3');\nexport const sdk = pluginHelper('@hey-api/python-sdk');\n// Other\nexport const pydantic = pluginHelper('pydantic');\n"],"mappings":";;;;;;;;;;;AAGA,MAAa,gBAAgB,aAAa,yBAAyB;AACnE,MAAa,cAAc,aAAa,uBAAuB;AAC/D,MAAa,iBAAiB,aAAa,0BAA0B;AACrE,MAAa,gBAAgB,aAAa,yBAAyB;AACnE,MAAa,MAAM,aAAa,qBAAqB;AAErD,MAAa,WAAW,aAAa,UAAU"}
|
|
@@ -10,6 +10,6 @@ var __exportAll = (all, no_symbols) => {
|
|
|
10
10
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
11
|
return target;
|
|
12
12
|
};
|
|
13
|
-
var __require = /*
|
|
13
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
14
14
|
//#endregion
|
|
15
15
|
export { __require as n, __exportAll as t };
|
package/dist/run.mjs
CHANGED
|
@@ -1,54 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { f as createClient } from "./src-
|
|
3
|
-
import {
|
|
4
|
-
import { Command, CommanderError } from "commander";
|
|
2
|
+
import { f as createClient } from "./src-CZHHZvY9.mjs";
|
|
3
|
+
import { runCli } from "@hey-api/codegen-cli";
|
|
5
4
|
//#region package.json
|
|
6
|
-
var version = "0.0.0-next-
|
|
7
|
-
var bin = { "openapi-python": "./bin/run.js" };
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/cli/adapter.ts
|
|
10
|
-
function cliToConfig(cli) {
|
|
11
|
-
const config = {};
|
|
12
|
-
if (cli.input) config.input = cli.input;
|
|
13
|
-
if (cli.output) config.output = cli.output;
|
|
14
|
-
if (cli.file) config.configFile = cli.file;
|
|
15
|
-
if (cli.dryRun !== void 0) config.dryRun = cli.dryRun;
|
|
16
|
-
const plugins = [];
|
|
17
|
-
if (cli.plugins instanceof Array && cli.plugins.length) plugins.push(...cli.plugins);
|
|
18
|
-
if (plugins.length) config.plugins = plugins;
|
|
19
|
-
if (cli.debug || cli.silent || cli.logs || cli.logFile !== void 0) config.logs = {
|
|
20
|
-
...cli.logs && { path: cli.logs },
|
|
21
|
-
...cli.debug && { level: "debug" },
|
|
22
|
-
...cli.silent && { level: "silent" },
|
|
23
|
-
...cli.logFile !== void 0 && { file: cli.logFile }
|
|
24
|
-
};
|
|
25
|
-
if (cli.watch !== void 0) if (typeof cli.watch === "string") config.watch = Number.parseInt(cli.watch, 10);
|
|
26
|
-
else config.watch = cli.watch;
|
|
27
|
-
return config;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/cli/index.ts
|
|
31
|
-
const binName = Object.keys(bin)[0];
|
|
32
|
-
const program = new Command().name(binName).description("Generate Python code from OpenAPI specifications").version(isEnvironment("development") ? "[DEVELOPMENT]" : version);
|
|
33
|
-
program.option("-i, --input <path...>", "OpenAPI specification (path, URL, or string)").option("-o, --output <path...>", "Output folder(s)").option("-c, --client <name>", "HTTP client to generate").option("-p, --plugins [names...]", "Plugins to use").option("-f, --file <path>", "Path to config file").option("-d, --debug", "Enable debug logging").option("-s, --silent", "Suppress all output").option("-l, --logs <path>", "Logs folder path").option("--no-log-file", "Disable log file output").option("--dry-run", "Skip writing files").option("-w, --watch [interval]", "Watch for changes").action(async (options) => {
|
|
34
|
-
if (!(await createClient(cliToConfig(options)))[0]?.config.input.some((input) => input.watch?.enabled)) process.exit(0);
|
|
35
|
-
});
|
|
36
|
-
async function runCli() {
|
|
37
|
-
try {
|
|
38
|
-
await program.parseAsync(process.argv);
|
|
39
|
-
} catch (error) {
|
|
40
|
-
if (error instanceof CommanderError && "code" in error) {
|
|
41
|
-
if (error.code === "commander.optionMissingArgument") console.error(`\nMissing required argument. Run '${binName} --help' for usage.\n`);
|
|
42
|
-
else if (error.code === "commander.unknownOption") console.error(`\nUnknown option. Run '${binName} --help' for available options.\n`);
|
|
43
|
-
process.exit(error.exitCode);
|
|
44
|
-
}
|
|
45
|
-
console.error("Unexpected error:", error);
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
5
|
+
var version = "0.0.0-next-20260624063741";
|
|
49
6
|
//#endregion
|
|
50
7
|
//#region src/run.ts
|
|
51
|
-
|
|
8
|
+
const binName = Object.keys({ "openapi-python": "./bin/run.js" })[0];
|
|
9
|
+
runCli({
|
|
10
|
+
createClient,
|
|
11
|
+
meta: {
|
|
12
|
+
description: "Generate Python code from OpenAPI specifications",
|
|
13
|
+
name: binName,
|
|
14
|
+
version
|
|
15
|
+
}
|
|
16
|
+
});
|
|
52
17
|
//#endregion
|
|
53
18
|
export {};
|
|
54
19
|
|
package/dist/run.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.mjs","names":["pkg.bin","pkg.version"],"sources":["../package.json","../src/
|
|
1
|
+
{"version":3,"file":"run.mjs","names":["pkg.bin","pkg.version"],"sources":["../package.json","../src/run.ts"],"sourcesContent":["","#!/usr/bin/env node\n\nimport { runCli } from '@hey-api/codegen-cli';\n\nimport pkg from '../package.json';\nimport { createClient } from './index';\n\nconst binName = Object.keys(pkg.bin)[0]!;\n\nrunCli({\n createClient,\n meta: {\n description: 'Generate Python code from OpenAPI specifications',\n name: binName,\n version: pkg.version,\n },\n});\n"],"mappings":";;;;;;;ACOA,MAAM,UAAU,OAAO,KAAKA,mCAAAA,CAAO,CAAC,CAAC;AAErC,OAAO;CACL;CACA,MAAM;EACJ,aAAa;EACb,MAAM;EACGC;CACX;AACF,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { n as __require } from "./
|
|
1
|
+
import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import "./plugins.mjs";
|
|
3
3
|
import { Logger, Logger as Logger$1, Project, StructureModel, Version, detectInteractiveSession, fromRef, isNode, isRef, isSymbol, loadConfigFile, nodeBrand, ref } from "@hey-api/codegen-core";
|
|
4
4
|
import { ConfigError, ConfigValidationError, Context, InputError, IntentContext, JobError, OperationPath, OperationPath as OperationPath$1, OperationStrategy, OperationStrategy as OperationStrategy$1, SymbolFactory, applyNaming, applyNaming as applyNaming$1, buildGraph, buildSymbolIn, checkNodeVersion, childContext, coerce, coerce as coerce$1, compileInputPath, createSchemaProcessor, createSchemaWalker, deduplicateSchema, defaultPaginationKeywords, defineConfig, defineConfig as defineConfigTable, definePluginConfig, definePluginConfig as definePluginConfig$1, ensureDirSync, escapeComment, getInput, getInputError, getLogs, getParser, getSpec, isEnvironment, logCrashReport, logInputPaths, openGitHubIssueWithCrashReport, operationResponsesMap, outputHeaderToPrefix, parseOpenApiSpec, patchOpenApiSpec, pathToJsonPointer, pathToName, postprocessOutput, printCliIntro, printCrashReport, refToName, resolvePlugins, shouldReportCrash, sourceConfig, toCase, toCase as toCase$1, utils } from "@hey-api/shared";
|
|
5
5
|
import colors from "ansi-colors";
|
|
6
6
|
import colorSupport from "color-support";
|
|
7
|
-
import path from "node:path";
|
|
8
|
-
import { fileURLToPath } from "node:url";
|
|
9
7
|
import fs from "node:fs";
|
|
8
|
+
import path from "node:path";
|
|
10
9
|
import { $RefParser, ResolverError } from "@hey-api/json-schema-ref-parser";
|
|
11
10
|
import { format } from "@lukeed/ms";
|
|
12
11
|
import fsPromises from "node:fs/promises";
|
|
@@ -49,20 +48,60 @@ function expandToJobs(configs) {
|
|
|
49
48
|
return jobs;
|
|
50
49
|
}
|
|
51
50
|
//#endregion
|
|
51
|
+
//#region src/plugins/@hey-api/client-core/config.ts
|
|
52
|
+
const clientDefaultConfig = {
|
|
53
|
+
baseUrl: true,
|
|
54
|
+
bundle: true,
|
|
55
|
+
includeInEntry: false
|
|
56
|
+
};
|
|
57
|
+
const clientDefaultMeta = { tags: ["client"] };
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/plugins/@hey-api/client-aiohttp/config.ts
|
|
60
|
+
const defaultConfig$5 = {
|
|
61
|
+
...clientDefaultMeta,
|
|
62
|
+
config: clientDefaultConfig,
|
|
63
|
+
handler() {},
|
|
64
|
+
name: "@hey-api/client-aiohttp",
|
|
65
|
+
symbolMeta() {
|
|
66
|
+
return { artifact: "client" };
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
definePluginConfig(defaultConfig$5);
|
|
70
|
+
//#endregion
|
|
52
71
|
//#region src/plugins/@hey-api/client-httpx/config.ts
|
|
53
|
-
const defaultConfig$
|
|
54
|
-
|
|
55
|
-
config:
|
|
56
|
-
baseUrl: true,
|
|
57
|
-
bundle: true,
|
|
58
|
-
includeInEntry: false
|
|
59
|
-
},
|
|
72
|
+
const defaultConfig$4 = {
|
|
73
|
+
...clientDefaultMeta,
|
|
74
|
+
config: clientDefaultConfig,
|
|
60
75
|
handler() {},
|
|
61
76
|
name: "@hey-api/client-httpx",
|
|
62
77
|
symbolMeta() {
|
|
63
78
|
return { artifact: "client" };
|
|
64
79
|
}
|
|
65
80
|
};
|
|
81
|
+
definePluginConfig(defaultConfig$4);
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/plugins/@hey-api/client-requests/config.ts
|
|
84
|
+
const defaultConfig$3 = {
|
|
85
|
+
...clientDefaultMeta,
|
|
86
|
+
config: clientDefaultConfig,
|
|
87
|
+
handler() {},
|
|
88
|
+
name: "@hey-api/client-requests",
|
|
89
|
+
symbolMeta() {
|
|
90
|
+
return { artifact: "client" };
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
definePluginConfig(defaultConfig$3);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/plugins/@hey-api/client-urllib3/config.ts
|
|
96
|
+
const defaultConfig$2 = {
|
|
97
|
+
...clientDefaultMeta,
|
|
98
|
+
config: clientDefaultConfig,
|
|
99
|
+
handler() {},
|
|
100
|
+
name: "@hey-api/client-urllib3",
|
|
101
|
+
symbolMeta() {
|
|
102
|
+
return { artifact: "client" };
|
|
103
|
+
}
|
|
104
|
+
};
|
|
66
105
|
definePluginConfig(defaultConfig$2);
|
|
67
106
|
//#endregion
|
|
68
107
|
//#region src/config/utils.ts
|
|
@@ -84,23 +123,21 @@ function getClientPlugin(config) {
|
|
|
84
123
|
}
|
|
85
124
|
//#endregion
|
|
86
125
|
//#region src/generate/client.ts
|
|
87
|
-
const __filename$1 = fileURLToPath(import.meta.url);
|
|
88
|
-
const __dirname$1 = path.dirname(__filename$1);
|
|
89
126
|
/**
|
|
90
127
|
* Returns paths to client bundle files based on execution context
|
|
91
128
|
*/
|
|
92
129
|
function getClientBundlePaths(pluginName) {
|
|
93
130
|
const clientName = pluginName.slice(16);
|
|
94
131
|
if (isEnvironment("development")) {
|
|
95
|
-
const pluginsDir = path.resolve(
|
|
132
|
+
const pluginsDir = path.resolve(import.meta.dirname, "..", "plugins", "@hey-api");
|
|
96
133
|
return {
|
|
97
134
|
clientPath: path.resolve(pluginsDir, `client-${clientName}`, "bundle"),
|
|
98
135
|
corePath: path.resolve(pluginsDir, "client-core", "bundle")
|
|
99
136
|
};
|
|
100
137
|
}
|
|
101
138
|
return {
|
|
102
|
-
clientPath: path.resolve(
|
|
103
|
-
corePath: path.resolve(
|
|
139
|
+
clientPath: path.resolve(import.meta.dirname, "clients", clientName),
|
|
140
|
+
corePath: path.resolve(import.meta.dirname, "clients", "core")
|
|
104
141
|
};
|
|
105
142
|
}
|
|
106
143
|
/**
|
|
@@ -2009,7 +2046,7 @@ var StmtPyDsl = class extends Mixed$33 {
|
|
|
2009
2046
|
};
|
|
2010
2047
|
/** Checks whether a Python AST node is a statement. */
|
|
2011
2048
|
function isStatement(node) {
|
|
2012
|
-
return new Set([
|
|
2049
|
+
return (/* @__PURE__ */ new Set([
|
|
2013
2050
|
py.PyNodeKind.Assignment,
|
|
2014
2051
|
py.PyNodeKind.AugmentedAssignment,
|
|
2015
2052
|
py.PyNodeKind.Block,
|
|
@@ -2028,7 +2065,7 @@ function isStatement(node) {
|
|
|
2028
2065
|
py.PyNodeKind.TryStatement,
|
|
2029
2066
|
py.PyNodeKind.WhileStatement,
|
|
2030
2067
|
py.PyNodeKind.WithStatement
|
|
2031
|
-
]).has(node.kind);
|
|
2068
|
+
])).has(node.kind);
|
|
2032
2069
|
}
|
|
2033
2070
|
//#endregion
|
|
2034
2071
|
//#region src/py-dsl/mixins/do.ts
|
|
@@ -3479,7 +3516,7 @@ const printer = py.createPrinter({ indentSize: 4 });
|
|
|
3479
3516
|
function astToString(node) {
|
|
3480
3517
|
return printer.printFile(node);
|
|
3481
3518
|
}
|
|
3482
|
-
const pythonStdlib = new Set([
|
|
3519
|
+
const pythonStdlib = /* @__PURE__ */ new Set([
|
|
3483
3520
|
"abc",
|
|
3484
3521
|
"aifc",
|
|
3485
3522
|
"antigravity",
|
|
@@ -6336,7 +6373,10 @@ definePluginConfig(defaultConfig);
|
|
|
6336
6373
|
*/
|
|
6337
6374
|
const defaultPlugins = ["@hey-api/python-sdk"];
|
|
6338
6375
|
const defaultPluginConfigs = {
|
|
6339
|
-
"@hey-api/client-
|
|
6376
|
+
"@hey-api/client-aiohttp": defaultConfig$5,
|
|
6377
|
+
"@hey-api/client-httpx": defaultConfig$4,
|
|
6378
|
+
"@hey-api/client-requests": defaultConfig$3,
|
|
6379
|
+
"@hey-api/client-urllib3": defaultConfig$2,
|
|
6340
6380
|
"@hey-api/python-sdk": defaultConfig$1,
|
|
6341
6381
|
pydantic: defaultConfig
|
|
6342
6382
|
};
|
|
@@ -6691,8 +6731,6 @@ async function createClient$1({ config, dependencies, jobIndex, logger, watches:
|
|
|
6691
6731
|
}
|
|
6692
6732
|
//#endregion
|
|
6693
6733
|
//#region src/generate.ts
|
|
6694
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
6695
|
-
const __dirname = path.dirname(__filename);
|
|
6696
6734
|
/**
|
|
6697
6735
|
* Generate a client from the provided configuration.
|
|
6698
6736
|
*
|
|
@@ -6714,7 +6752,7 @@ async function createClient(userConfig, logger = new Logger()) {
|
|
|
6714
6752
|
});
|
|
6715
6753
|
const dependencies = resolved.dependencies;
|
|
6716
6754
|
jobs = resolved.jobs;
|
|
6717
|
-
if (jobs.some((job) => job.config.logs.level !== "silent")) printCliIntro(
|
|
6755
|
+
if (jobs.some((job) => job.config.logs.level !== "silent")) printCliIntro(import.meta.dirname);
|
|
6718
6756
|
eventConfig.timeEnd();
|
|
6719
6757
|
const configErrors = jobs.flatMap((job) => job.errors.map((error) => ({
|
|
6720
6758
|
error,
|
|
@@ -6753,7 +6791,7 @@ async function createClient(userConfig, logger = new Logger()) {
|
|
|
6753
6791
|
if (await shouldReportCrash({
|
|
6754
6792
|
error: normalizedError,
|
|
6755
6793
|
isInteractive: jobs.some((job) => job.config.interactive) ?? userConfigs.some((config) => config.interactive) ?? false
|
|
6756
|
-
})) await openGitHubIssueWithCrashReport(error,
|
|
6794
|
+
})) await openGitHubIssueWithCrashReport(error, import.meta.dirname);
|
|
6757
6795
|
}
|
|
6758
6796
|
if (inputError) return [];
|
|
6759
6797
|
throw error;
|
|
@@ -6766,6 +6804,6 @@ async function defineConfig$1(config) {
|
|
|
6766
6804
|
return typeof config === "function" ? await config() : config;
|
|
6767
6805
|
}
|
|
6768
6806
|
//#endregion
|
|
6769
|
-
export { coerce$1 as a, defineConfigTable as c, utils as d, createClient as f, applyNaming$1 as i, definePluginConfig$1 as l, OperationPath$1 as n, defaultPaginationKeywords as o, defaultPlugins as p, OperationStrategy$1 as r, defineConfig$1 as s, Logger$1 as t, toCase$1 as u };
|
|
6807
|
+
export { PyDsl as S, reserved as _, coerce$1 as a, PyDslContext as b, defineConfigTable as c, utils as d, createClient as f, KwargPyDsl as g, PythonRenderer as h, applyNaming$1 as i, definePluginConfig$1 as l, $$1 as m, OperationPath$1 as n, defaultPaginationKeywords as o, defaultPlugins as p, OperationStrategy$1 as r, defineConfig$1 as s, Logger$1 as t, toCase$1 as u, keywords as v, ctx as x, regexp as y };
|
|
6770
6808
|
|
|
6771
|
-
//# sourceMappingURL=src-
|
|
6809
|
+
//# sourceMappingURL=src-CZHHZvY9.mjs.map
|