@ampless/mcp-server 0.2.0-alpha.0 → 0.2.0-alpha.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.
Files changed (37) hide show
  1. package/dist/bowser-WRHMEFK3.js +2822 -0
  2. package/dist/chunk-3NCQATCK.js +1385 -0
  3. package/dist/chunk-5PA6IP7O.js +435 -0
  4. package/dist/{chunk-27JGNXJE.js → chunk-6OXXSXKN.js} +8 -37
  5. package/dist/{chunk-YDYRXGHR.js → chunk-A4YPJIDF.js} +3 -3
  6. package/dist/chunk-CVNCRUML.js +1355 -0
  7. package/dist/chunk-IKXKDSVH.js +1414 -0
  8. package/dist/chunk-ISXSZYT4.js +1375 -0
  9. package/dist/{chunk-GSC7CBT2.js → chunk-IW52OUIR.js} +117 -1025
  10. package/dist/chunk-QBXY5RRO.js +3559 -0
  11. package/dist/chunk-UMEQ5ALV.js +14 -0
  12. package/dist/{chunk-OLRXGK7L.js → chunk-YHHXORQ4.js} +48 -32
  13. package/dist/{dist-es-J7V6TEWZ.js → dist-es-3P7CNKGV.js} +15 -16
  14. package/dist/{dist-es-6QUIY4X7.js → dist-es-NAMW5ZZ4.js} +21 -31
  15. package/dist/{dist-es-MQG4P6NF.js → dist-es-OI6XP2CN.js} +9 -10
  16. package/dist/{dist-es-W5H6GQXM.js → dist-es-OO5RVJZO.js} +10 -11
  17. package/dist/{dist-es-NGSDZSP2.js → dist-es-PRQWND46.js} +4 -3
  18. package/dist/{dist-es-2HK4JUU7.js → dist-es-T6J3WJJK.js} +32 -36
  19. package/dist/{dist-es-OYHIBJO3.js → dist-es-ZP52SD4G.js} +27 -32
  20. package/dist/event-streams-WFL2DK34.js +43 -0
  21. package/dist/index.js +2061 -2633
  22. package/dist/{loadSso-3FWOSWL4.js → loadSso-C2Y2WOQK.js} +56 -58
  23. package/dist/{signin-EATRRDTG.js → signin-IY5CLTYR.js} +59 -63
  24. package/dist/{sso-oidc-5GRHV5HA.js → sso-oidc-KZTDOR7Y.js} +59 -63
  25. package/dist/{sts-IMPWC7YM.js → sts-2UABQZ6D.js} +625 -740
  26. package/package.json +3 -3
  27. package/dist/chunk-44FZZOIP.js +0 -14
  28. package/dist/chunk-72G5HA35.js +0 -62
  29. package/dist/chunk-B57O737J.js +0 -52
  30. package/dist/chunk-E6YHJFDU.js +0 -44
  31. package/dist/chunk-FCBONYCH.js +0 -6008
  32. package/dist/chunk-GBNV7FEX.js +0 -164
  33. package/dist/chunk-MQF5MXOW.js +0 -1040
  34. package/dist/chunk-NZ2AQICN.js +0 -29
  35. package/dist/chunk-YVOTBVHL.js +0 -243
  36. package/dist/chunk-ZB7FTU7J.js +0 -39
  37. package/dist/event-streams-6T3GMAVH.js +0 -253
