@cmflow/atlas 3.6.0 → 3.7.0
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/bin/atlas.mjs +41 -39
- package/dist/bin/atlas.mjs.map +1 -1
- package/dist/{dist-DedUrNm2.mjs → dist-D8VumL0r.mjs} +2 -2
- package/dist/{dist-DedUrNm2.mjs.map → dist-D8VumL0r.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{routeBackendTopologyService-bbiOHBq0.mjs → routeBackendTopologyService-_-yZSfG8.mjs} +4 -4
- package/dist/{routeBackendTopologyService-bbiOHBq0.mjs.map → routeBackendTopologyService-_-yZSfG8.mjs.map} +1 -1
- package/dist/{taskProgressService-BIc_o1wl.mjs → taskProgressService-DAEpEqsT.mjs} +2 -2
- package/dist/{taskProgressService-BIc_o1wl.mjs.map → taskProgressService-DAEpEqsT.mjs.map} +1 -1
- package/dist/workers/routeBackendTopologyWorker.mjs +1 -1
- package/package.json +1 -1
package/dist/bin/atlas.mjs
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import { fileURLToPath as __atlasFileURLToPath } from "node:url";
|
|
3
3
|
const __filename = __atlasFileURLToPath(import.meta.url);
|
|
4
4
|
import { n as __require, r as __toESM, t as __commonJSMin } from "../rolldown-runtime-CGR6nZuH.mjs";
|
|
5
|
-
import { a as isCancel, c as userConfig$1, i as select, n as atlasLogger, o as getUserConfig, r as progress, s as setUserConfig, t as taskProgressService } from "../taskProgressService-
|
|
6
|
-
import { a as resolveModulePath, c as filterAnalysisFiles, d as globby, i as matchesRouteSelector, l as shouldKeepAnalysisFile, n as generateBackendTopologyArtifactsInWorkers, o as inferBackendNameFromFile, s as isKnownBackendType, u as normalizeFilePath } from "../routeBackendTopologyService-
|
|
7
|
-
import { a as loadOpenApiDocument, i as extractOpenApiOutputProperties, r as extractOpenApiInputProperties, t as require_dist$1 } from "../dist-
|
|
5
|
+
import { a as isCancel, c as userConfig$1, i as select, n as atlasLogger, o as getUserConfig, r as progress, s as setUserConfig, t as taskProgressService } from "../taskProgressService-DAEpEqsT.mjs";
|
|
6
|
+
import { a as resolveModulePath, c as filterAnalysisFiles, d as globby, i as matchesRouteSelector, l as shouldKeepAnalysisFile, n as generateBackendTopologyArtifactsInWorkers, o as inferBackendNameFromFile, s as isKnownBackendType, u as normalizeFilePath } from "../routeBackendTopologyService-_-yZSfG8.mjs";
|
|
7
|
+
import { a as loadOpenApiDocument, i as extractOpenApiOutputProperties, r as extractOpenApiInputProperties, t as require_dist$1 } from "../dist-D8VumL0r.mjs";
|
|
8
8
|
import { n as require_auth_errors, r as require_token_error, t as require_token_util } from "../token-util-Dnzm6rU4.mjs";
|
|
9
|
-
import
|
|
9
|
+
import { readFileSync } from "node:fs";
|
|
10
|
+
import path, { resolve } from "node:path";
|
|
10
11
|
import { Node, Project, SyntaxKind } from "ts-morph";
|
|
11
12
|
import fsPromises from "node:fs/promises";
|
|
12
13
|
import { createHash } from "node:crypto";
|
|
@@ -846,7 +847,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
846
847
|
const EventEmitter = __require("node:events").EventEmitter;
|
|
847
848
|
const childProcess = __require("node:child_process");
|
|
848
849
|
const path$1 = __require("node:path");
|
|
849
|
-
const fs = __require("node:fs");
|
|
850
|
+
const fs$1 = __require("node:fs");
|
|
850
851
|
const process$2 = __require("node:process");
|
|
851
852
|
const { Argument, humanReadableArgName } = require_argument();
|
|
852
853
|
const { CommanderError } = require_error();
|
|
@@ -1698,9 +1699,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1698
1699
|
];
|
|
1699
1700
|
function findFile(baseDir, baseName) {
|
|
1700
1701
|
const localBin = path$1.resolve(baseDir, baseName);
|
|
1701
|
-
if (fs.existsSync(localBin)) return localBin;
|
|
1702
|
+
if (fs$1.existsSync(localBin)) return localBin;
|
|
1702
1703
|
if (sourceExt.includes(path$1.extname(baseName))) return void 0;
|
|
1703
|
-
const foundExt = sourceExt.find((ext) => fs.existsSync(`${localBin}${ext}`));
|
|
1704
|
+
const foundExt = sourceExt.find((ext) => fs$1.existsSync(`${localBin}${ext}`));
|
|
1704
1705
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
1705
1706
|
}
|
|
1706
1707
|
this._checkForMissingMandatoryOptions();
|
|
@@ -1710,7 +1711,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1710
1711
|
if (this._scriptPath) {
|
|
1711
1712
|
let resolvedScriptPath;
|
|
1712
1713
|
try {
|
|
1713
|
-
resolvedScriptPath = fs.realpathSync(this._scriptPath);
|
|
1714
|
+
resolvedScriptPath = fs$1.realpathSync(this._scriptPath);
|
|
1714
1715
|
} catch (err) {
|
|
1715
1716
|
resolvedScriptPath = this._scriptPath;
|
|
1716
1717
|
}
|
|
@@ -7477,7 +7478,7 @@ var Doc = class {
|
|
|
7477
7478
|
|
|
7478
7479
|
//#endregion
|
|
7479
7480
|
//#region ../../node_modules/zod/v4/core/versions.js
|
|
7480
|
-
const version = {
|
|
7481
|
+
const version$1 = {
|
|
7481
7482
|
major: 4,
|
|
7482
7483
|
minor: 4,
|
|
7483
7484
|
patch: 3
|
|
@@ -7490,7 +7491,7 @@ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
|
7490
7491
|
inst ?? (inst = {});
|
|
7491
7492
|
inst._zod.def = def;
|
|
7492
7493
|
inst._zod.bag = inst._zod.bag || {};
|
|
7493
|
-
inst._zod.version = version;
|
|
7494
|
+
inst._zod.version = version$1;
|
|
7494
7495
|
const checks = [...inst._zod.def.checks ?? []];
|
|
7495
7496
|
if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
|
|
7496
7497
|
for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
|
|
@@ -13587,7 +13588,7 @@ function createProviderExecutedToolFactory({ id, inputSchema, outputSchema, supp
|
|
|
13587
13588
|
supportsDeferredResults
|
|
13588
13589
|
});
|
|
13589
13590
|
}
|
|
13590
|
-
async function resolve(value) {
|
|
13591
|
+
async function resolve$1(value) {
|
|
13591
13592
|
if (typeof value === "function") value = value();
|
|
13592
13593
|
return Promise.resolve(value);
|
|
13593
13594
|
}
|
|
@@ -14606,7 +14607,7 @@ var GatewayFetchMetadata = class {
|
|
|
14606
14607
|
const { value } = await getFromApi({
|
|
14607
14608
|
url: `${this.config.baseURL}/config`,
|
|
14608
14609
|
validateUrl: false,
|
|
14609
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
14610
|
+
headers: this.config.headers ? await resolve$1(this.config.headers) : void 0,
|
|
14610
14611
|
successfulResponseHandler: createJsonResponseHandler(gatewayAvailableModelsResponseSchema),
|
|
14611
14612
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
14612
14613
|
errorSchema: z$1.any(),
|
|
@@ -14628,7 +14629,7 @@ var GatewayFetchMetadata = class {
|
|
|
14628
14629
|
const { value } = await getFromApi({
|
|
14629
14630
|
url: `${baseUrl.origin}/v1/credits`,
|
|
14630
14631
|
validateUrl: false,
|
|
14631
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
14632
|
+
headers: this.config.headers ? await resolve$1(this.config.headers) : void 0,
|
|
14632
14633
|
successfulResponseHandler: createJsonResponseHandler(gatewayCreditsResponseSchema),
|
|
14633
14634
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
14634
14635
|
errorSchema: z$1.any(),
|
|
@@ -14694,7 +14695,7 @@ var GatewaySpendReport = class {
|
|
|
14694
14695
|
const { value } = await getFromApi({
|
|
14695
14696
|
url: `${baseUrl.origin}/v1/report?${searchParams.toString()}`,
|
|
14696
14697
|
validateUrl: false,
|
|
14697
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
14698
|
+
headers: this.config.headers ? await resolve$1(this.config.headers) : void 0,
|
|
14698
14699
|
successfulResponseHandler: createJsonResponseHandler(gatewaySpendReportResponseSchema),
|
|
14699
14700
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
14700
14701
|
errorSchema: z$1.any(),
|
|
@@ -14749,7 +14750,7 @@ var GatewayGenerationInfoFetcher = class {
|
|
|
14749
14750
|
const { value } = await getFromApi({
|
|
14750
14751
|
url: `${baseUrl.origin}/v1/generation?id=${encodeURIComponent(params.id)}`,
|
|
14751
14752
|
validateUrl: false,
|
|
14752
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
14753
|
+
headers: this.config.headers ? await resolve$1(this.config.headers) : void 0,
|
|
14753
14754
|
successfulResponseHandler: createJsonResponseHandler(gatewayGenerationInfoResponseSchema),
|
|
14754
14755
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
14755
14756
|
errorSchema: z$1.any(),
|
|
@@ -14830,11 +14831,11 @@ var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
|
14830
14831
|
async doGenerate(options) {
|
|
14831
14832
|
const { args, warnings } = await this.getArgs(options);
|
|
14832
14833
|
const { abortSignal } = options;
|
|
14833
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
14834
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
14834
14835
|
try {
|
|
14835
14836
|
const { responseHeaders, value: responseBody, rawValue: rawResponse } = await postJsonToApi({
|
|
14836
14837
|
url: this.getUrl(),
|
|
14837
|
-
headers: combineHeaders(resolvedHeaders, options.headers, this.getModelConfigHeaders(this.modelId, false), await resolve(this.config.o11yHeaders)),
|
|
14838
|
+
headers: combineHeaders(resolvedHeaders, options.headers, this.getModelConfigHeaders(this.modelId, false), await resolve$1(this.config.o11yHeaders)),
|
|
14838
14839
|
body: args,
|
|
14839
14840
|
successfulResponseHandler: createJsonResponseHandler(z$1.any()),
|
|
14840
14841
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
@@ -14863,11 +14864,11 @@ var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
|
14863
14864
|
async doStream(options) {
|
|
14864
14865
|
const { args, warnings } = await this.getArgs(options);
|
|
14865
14866
|
const { abortSignal } = options;
|
|
14866
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
14867
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
14867
14868
|
try {
|
|
14868
14869
|
const { value: response, responseHeaders } = await postJsonToApi({
|
|
14869
14870
|
url: this.getUrl(),
|
|
14870
|
-
headers: combineHeaders(resolvedHeaders, options.headers, this.getModelConfigHeaders(this.modelId, true), await resolve(this.config.o11yHeaders)),
|
|
14871
|
+
headers: combineHeaders(resolvedHeaders, options.headers, this.getModelConfigHeaders(this.modelId, true), await resolve$1(this.config.o11yHeaders)),
|
|
14871
14872
|
body: args,
|
|
14872
14873
|
successfulResponseHandler: createEventSourceResponseHandler(z$1.any()),
|
|
14873
14874
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
@@ -14962,11 +14963,11 @@ var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
|
|
|
14962
14963
|
}
|
|
14963
14964
|
async doEmbed({ values, headers, abortSignal, providerOptions }) {
|
|
14964
14965
|
var _a11, _b11;
|
|
14965
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
14966
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
14966
14967
|
try {
|
|
14967
14968
|
const { responseHeaders, value: responseBody, rawValue } = await postJsonToApi({
|
|
14968
14969
|
url: this.getUrl(),
|
|
14969
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
14970
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
14970
14971
|
body: {
|
|
14971
14972
|
values,
|
|
14972
14973
|
...providerOptions ? { providerOptions } : {}
|
|
@@ -15054,11 +15055,11 @@ var GatewayImageModel = class _GatewayImageModel {
|
|
|
15054
15055
|
}
|
|
15055
15056
|
async doGenerate({ prompt, n, size, aspectRatio, seed, files, mask, providerOptions, headers, abortSignal }) {
|
|
15056
15057
|
var _a11, _b11, _c, _d;
|
|
15057
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15058
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15058
15059
|
try {
|
|
15059
15060
|
const { responseHeaders, value: responseBody } = await postJsonToApi({
|
|
15060
15061
|
url: this.getUrl(),
|
|
15061
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15062
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15062
15063
|
body: {
|
|
15063
15064
|
prompt,
|
|
15064
15065
|
n,
|
|
@@ -15162,11 +15163,11 @@ var GatewayVideoModel = class {
|
|
|
15162
15163
|
async doGenerate(options) {
|
|
15163
15164
|
var _a11, _b11;
|
|
15164
15165
|
const { headers, abortSignal } = options;
|
|
15165
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15166
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15166
15167
|
try {
|
|
15167
15168
|
const { responseHeaders, value: responseBody } = await postJsonToApi({
|
|
15168
15169
|
url: this.getUrl(),
|
|
15169
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders), { accept: "text/event-stream" }),
|
|
15170
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders), { accept: "text/event-stream" }),
|
|
15170
15171
|
body: this.buildRequestBody(options),
|
|
15171
15172
|
successfulResponseHandler: async ({ response, url, requestBodyValues }) => {
|
|
15172
15173
|
if (response.body == null) throw new APICallError({
|
|
@@ -15244,11 +15245,11 @@ var GatewayVideoModel = class {
|
|
|
15244
15245
|
async doStart(options) {
|
|
15245
15246
|
var _a11, _b11;
|
|
15246
15247
|
const { headers, abortSignal, webhookUrl } = options;
|
|
15247
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15248
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15248
15249
|
try {
|
|
15249
15250
|
const { responseHeaders, value: responseBody } = await postJsonToApi({
|
|
15250
15251
|
url: this.getStartUrl(),
|
|
15251
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15252
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15252
15253
|
body: {
|
|
15253
15254
|
...this.buildRequestBody(options),
|
|
15254
15255
|
...webhookUrl && { callbackUrl: webhookUrl }
|
|
@@ -15280,11 +15281,11 @@ var GatewayVideoModel = class {
|
|
|
15280
15281
|
}
|
|
15281
15282
|
async doStatus({ operation, abortSignal, headers }) {
|
|
15282
15283
|
var _a11, _b11, _c, _d, _e, _f;
|
|
15283
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15284
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15284
15285
|
try {
|
|
15285
15286
|
const { responseHeaders, value: responseBody } = await postJsonToApi({
|
|
15286
15287
|
url: this.getStatusUrl(),
|
|
15287
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15288
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15288
15289
|
body: { operation },
|
|
15289
15290
|
successfulResponseHandler: createJsonResponseHandler(gatewayVideoStatusResponseSchema),
|
|
15290
15291
|
failedResponseHandler: createJsonErrorResponseHandler({
|
|
@@ -15454,11 +15455,11 @@ var GatewayRerankingModel = class {
|
|
|
15454
15455
|
}
|
|
15455
15456
|
async doRerank({ documents, query, topN, headers, abortSignal, providerOptions }) {
|
|
15456
15457
|
var _a11;
|
|
15457
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15458
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15458
15459
|
try {
|
|
15459
15460
|
const { responseHeaders, value: responseBody, rawValue } = await postJsonToApi({
|
|
15460
15461
|
url: this.getUrl(),
|
|
15461
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15462
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15462
15463
|
body: {
|
|
15463
15464
|
documents,
|
|
15464
15465
|
query,
|
|
@@ -15539,11 +15540,11 @@ var GatewaySpeechModel = class {
|
|
|
15539
15540
|
}
|
|
15540
15541
|
async doGenerate({ text, voice, outputFormat, instructions, speed, language, providerOptions, headers, abortSignal }) {
|
|
15541
15542
|
var _a11;
|
|
15542
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15543
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15543
15544
|
try {
|
|
15544
15545
|
const { responseHeaders, value: responseBody, rawValue } = await postJsonToApi({
|
|
15545
15546
|
url: this.getUrl(),
|
|
15546
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15547
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15547
15548
|
body: {
|
|
15548
15549
|
text,
|
|
15549
15550
|
...voice && { voice },
|
|
@@ -15627,11 +15628,11 @@ var GatewayTranscriptionModel = class {
|
|
|
15627
15628
|
}
|
|
15628
15629
|
async doGenerate({ audio, mediaType, providerOptions, headers, abortSignal }) {
|
|
15629
15630
|
var _a11, _b11, _c, _d;
|
|
15630
|
-
const resolvedHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
15631
|
+
const resolvedHeaders = this.config.headers ? await resolve$1(this.config.headers) : void 0;
|
|
15631
15632
|
try {
|
|
15632
15633
|
const { responseHeaders, value: responseBody, rawValue } = await postJsonToApi({
|
|
15633
15634
|
url: this.getUrl(),
|
|
15634
|
-
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders)),
|
|
15635
|
+
headers: combineHeaders(resolvedHeaders, headers != null ? headers : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders)),
|
|
15635
15636
|
body: {
|
|
15636
15637
|
audio: audio instanceof Uint8Array ? convertUint8ArrayToBase64(audio) : audio,
|
|
15637
15638
|
mediaType,
|
|
@@ -15669,7 +15670,7 @@ var GatewayTranscriptionModel = class {
|
|
|
15669
15670
|
async doStream(options) {
|
|
15670
15671
|
var _a11, _b11, _c, _d, _e;
|
|
15671
15672
|
const currentDate = (_c = (_b11 = (_a11 = this.config._internal) == null ? void 0 : _a11.currentDate) == null ? void 0 : _b11.call(_a11)) != null ? _c : /* @__PURE__ */ new Date();
|
|
15672
|
-
const headers = combineHeaders(await resolve((_d = this.config.headers) != null ? _d : {}), (_e = options.headers) != null ? _e : {}, this.getModelConfigHeaders(), await resolve(this.config.o11yHeaders));
|
|
15673
|
+
const headers = combineHeaders(await resolve$1((_d = this.config.headers) != null ? _d : {}), (_e = options.headers) != null ? _e : {}, this.getModelConfigHeaders(), await resolve$1(this.config.o11yHeaders));
|
|
15673
15674
|
const authMethod = await parseAuthMethod(headers);
|
|
15674
15675
|
const startFrame = {
|
|
15675
15676
|
type: TRANSCRIPTION_STREAM_START_FRAME_TYPE,
|
|
@@ -18759,7 +18760,7 @@ var object2 = ({ schema: inputSchema, name: name23, description }) => {
|
|
|
18759
18760
|
const schema = asSchema(inputSchema);
|
|
18760
18761
|
return {
|
|
18761
18762
|
name: "object",
|
|
18762
|
-
responseFormat: resolve(schema.jsonSchema).then((jsonSchema2) => ({
|
|
18763
|
+
responseFormat: resolve$1(schema.jsonSchema).then((jsonSchema2) => ({
|
|
18763
18764
|
type: "json",
|
|
18764
18765
|
schema: jsonSchema2,
|
|
18765
18766
|
...name23 != null && { name: name23 },
|
|
@@ -18805,7 +18806,7 @@ var array2 = ({ element: inputElementSchema, name: name23, description }) => {
|
|
|
18805
18806
|
const elementSchema = asSchema(inputElementSchema);
|
|
18806
18807
|
return {
|
|
18807
18808
|
name: "array",
|
|
18808
|
-
responseFormat: resolve(elementSchema.jsonSchema).then((jsonSchema2) => {
|
|
18809
|
+
responseFormat: resolve$1(elementSchema.jsonSchema).then((jsonSchema2) => {
|
|
18809
18810
|
const { $schema: _$schema, definitions, $defs, ...itemSchema } = jsonSchema2;
|
|
18810
18811
|
return {
|
|
18811
18812
|
type: "json",
|
|
@@ -23971,7 +23972,8 @@ var reportChanged_default = (program) => void program.command("report:changed").
|
|
|
23971
23972
|
//#endregion
|
|
23972
23973
|
//#region src/bin/atlas.ts
|
|
23973
23974
|
const program = new Command();
|
|
23974
|
-
|
|
23975
|
+
const { version } = JSON.parse(readFileSync(resolve(import.meta.dirname, "../../package.json"), "utf-8"));
|
|
23976
|
+
program.version(version);
|
|
23975
23977
|
program.name("atlas").description("Manage the API-to-backend mapping catalogue").option("--analysis-dir <path>", "Directory containing the API source tree to analyze").option("-c, --config <path>", "Path to atlas.config.ts", path.resolve(process.cwd(), "atlas.config.ts")).hook("preAction", async (_thisCommand, actionCommand) => {
|
|
23976
23978
|
if (actionCommand.name() === "init") return;
|
|
23977
23979
|
const config = await userConfig$1(program.opts().config, program.opts().analysisDir);
|