@larkup/cli 0.3.1 → 0.3.2
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/{chunk-ODWAFTDP.js → chunk-2IVYLF4F.js} +1 -1
- package/dist/chunk-3GL3SZFJ.js +212 -0
- package/dist/chunk-5BX2UVG2.js +2352 -0
- package/dist/chunk-5RGEHTEF.js +646 -0
- package/dist/{chunk-65EVYGDT.js → chunk-7KURHXYU.js} +38 -38
- package/dist/chunk-A2PXF6Y7.js +1426 -0
- package/dist/{chunk-3EBUYTA7.js → chunk-ERDDY5EQ.js} +1 -1
- package/dist/{chunk-N6IF5QLH.js → chunk-HQPSE5ZU.js} +28 -36
- package/dist/chunk-IPKRK5UI.js +73 -0
- package/dist/{chunk-HAABLEPO.js → chunk-QAJSSODU.js} +1 -12
- package/dist/{chunk-BDMLJQRN.js → chunk-QKPH65NY.js} +1 -1
- package/dist/{chunk-S5DCG3CZ.js → chunk-RN25NOBI.js} +3 -3
- package/dist/{chunk-HOPZALAP.js → chunk-TJPYJ5TS.js} +1 -1
- package/dist/{chunk-4XN2IRCG.js → chunk-ZBGNJVTC.js} +3 -3
- package/dist/chunk-ZYHZIBTH.js +1272 -0
- package/dist/{dist-es-S5FAFKBD.js → dist-es-3L6W7F7P.js} +4 -4
- package/dist/{dist-es-YD724GH3.js → dist-es-6MPMKRLG.js} +21 -21
- package/dist/{dist-es-F6WXDZQY.js → dist-es-7LQAPSS6.js} +7 -7
- package/dist/{dist-es-NEADJWQM.js → dist-es-CVOBCRJ5.js} +9 -9
- package/dist/{dist-es-5DTOPEBY.js → dist-es-DAE2AYZV.js} +30 -23
- package/dist/{dist-es-BM4STLL5.js → dist-es-G4H4NZOY.js} +7 -7
- package/dist/{dist-es-LH5Y4P7D.js → dist-es-HV6ZWB2M.js} +8 -8
- package/dist/{dist-es-KMHWFNXI.js → dist-es-PQXH3VYE.js} +12 -9
- package/dist/{dist-es-3QFDPX44.js → dist-es-RGSF6JKX.js} +255 -231
- package/dist/{dist-es-DS5SFRTK.js → dist-es-UWL5EGDP.js} +1 -1
- package/dist/{chunk-FUTLPXFR.js → event-streams-NVY5IGD3.js} +31 -31
- package/dist/{event-streams-NPIZBVLJ.js → event-streams-RZ2JU5EF.js} +1 -2
- package/dist/index.js +31 -8
- package/dist/{loadSso-HXXA5UNF.js → loadSso-DEHYSFO4.js} +66 -62
- package/dist/{signin-7FUGJFG3.js → signin-CTAMN4QW.js} +70 -66
- package/dist/{sso-oidc-EPMF7LMF.js → sso-oidc-ZYLSPNAE.js} +69 -65
- package/dist/{sts-RBEOIBEJ.js → sts-EQDDSBAR.js} +75 -71
- package/package.json +4 -4
- package/dist/chunk-A7HMSODH.js +0 -126
- package/dist/chunk-FY7KWENQ.js +0 -598
- package/dist/chunk-MYOADNR2.js +0 -515
- package/dist/chunk-YUC4VMEE.js +0 -776
- package/dist/tool-loader-2WHU3H77.js +0 -14
- package/dist/tool-registry-JS5NUNN6.js +0 -21
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Crc32Node
|
|
3
|
-
} from "./chunk-MYOADNR2.js";
|
|
4
|
-
import {
|
|
2
|
+
Crc32Node,
|
|
5
3
|
TypeRegistry,
|
|
6
4
|
fromHex,
|
|
7
5
|
fromUtf8,
|
|
8
|
-
hasOwn,
|
|
9
6
|
toHex,
|
|
10
7
|
toUtf8
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZYHZIBTH.js";
|
|
9
|
+
import {
|
|
10
|
+
hasOwn
|
|
11
|
+
} from "./chunk-3GL3SZFJ.js";
|
|
12
|
+
import "./chunk-QGM4M3NI.js";
|
|
12
13
|
|
|
13
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
14
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js
|
|
14
15
|
var Int64 = class _Int64 {
|
|
15
16
|
bytes;
|
|
16
17
|
constructor(bytes) {
|
|
@@ -55,7 +56,7 @@ function negate(bytes) {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
59
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js
|
|
59
60
|
var HeaderMarshaller = class {
|
|
60
61
|
toUtf8;
|
|
61
62
|
fromUtf8;
|
|
@@ -241,7 +242,7 @@ var TIMESTAMP_TAG = "timestamp";
|
|
|
241
242
|
var UUID_TAG = "uuid";
|
|
242
243
|
var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
|
243
244
|
|
|
244
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
245
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js
|
|
245
246
|
var PRELUDE_MEMBER_LENGTH = 4;
|
|
246
247
|
var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
|
|
247
248
|
var CHECKSUM_LENGTH = 4;
|
|
@@ -273,7 +274,7 @@ function splitMessage({ byteLength, byteOffset, buffer }) {
|
|
|
273
274
|
};
|
|
274
275
|
}
|
|
275
276
|
|
|
276
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
277
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js
|
|
277
278
|
var EventStreamCodec = class {
|
|
278
279
|
headerMarshaller;
|
|
279
280
|
messageBuffer;
|
|
@@ -339,7 +340,7 @@ var EventStreamCodec = class {
|
|
|
339
340
|
}
|
|
340
341
|
};
|
|
341
342
|
|
|
342
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
343
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageDecoderStream.js
|
|
343
344
|
var MessageDecoderStream = class {
|
|
344
345
|
options;
|
|
345
346
|
constructor(options) {
|
|
@@ -356,7 +357,7 @@ var MessageDecoderStream = class {
|
|
|
356
357
|
}
|
|
357
358
|
};
|
|
358
359
|
|
|
359
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
360
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/MessageEncoderStream.js
|
|
360
361
|
var MessageEncoderStream = class {
|
|
361
362
|
options;
|
|
362
363
|
constructor(options) {
|
|
@@ -376,7 +377,7 @@ var MessageEncoderStream = class {
|
|
|
376
377
|
}
|
|
377
378
|
};
|
|
378
379
|
|
|
379
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
380
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js
|
|
380
381
|
var SmithyMessageDecoderStream = class {
|
|
381
382
|
options;
|
|
382
383
|
constructor(options) {
|
|
@@ -395,7 +396,7 @@ var SmithyMessageDecoderStream = class {
|
|
|
395
396
|
}
|
|
396
397
|
};
|
|
397
398
|
|
|
398
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
399
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageEncoderStream.js
|
|
399
400
|
var SmithyMessageEncoderStream = class {
|
|
400
401
|
options;
|
|
401
402
|
constructor(options) {
|
|
@@ -412,10 +413,10 @@ var SmithyMessageEncoderStream = class {
|
|
|
412
413
|
}
|
|
413
414
|
};
|
|
414
415
|
|
|
415
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
416
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js
|
|
416
417
|
import { Readable } from "stream";
|
|
417
418
|
|
|
418
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
419
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getChunkedStream.js
|
|
419
420
|
function getChunkedStream(source) {
|
|
420
421
|
let currentMessageTotalLength = 0;
|
|
421
422
|
let currentMessagePendingLength = 0;
|
|
@@ -481,7 +482,7 @@ function getChunkedStream(source) {
|
|
|
481
482
|
};
|
|
482
483
|
}
|
|
483
484
|
|
|
484
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
485
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js
|
|
485
486
|
function getUnmarshalledStream(source, options) {
|
|
486
487
|
const messageUnmarshaller = getMessageUnmarshaller(options.deserializer, options.toUtf8);
|
|
487
488
|
return {
|
|
@@ -527,7 +528,7 @@ function getMessageUnmarshaller(deserializer, toUtf82) {
|
|
|
527
528
|
};
|
|
528
529
|
}
|
|
529
530
|
|
|
530
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
531
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/EventStreamMarshaller.js
|
|
531
532
|
var EventStreamMarshaller = class {
|
|
532
533
|
eventStreamCodec;
|
|
533
534
|
utfEncoder;
|
|
@@ -552,7 +553,7 @@ var EventStreamMarshaller = class {
|
|
|
552
553
|
};
|
|
553
554
|
var eventStreamSerdeProvider = (options) => new EventStreamMarshaller(options);
|
|
554
555
|
|
|
555
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
556
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js
|
|
556
557
|
var EventStreamMarshaller2 = class {
|
|
557
558
|
universalMarshaller;
|
|
558
559
|
constructor({ utf8Encoder, utf8Decoder }) {
|
|
@@ -597,7 +598,7 @@ async function* readableToIterable(readStream) {
|
|
|
597
598
|
}
|
|
598
599
|
}
|
|
599
600
|
|
|
600
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
601
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js
|
|
601
602
|
var readableStreamToIterable = (readableStream) => ({
|
|
602
603
|
[Symbol.asyncIterator]: async function* () {
|
|
603
604
|
const reader = readableStream.getReader();
|
|
@@ -626,12 +627,12 @@ var iterableToReadableStream = (asyncIterable) => {
|
|
|
626
627
|
});
|
|
627
628
|
};
|
|
628
629
|
|
|
629
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
630
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-config-resolver/EventStreamSerdeConfig.js
|
|
630
631
|
var resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
|
|
631
632
|
eventStreamMarshaller: input.eventStreamSerdeProvider(input)
|
|
632
633
|
});
|
|
633
634
|
|
|
634
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
635
|
+
// ../../node_modules/.pnpm/@smithy+core@3.34.1/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js
|
|
635
636
|
var EventStreamSerde = class {
|
|
636
637
|
marshaller;
|
|
637
638
|
serializer;
|
|
@@ -898,24 +899,23 @@ var EventStreamSerde = class {
|
|
|
898
899
|
};
|
|
899
900
|
}
|
|
900
901
|
};
|
|
901
|
-
|
|
902
902
|
export {
|
|
903
|
-
Int64,
|
|
904
|
-
HeaderMarshaller,
|
|
905
903
|
EventStreamCodec,
|
|
904
|
+
EventStreamMarshaller2 as EventStreamMarshaller,
|
|
905
|
+
EventStreamSerde,
|
|
906
|
+
HeaderMarshaller,
|
|
907
|
+
Int64,
|
|
906
908
|
MessageDecoderStream,
|
|
907
909
|
MessageEncoderStream,
|
|
908
910
|
SmithyMessageDecoderStream,
|
|
909
911
|
SmithyMessageEncoderStream,
|
|
912
|
+
EventStreamMarshaller as UniversalEventStreamMarshaller,
|
|
913
|
+
eventStreamSerdeProvider2 as eventStreamSerdeProvider,
|
|
910
914
|
getChunkedStream,
|
|
911
|
-
getUnmarshalledStream,
|
|
912
915
|
getMessageUnmarshaller,
|
|
913
|
-
|
|
914
|
-
eventStreamSerdeProvider,
|
|
915
|
-
EventStreamMarshaller2,
|
|
916
|
-
eventStreamSerdeProvider2,
|
|
917
|
-
readableStreamToIterable,
|
|
916
|
+
getUnmarshalledStream,
|
|
918
917
|
iterableToReadableStream,
|
|
918
|
+
readableStreamToIterable,
|
|
919
919
|
resolveEventStreamSerdeConfig,
|
|
920
|
-
|
|
920
|
+
eventStreamSerdeProvider as universalEventStreamSerdeProvider
|
|
921
921
|
};
|
|
@@ -17,8 +17,7 @@ import {
|
|
|
17
17
|
iterableToReadableStream,
|
|
18
18
|
readableStreamToIterable,
|
|
19
19
|
resolveEventStreamSerdeConfig
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-MYOADNR2.js";
|
|
20
|
+
} from "./chunk-A2PXF6Y7.js";
|
|
22
21
|
import "./chunk-MACWQEJS.js";
|
|
23
22
|
import "./chunk-QGM4M3NI.js";
|
|
24
23
|
export {
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import { Command } from "commander";
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@larkup/cli",
|
|
39
|
-
version: "0.3.
|
|
39
|
+
version: "0.3.2",
|
|
40
40
|
engines: {
|
|
41
41
|
node: ">=22"
|
|
42
42
|
},
|
|
@@ -942,6 +942,7 @@ Before answering any user query, you MUST aggressively utilize your available to
|
|
|
942
942
|
2. Use your MCP (Model Context Protocol) tools to query connected external systems.
|
|
943
943
|
3. Use your Sandbox tools if you need to compute or analyze data.
|
|
944
944
|
4. Strictly follow any active Skill instructions provided below.
|
|
945
|
+
5. When a chart is requested and generateVisualization is available, call it with exact returned rows. Never write chart JSON, ASCII art, or a Markdown table as a substitute.
|
|
945
946
|
|
|
946
947
|
Your primary directive is: Check Knowledge > Check MCP/Plugins > Follow Skills > Answer User.\`;
|
|
947
948
|
|
|
@@ -1069,6 +1070,26 @@ async function buildAgentTools() {
|
|
|
1069
1070
|
});
|
|
1070
1071
|
descriptions.push({ id: "getIndexedData", name: "Get Indexed Data", description: "List indexed knowledge-base documents.", source: "built-in" });
|
|
1071
1072
|
}
|
|
1073
|
+
if (isToolEnabled("generateVisualization")) {
|
|
1074
|
+
tools.generateVisualization = tool({
|
|
1075
|
+
description: "Create an interactive chart from rows already returned by another tool. Call this tool instead of writing chart JSON or an ASCII chart. data must contain the exact rows to plot, and xAxisKey and every series dataKey must exactly match keys in those rows. Never use placeholder keys such as EMPTY, null, or undefined.",
|
|
1076
|
+
inputSchema: z.object({
|
|
1077
|
+
chartType: z.enum(["bar", "area", "line", "pie", "scatter", "radar"]),
|
|
1078
|
+
title: z.string(),
|
|
1079
|
+
subtitle: z.string().optional(),
|
|
1080
|
+
data: z.array(z.record(z.string(), z.any())),
|
|
1081
|
+
xAxisKey: z.string(),
|
|
1082
|
+
series: z.array(z.object({ dataKey: z.string(), label: z.string().optional(), color: z.string().optional() })),
|
|
1083
|
+
colors: z.array(z.string()).optional(),
|
|
1084
|
+
stacked: z.boolean().optional(),
|
|
1085
|
+
showLegend: z.boolean().optional(),
|
|
1086
|
+
xAxisLabel: z.string().optional(),
|
|
1087
|
+
yAxisLabel: z.string().optional(),
|
|
1088
|
+
}),
|
|
1089
|
+
execute: async (config) => config,
|
|
1090
|
+
});
|
|
1091
|
+
descriptions.push({ id: "generateVisualization", name: "Generate Charts", description: "Create interactive charts from returned rows.", source: "built-in" });
|
|
1092
|
+
}
|
|
1072
1093
|
if (isToolEnabled("executeAnalysis") || isToolEnabled("analyzeCorpusWithCode")) {
|
|
1073
1094
|
tools.executeAnalysis = tool({
|
|
1074
1095
|
description: "Run Python, JavaScript, or TypeScript in the configured isolated sandbox.",
|
|
@@ -4953,7 +4974,7 @@ var S3StorageProvider = class {
|
|
|
4953
4974
|
}
|
|
4954
4975
|
async client() {
|
|
4955
4976
|
if (!this._client) {
|
|
4956
|
-
const { S3Client } = await import("./dist-es-
|
|
4977
|
+
const { S3Client } = await import("./dist-es-RGSF6JKX.js");
|
|
4957
4978
|
this._client = new S3Client({
|
|
4958
4979
|
region: this.region,
|
|
4959
4980
|
...this._credentials ? { credentials: this._credentials } : {}
|
|
@@ -4972,7 +4993,7 @@ var S3StorageProvider = class {
|
|
|
4972
4993
|
return { bucket: withoutScheme.slice(0, slashIndex), key: withoutScheme.slice(slashIndex + 1) };
|
|
4973
4994
|
}
|
|
4974
4995
|
async store(key, data, mimeType) {
|
|
4975
|
-
const { PutObjectCommand } = await import("./dist-es-
|
|
4996
|
+
const { PutObjectCommand } = await import("./dist-es-RGSF6JKX.js");
|
|
4976
4997
|
const client = await this.client();
|
|
4977
4998
|
const objectKey = this.objectKey(key);
|
|
4978
4999
|
await client.send(
|
|
@@ -4990,7 +5011,7 @@ var S3StorageProvider = class {
|
|
|
4990
5011
|
return this.store(key, await fs9.readFile(sourcePath), mimeType);
|
|
4991
5012
|
}
|
|
4992
5013
|
async retrieve(uri) {
|
|
4993
|
-
const { GetObjectCommand } = await import("./dist-es-
|
|
5014
|
+
const { GetObjectCommand } = await import("./dist-es-RGSF6JKX.js");
|
|
4994
5015
|
const { bucket, key } = this.parseUri(uri);
|
|
4995
5016
|
const client = await this.client();
|
|
4996
5017
|
const response = await client.send(new GetObjectCommand({ Bucket: bucket, Key: key }));
|
|
@@ -5006,8 +5027,8 @@ var S3StorageProvider = class {
|
|
|
5006
5027
|
return void 0;
|
|
5007
5028
|
}
|
|
5008
5029
|
async getReadUrl(uri, expiresInSecs) {
|
|
5009
|
-
const { GetObjectCommand } = await import("./dist-es-
|
|
5010
|
-
const { getSignedUrl } = await import("./dist-es-
|
|
5030
|
+
const { GetObjectCommand } = await import("./dist-es-RGSF6JKX.js");
|
|
5031
|
+
const { getSignedUrl } = await import("./dist-es-HV6ZWB2M.js");
|
|
5011
5032
|
const { bucket, key } = this.parseUri(uri);
|
|
5012
5033
|
const client = await this.client();
|
|
5013
5034
|
return getSignedUrl(client, new GetObjectCommand({ Bucket: bucket, Key: key }), {
|
|
@@ -5015,7 +5036,7 @@ var S3StorageProvider = class {
|
|
|
5015
5036
|
});
|
|
5016
5037
|
}
|
|
5017
5038
|
async delete(uri) {
|
|
5018
|
-
const { DeleteObjectCommand } = await import("./dist-es-
|
|
5039
|
+
const { DeleteObjectCommand } = await import("./dist-es-RGSF6JKX.js");
|
|
5019
5040
|
const { bucket, key } = this.parseUri(uri);
|
|
5020
5041
|
const client = await this.client();
|
|
5021
5042
|
try {
|
|
@@ -6334,7 +6355,7 @@ async function chatCommand(options) {
|
|
|
6334
6355
|
log.info("Goodbye.");
|
|
6335
6356
|
process.exit(0);
|
|
6336
6357
|
}
|
|
6337
|
-
const text4 = input.trim();
|
|
6358
|
+
const text4 = typeof input === "string" ? input.trim() : "";
|
|
6338
6359
|
if (!text4) continue;
|
|
6339
6360
|
if (text4.toLowerCase() === "exit" || text4.toLowerCase() === "quit") {
|
|
6340
6361
|
log.info("Goodbye.");
|
|
@@ -6409,6 +6430,7 @@ async function settingsCommand(options) {
|
|
|
6409
6430
|
log.info("Cancelled.");
|
|
6410
6431
|
return;
|
|
6411
6432
|
}
|
|
6433
|
+
if (typeof selectedProvider !== "string") return;
|
|
6412
6434
|
const availableModels = chatModels.filter((m) => m.provider === selectedProvider);
|
|
6413
6435
|
const selectedModel = await p4.select({
|
|
6414
6436
|
message: "Select Chat Model:",
|
|
@@ -6419,6 +6441,7 @@ async function settingsCommand(options) {
|
|
|
6419
6441
|
log.info("Cancelled.");
|
|
6420
6442
|
return;
|
|
6421
6443
|
}
|
|
6444
|
+
if (typeof selectedModel !== "string") return;
|
|
6422
6445
|
await writeConfig({
|
|
6423
6446
|
...config,
|
|
6424
6447
|
chatProvider: selectedProvider,
|
|
@@ -1,46 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
AwsRestJsonProtocol,
|
|
6
|
-
AwsSdkSigV4Signer,
|
|
7
|
-
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
8
|
-
resolveAwsSdkSigV4Config
|
|
9
|
-
} from "./chunk-65EVYGDT.js";
|
|
10
|
-
import "./chunk-BDMLJQRN.js";
|
|
11
|
-
import {
|
|
12
|
-
Sha256Node
|
|
13
|
-
} from "./chunk-MYOADNR2.js";
|
|
14
|
-
import {
|
|
15
|
-
NodeHttpHandler
|
|
16
|
-
} from "./chunk-HOPZALAP.js";
|
|
17
|
-
import {
|
|
2
|
+
BinaryDecisionDiagram,
|
|
3
|
+
Client,
|
|
18
4
|
DEFAULT_RETRY_MODE,
|
|
19
5
|
DefaultIdentityProviderConfig,
|
|
20
|
-
|
|
6
|
+
EndpointCache,
|
|
21
7
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
22
8
|
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
23
9
|
NoAuthSigner,
|
|
24
|
-
awsEndpointFunctions,
|
|
25
|
-
createDefaultUserAgentProvider,
|
|
26
|
-
emitWarningIfUnsupportedVersion,
|
|
27
|
-
getAwsRegionExtensionConfiguration,
|
|
28
|
-
getHostHeaderPlugin,
|
|
29
|
-
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
30
|
-
getHttpSigningPlugin,
|
|
31
|
-
getLoggerPlugin,
|
|
32
|
-
getRecursionDetectionPlugin,
|
|
33
|
-
getRetryPlugin,
|
|
34
|
-
getUserAgentPlugin,
|
|
35
|
-
resolveAwsRegionExtensionConfiguration,
|
|
36
|
-
resolveHostHeaderConfig,
|
|
37
|
-
resolveRetryConfig,
|
|
38
|
-
resolveUserAgentConfig
|
|
39
|
-
} from "./chunk-N6IF5QLH.js";
|
|
40
|
-
import {
|
|
41
|
-
BinaryDecisionDiagram,
|
|
42
|
-
Client,
|
|
43
|
-
EndpointCache,
|
|
44
10
|
NoOpLogger,
|
|
45
11
|
ServiceException,
|
|
46
12
|
customEndpointFunctions,
|
|
@@ -48,39 +14,77 @@ import {
|
|
|
48
14
|
emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
|
|
49
15
|
getDefaultExtensionConfiguration,
|
|
50
16
|
getEndpointPlugin,
|
|
17
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
18
|
+
getHttpSigningPlugin,
|
|
19
|
+
getRetryPlugin,
|
|
51
20
|
loadConfigsForDefaultMode,
|
|
52
21
|
makeBuilder,
|
|
22
|
+
package_default,
|
|
53
23
|
resolveDefaultRuntimeConfig,
|
|
54
|
-
resolveEndpointConfig
|
|
55
|
-
|
|
24
|
+
resolveEndpointConfig,
|
|
25
|
+
resolveRetryConfig
|
|
26
|
+
} from "./chunk-5BX2UVG2.js";
|
|
27
|
+
import {
|
|
28
|
+
AwsRestJsonProtocol,
|
|
29
|
+
AwsSdkSigV4Signer,
|
|
30
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
31
|
+
resolveAwsSdkSigV4Config
|
|
32
|
+
} from "./chunk-7KURHXYU.js";
|
|
33
|
+
import "./chunk-QKPH65NY.js";
|
|
34
|
+
import {
|
|
35
|
+
getContentLengthPlugin,
|
|
36
|
+
getHttpHandlerExtensionConfiguration,
|
|
37
|
+
resolveHttpHandlerRuntimeConfig
|
|
38
|
+
} from "./chunk-IPKRK5UI.js";
|
|
56
39
|
import {
|
|
57
40
|
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
58
41
|
NODE_REGION_CONFIG_OPTIONS,
|
|
59
42
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
60
43
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
61
|
-
getContentLengthPlugin,
|
|
62
|
-
getHttpHandlerExtensionConfiguration,
|
|
63
44
|
loadConfig,
|
|
64
45
|
resolveDefaultsModeConfig,
|
|
65
|
-
resolveHttpHandlerRuntimeConfig,
|
|
66
46
|
resolveRegionConfig
|
|
67
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5RGEHTEF.js";
|
|
48
|
+
import {
|
|
49
|
+
NodeHttpHandler
|
|
50
|
+
} from "./chunk-TJPYJ5TS.js";
|
|
68
51
|
import {
|
|
52
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
53
|
+
awsEndpointFunctions,
|
|
54
|
+
createDefaultUserAgentProvider,
|
|
55
|
+
emitWarningIfUnsupportedVersion,
|
|
56
|
+
getAwsRegionExtensionConfiguration,
|
|
57
|
+
getHostHeaderPlugin,
|
|
58
|
+
getLoggerPlugin,
|
|
59
|
+
getRecursionDetectionPlugin,
|
|
60
|
+
getUserAgentPlugin,
|
|
61
|
+
resolveAwsRegionExtensionConfiguration,
|
|
62
|
+
resolveHostHeaderConfig,
|
|
63
|
+
resolveUserAgentConfig
|
|
64
|
+
} from "./chunk-HQPSE5ZU.js";
|
|
65
|
+
import "./chunk-2IVYLF4F.js";
|
|
66
|
+
import "./chunk-QAJSSODU.js";
|
|
67
|
+
import {
|
|
68
|
+
streamCollector
|
|
69
|
+
} from "./chunk-MACWQEJS.js";
|
|
70
|
+
import {
|
|
71
|
+
Sha256Node,
|
|
69
72
|
TypeRegistry,
|
|
70
73
|
calculateBodyLength,
|
|
71
74
|
fromBase64,
|
|
72
75
|
fromUtf8,
|
|
73
76
|
getSchemaSerdePlugin,
|
|
74
|
-
getSmithyContext,
|
|
75
|
-
normalizeProvider,
|
|
76
|
-
parseUrl,
|
|
77
|
-
streamCollector,
|
|
78
77
|
toBase64,
|
|
79
78
|
toUtf8
|
|
80
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-ZYHZIBTH.js";
|
|
80
|
+
import {
|
|
81
|
+
getSmithyContext,
|
|
82
|
+
normalizeProvider,
|
|
83
|
+
parseUrl
|
|
84
|
+
} from "./chunk-3GL3SZFJ.js";
|
|
81
85
|
import "./chunk-QGM4M3NI.js";
|
|
82
86
|
|
|
83
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
87
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js
|
|
84
88
|
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
85
89
|
return {
|
|
86
90
|
operation: getSmithyContext(context).operation,
|
|
@@ -131,7 +135,7 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
131
135
|
});
|
|
132
136
|
};
|
|
133
137
|
|
|
134
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
138
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/EndpointParameters.js
|
|
135
139
|
var resolveClientEndpointParameters = (options) => {
|
|
136
140
|
return Object.assign(options, {
|
|
137
141
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
@@ -146,7 +150,7 @@ var commonParams = {
|
|
|
146
150
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
147
151
|
};
|
|
148
152
|
|
|
149
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
153
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js
|
|
150
154
|
var k = "ref";
|
|
151
155
|
var a = -1;
|
|
152
156
|
var b = true;
|
|
@@ -233,7 +237,7 @@ var nodes = new Int32Array([
|
|
|
233
237
|
]);
|
|
234
238
|
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
235
239
|
|
|
236
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
240
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js
|
|
237
241
|
var cache = new EndpointCache({
|
|
238
242
|
size: 50,
|
|
239
243
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
@@ -246,7 +250,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
246
250
|
};
|
|
247
251
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
248
252
|
|
|
249
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
253
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js
|
|
250
254
|
var SSOServiceException = class _SSOServiceException extends ServiceException {
|
|
251
255
|
constructor(options) {
|
|
252
256
|
super(options);
|
|
@@ -254,7 +258,7 @@ var SSOServiceException = class _SSOServiceException extends ServiceException {
|
|
|
254
258
|
}
|
|
255
259
|
};
|
|
256
260
|
|
|
257
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
261
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js
|
|
258
262
|
var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
|
|
259
263
|
name = "InvalidRequestException";
|
|
260
264
|
$fault = "client";
|
|
@@ -304,7 +308,7 @@ var UnauthorizedException = class _UnauthorizedException extends SSOServiceExcep
|
|
|
304
308
|
}
|
|
305
309
|
};
|
|
306
310
|
|
|
307
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
311
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js
|
|
308
312
|
var _ATT = "AccessTokenType";
|
|
309
313
|
var _GRC = "GetRoleCredentials";
|
|
310
314
|
var _GRCR = "GetRoleCredentialsRequest";
|
|
@@ -417,7 +421,7 @@ var GetRoleCredentials$ = [
|
|
|
417
421
|
() => GetRoleCredentialsResponse$
|
|
418
422
|
];
|
|
419
423
|
|
|
420
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
424
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js
|
|
421
425
|
var getRuntimeConfig = (config) => {
|
|
422
426
|
return {
|
|
423
427
|
apiVersion: "2019-06-10",
|
|
@@ -455,7 +459,7 @@ var getRuntimeConfig = (config) => {
|
|
|
455
459
|
};
|
|
456
460
|
};
|
|
457
461
|
|
|
458
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
462
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js
|
|
459
463
|
var getRuntimeConfig2 = (config) => {
|
|
460
464
|
emitWarningIfUnsupportedVersion2(process.version);
|
|
461
465
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
@@ -488,7 +492,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
488
492
|
};
|
|
489
493
|
};
|
|
490
494
|
|
|
491
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
495
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js
|
|
492
496
|
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
493
497
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
494
498
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -527,14 +531,14 @@ var resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
527
531
|
};
|
|
528
532
|
};
|
|
529
533
|
|
|
530
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
534
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js
|
|
531
535
|
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
532
536
|
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
533
537
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
534
538
|
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
535
539
|
};
|
|
536
540
|
|
|
537
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
541
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSOClient.js
|
|
538
542
|
var SSOClient = class extends Client {
|
|
539
543
|
config;
|
|
540
544
|
constructor(...[configuration]) {
|
|
@@ -570,12 +574,12 @@ var SSOClient = class extends Client {
|
|
|
570
574
|
}
|
|
571
575
|
};
|
|
572
576
|
|
|
573
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
577
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js
|
|
574
578
|
var command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin);
|
|
575
579
|
var _ep0 = {};
|
|
576
580
|
var _mw0 = (Command, cs, config, o) => [];
|
|
577
581
|
|
|
578
|
-
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.
|
|
582
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.45/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js
|
|
579
583
|
var GetRoleCredentialsCommand = class extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) {
|
|
580
584
|
};
|
|
581
585
|
export {
|