@@ -1,164 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- chain
4
- } from "./chunk-NZ2AQICN.js";
5
- import {
6
- getProfileName,
7
- loadSharedConfigFiles
8
- } from "./chunk-YVOTBVHL.js";
9
- import {
10
- CredentialsProviderError
11
- } from "./chunk-ZB7FTU7J.js";
12
-
13
- // ../../node_modules/.pnpm/@smithy+querystring-parser@4.2.14/node_modules/@smithy/querystring-parser/dist-es/index.js
14
- function parseQueryString(querystring) {
15
- const query = {};
16
- querystring = querystring.replace(/^\?/, "");
17
- if (querystring) {
18
- for (const pair of querystring.split("&")) {
19
- let [key, value = null] = pair.split("=");
20
- key = decodeURIComponent(key);
21
- if (value) {
22
- value = decodeURIComponent(value);
23
- }
24
- if (!(key in query)) {
25
- query[key] = value;
26
- } else if (Array.isArray(query[key])) {
27
- query[key].push(value);
28
- } else {
29
- query[key] = [query[key], value];
30
- }
31
- }
32
- }
33
- return query;
34
- }
35
-
36
- // ../../node_modules/.pnpm/@smithy+url-parser@4.2.14/node_modules/@smithy/url-parser/dist-es/index.js
37
- var parseUrl = (url) => {
38
- if (typeof url === "string") {
39
- return parseUrl(new URL(url));
40
- }
41
- const { hostname, pathname, port, protocol, search } = url;
42
- let query;
43
- if (search) {
44
- query = parseQueryString(search);
45
- }
46
- return {
47
- hostname,
48
- port: port ? parseInt(port) : void 0,
49
- protocol,
50
- path: pathname,
51
- query
52
- };
53
- };
54
-
55
- // ../../node_modules/.pnpm/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/fromStatic.js
56
- var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
57
-
58
- // ../../node_modules/.pnpm/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/memoize.js
59
- var memoize = (provider, isExpired, requiresRefresh) => {
60
- let resolved;
61
- let pending;
62
- let hasResult;
63
- let isConstant = false;
64
- const coalesceProvider = async () => {
65
- if (!pending) {
66
- pending = provider();
67
- }
68
- try {
69
- resolved = await pending;
70
- hasResult = true;
71
- isConstant = false;
72
- } finally {
73
- pending = void 0;
74
- }
75
- return resolved;
76
- };
77
- if (isExpired === void 0) {
78
- return async (options) => {
79
- if (!hasResult || options?.forceRefresh) {
80
- resolved = await coalesceProvider();
81
- }
82
- return resolved;
83
- };
84
- }
85
- return async (options) => {
86
- if (!hasResult || options?.forceRefresh) {
87
- resolved = await coalesceProvider();
88
- }
89
- if (isConstant) {
90
- return resolved;
91
- }
92
- if (requiresRefresh && !requiresRefresh(resolved)) {
93
- isConstant = true;
94
- return resolved;
95
- }
96
- if (isExpired(resolved)) {
97
- await coalesceProvider();
98
- return resolved;
99
- }
100
- return resolved;
101
- };
102
- };
103
-
104
- // ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.14/node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
105
- function getSelectorName(functionString) {
106
- try {
107
- const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
108
- constants.delete("CONFIG");
109
- constants.delete("CONFIG_PREFIX_SEPARATOR");
110
- constants.delete("ENV");
111
- return [...constants].join(", ");
112
- } catch (e) {
113
- return functionString;
114
- }
115
- }
116
-
117
- // ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.14/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
118
- var fromEnv = (envVarSelector, options) => async () => {
119
- try {
120
- const config = envVarSelector(process.env, options);
121
- if (config === void 0) {
122
- throw new Error();
123
- }
124
- return config;
125
- } catch (e) {
126
- throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
127
- }
128
- };
129
-
130
- // ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.14/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
131
- var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
132
- const profile = getProfileName(init);
133
- const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
134
- const profileFromCredentials = credentialsFile[profile] || {};
135
- const profileFromConfig = configFile[profile] || {};
136
- const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
137
- try {
138
- const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
139
- const configValue = configSelector(mergedProfile, cfgFile);
140
- if (configValue === void 0) {
141
- throw new Error();
142
- }
143
- return configValue;
144
- } catch (e) {
145
- throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
146
- }
147
- };
148
-
149
- // ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.14/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
150
- var isFunction = (func) => typeof func === "function";
151
- var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
152
-
153
- // ../../node_modules/.pnpm/@smithy+node-config-provider@4.3.14/node_modules/@smithy/node-config-provider/dist-es/configLoader.js
154
- var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
155
- const { signingName, logger } = configuration;
156
- const envOptions = { signingName, logger };
157
- return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
158
- };
159
-
160
- export {
161
- parseUrl,
162
- memoize,
163
- loadConfig
164
- };