replicas-mcp 0.2.2 → 0.2.3

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 (35) hide show
  1. package/dist/bowser-SUS2LALV.js +2822 -0
  2. package/dist/chunk-2KQN26CJ.js +2094 -0
  3. package/dist/chunk-2TPRCPOE.js +2865 -0
  4. package/dist/chunk-67ORAF4B.js +1490 -0
  5. package/dist/chunk-C6IOMGXW.js +1052 -0
  6. package/dist/chunk-PTKAHAQW.js +576 -0
  7. package/dist/chunk-YPGSID6T.js +436 -0
  8. package/dist/{dist-es-BPXINP6D.js → dist-es-7BMXPGZZ.js} +21 -31
  9. package/dist/{dist-es-SCPV3ZCZ.js → dist-es-7SO54G6Q.js} +25 -23
  10. package/dist/{dist-es-RNSS2U3E.js → dist-es-E6ZIDLCG.js} +27 -32
  11. package/dist/{dist-es-HU5E5HQ2.js → dist-es-IW3K6GSR.js} +9 -10
  12. package/dist/{dist-es-VRURAF5E.js → dist-es-RAHG6NR3.js} +4 -3
  13. package/dist/{dist-es-7T436X7S.js → dist-es-ULKA5ONB.js} +10 -11
  14. package/dist/{dist-es-BSYEGR6D.js → dist-es-UUUR3KKD.js} +47 -51
  15. package/dist/event-streams-3PLTDEYP.js +1377 -0
  16. package/dist/index.js +948 -304
  17. package/dist/{loadSso-XSERNFCM.js → loadSso-EFZHEVVK.js} +84 -61
  18. package/dist/{signin-GATCKLJP.js → signin-VWN2NRES.js} +94 -82
  19. package/dist/{sso-oidc-JF4BALR2.js → sso-oidc-GJQTR2P3.js} +102 -63
  20. package/dist/{sts-UFAVCISZ.js → sts-5SKYP3PH.js} +4964 -5055
  21. package/package.json +1 -1
  22. package/src/index.ts +2 -2
  23. package/dist/chunk-2KQ6OUSY.js +0 -1033
  24. package/dist/chunk-2Y7PD56W.js +0 -164
  25. package/dist/chunk-5VUQ55WW.js +0 -242
  26. package/dist/chunk-AAVVX4U5.js +0 -175
  27. package/dist/chunk-CXFLI7S3.js +0 -5706
  28. package/dist/chunk-ERL3EC7G.js +0 -44
  29. package/dist/chunk-SGITM26Q.js +0 -877
  30. package/dist/chunk-ST5JVROM.js +0 -39
  31. package/dist/chunk-SWX24AGM.js +0 -62
  32. package/dist/chunk-WPAL27HA.js +0 -29
  33. package/dist/chunk-ZDZBYCXV.js +0 -52
  34. package/dist/chunk-ZNARSMJG.js +0 -14
  35. package/dist/event-streams-EHSSWA6E.js +0 -253
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/ProviderError.js
4
- var ProviderError = class _ProviderError extends Error {
5
- name = "ProviderError";
6
- tryNextLink;
7
- constructor(message, options = true) {
8
- let logger;
9
- let tryNextLink = true;
10
- if (typeof options === "boolean") {
11
- logger = void 0;
12
- tryNextLink = options;
13
- } else if (options != null && typeof options === "object") {
14
- logger = options.logger;
15
- tryNextLink = options.tryNextLink ?? true;
16
- }
17
- super(message);
18
- this.tryNextLink = tryNextLink;
19
- Object.setPrototypeOf(this, _ProviderError.prototype);
20
- logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
21
- }
22
- static from(error, options = true) {
23
- return Object.assign(new this(error.message, options), error);
24
- }
25
- };
26
-
27
- // ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
28
- var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
29
- name = "CredentialsProviderError";
30
- constructor(message, options = true) {
31
- super(message, options);
32
- Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
33
- }
34
- };
35
-
36
- export {
37
- ProviderError,
38
- CredentialsProviderError
39
- };
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
4
- var HttpRequest = class _HttpRequest {
5
- method;
6
- protocol;
7
- hostname;
8
- port;
9
- path;
10
- query;
11
- headers;
12
- username;
13
- password;
14
- fragment;
15
- body;
16
- constructor(options) {
17
- this.method = options.method || "GET";
18
- this.hostname = options.hostname || "localhost";
19
- this.port = options.port;
20
- this.query = options.query || {};
21
- this.headers = options.headers || {};
22
- this.body = options.body;
23
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
24
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
25
- this.username = options.username;
26
- this.password = options.password;
27
- this.fragment = options.fragment;
28
- }
29
- static clone(request) {
30
- const cloned = new _HttpRequest({
31
- ...request,
32
- headers: { ...request.headers }
33
- });
34
- if (cloned.query) {
35
- cloned.query = cloneQuery(cloned.query);
36
- }
37
- return cloned;
38
- }
39
- static isInstance(request) {
40
- if (!request) {
41
- return false;
42
- }
43
- const req = request;
44
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
45
- }
46
- clone() {
47
- return _HttpRequest.clone(this);
48
- }
49
- };
50
- function cloneQuery(query) {
51
- return Object.keys(query).reduce((carry, paramName) => {
52
- const param = query[paramName];
53
- return {
54
- ...carry,
55
- [paramName]: Array.isArray(param) ? [...param] : param
56
- };
57
- }, {});
58
- }
59
-
60
- export {
61
- HttpRequest
62
- };
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- ProviderError
4
- } from "./chunk-ST5JVROM.js";
5
-
6
- // ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/chain.js
7
- var chain = (...providers) => async () => {
8
- if (providers.length === 0) {
9
- throw new ProviderError("No providers in chain");
10
- }
11
- let lastProviderError;
12
- for (const provider of providers) {
13
- try {
14
- const credentials = await provider();
15
- return credentials;
16
- } catch (err) {
17
- lastProviderError = err;
18
- if (err?.tryNextLink) {
19
- continue;
20
- }
21
- throw err;
22
- }
23
- }
24
- throw lastProviderError;
25
- };
26
-
27
- export {
28
- chain
29
- };
@@ -1,52 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@smithy+smithy-client@4.12.13/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js
4
- var createAggregatedClient = (commands, Client, options) => {
5
- for (const [command, CommandCtor] of Object.entries(commands)) {
6
- const methodImpl = async function(args, optionsOrCb, cb) {
7
- const command2 = new CommandCtor(args);
8
- if (typeof optionsOrCb === "function") {
9
- this.send(command2, optionsOrCb);
10
- } else if (typeof cb === "function") {
11
- if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
13
- this.send(command2, optionsOrCb || {}, cb);
14
- } else {
15
- return this.send(command2, optionsOrCb);
16
- }
17
- };
18
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
19
- Client.prototype[methodName] = methodImpl;
20
- }
21
- const { paginators = {}, waiters = {} } = options ?? {};
22
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
23
- if (Client.prototype[paginatorName] === void 0) {
24
- Client.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
25
- return paginatorFn({
26
- ...paginationConfiguration,
27
- client: this
28
- }, commandInput, ...rest);
29
- };
30
- }
31
- }
32
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
33
- if (Client.prototype[waiterName] === void 0) {
34
- Client.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
35
- let config = waiterConfiguration;
36
- if (typeof waiterConfiguration === "number") {
37
- config = {
38
- maxWaitTime: waiterConfiguration
39
- };
40
- }
41
- return waiterFn({
42
- ...config,
43
- client: this
44
- }, commandInput, ...rest);
45
- };
46
- }
47
- }
48
- };
49
-
50
- export {
51
- createAggregatedClient
52
- };
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
4
- function setCredentialFeature(credentials, feature, value) {
5
- if (!credentials.$source) {
6
- credentials.$source = {};
7
- }
8
- credentials.$source[feature] = value;
9
- return credentials;
10
- }
11
-
12
- export {
13
- setCredentialFeature
14
- };
@@ -1,253 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- fromUtf8,
4
- toUtf8
5
- } from "./chunk-ERL3EC7G.js";
6
- import "./chunk-MO4EEYFW.js";
7
-
8
- // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js
9
- var EventStreamSerde = class {
10
- marshaller;
11
- serializer;
12
- deserializer;
13
- serdeContext;
14
- defaultContentType;
15
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType }) {
16
- this.marshaller = marshaller;
17
- this.serializer = serializer;
18
- this.deserializer = deserializer;
19
- this.serdeContext = serdeContext;
20
- this.defaultContentType = defaultContentType;
21
- }
22
- async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
23
- const marshaller = this.marshaller;
24
- const eventStreamMember = requestSchema.getEventStreamMember();
25
- const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
26
- const serializer = this.serializer;
27
- const defaultContentType = this.defaultContentType;
28
- const initialRequestMarker = /* @__PURE__ */ Symbol("initialRequestMarker");
29
- const eventStreamIterable = {
30
- async *[Symbol.asyncIterator]() {
31
- if (initialRequest) {
32
- const headers = {
33
- ":event-type": { type: "string", value: "initial-request" },
34
- ":message-type": { type: "string", value: "event" },
35
- ":content-type": { type: "string", value: defaultContentType }
36
- };
37
- serializer.write(requestSchema, initialRequest);
38
- const body = serializer.flush();
39
- yield {
40
- [initialRequestMarker]: true,
41
- headers,
42
- body
43
- };
44
- }
45
- for await (const page of eventStream) {
46
- yield page;
47
- }
48
- }
49
- };
50
- return marshaller.serialize(eventStreamIterable, (event) => {
51
- if (event[initialRequestMarker]) {
52
- return {
53
- headers: event.headers,
54
- body: event.body
55
- };
56
- }
57
- let unionMember = "";
58
- for (const key in event) {
59
- if (key !== "__type") {
60
- unionMember = key;
61
- break;
62
- }
63
- }
64
- const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
65
- const headers = {
66
- ":event-type": { type: "string", value: eventType },
67
- ":message-type": { type: "string", value: "event" },
68
- ":content-type": { type: "string", value: explicitPayloadContentType ?? defaultContentType },
69
- ...additionalHeaders
70
- };
71
- return {
72
- headers,
73
- body
74
- };
75
- });
76
- }
77
- async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
78
- const marshaller = this.marshaller;
79
- const eventStreamMember = responseSchema.getEventStreamMember();
80
- const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
81
- const memberSchemas = unionSchema.getMemberSchemas();
82
- const initialResponseMarker = /* @__PURE__ */ Symbol("initialResponseMarker");
83
- const asyncIterable = marshaller.deserialize(response.body, async (event) => {
84
- let unionMember = "";
85
- for (const key in event) {
86
- if (key !== "__type") {
87
- unionMember = key;
88
- break;
89
- }
90
- }
91
- const body = event[unionMember].body;
92
- if (unionMember === "initial-response") {
93
- const dataObject = await this.deserializer.read(responseSchema, body);
94
- delete dataObject[eventStreamMember];
95
- return {
96
- [initialResponseMarker]: true,
97
- ...dataObject
98
- };
99
- } else if (unionMember in memberSchemas) {
100
- const eventStreamSchema = memberSchemas[unionMember];
101
- if (eventStreamSchema.isStructSchema()) {
102
- const out = {};
103
- let hasBindings = false;
104
- for (const [name, member] of eventStreamSchema.structIterator()) {
105
- const { eventHeader, eventPayload } = member.getMergedTraits();
106
- hasBindings = hasBindings || Boolean(eventHeader || eventPayload);
107
- if (eventPayload) {
108
- if (member.isBlobSchema()) {
109
- out[name] = body;
110
- } else if (member.isStringSchema()) {
111
- out[name] = (this.serdeContext?.utf8Encoder ?? toUtf8)(body);
112
- } else if (member.isStructSchema()) {
113
- out[name] = await this.deserializer.read(member, body);
114
- }
115
- } else if (eventHeader) {
116
- const value = event[unionMember].headers[name]?.value;
117
- if (value != null) {
118
- if (member.isNumericSchema()) {
119
- if (value && typeof value === "object" && "bytes" in value) {
120
- out[name] = BigInt(value.toString());
121
- } else {
122
- out[name] = Number(value);
123
- }
124
- } else {
125
- out[name] = value;
126
- }
127
- }
128
- }
129
- }
130
- if (hasBindings) {
131
- return {
132
- [unionMember]: out
133
- };
134
- }
135
- if (body.byteLength === 0) {
136
- return {
137
- [unionMember]: {}
138
- };
139
- }
140
- }
141
- return {
142
- [unionMember]: await this.deserializer.read(eventStreamSchema, body)
143
- };
144
- } else {
145
- return {
146
- $unknown: event
147
- };
148
- }
149
- });
150
- const asyncIterator = asyncIterable[Symbol.asyncIterator]();
151
- const firstEvent = await asyncIterator.next();
152
- if (firstEvent.done) {
153
- return asyncIterable;
154
- }
155
- if (firstEvent.value?.[initialResponseMarker]) {
156
- if (!responseSchema) {
157
- throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
158
- }
159
- for (const key in firstEvent.value) {
160
- initialResponseContainer[key] = firstEvent.value[key];
161
- }
162
- }
163
- return {
164
- async *[Symbol.asyncIterator]() {
165
- if (!firstEvent?.value?.[initialResponseMarker]) {
166
- yield firstEvent.value;
167
- }
168
- while (true) {
169
- const { done, value } = await asyncIterator.next();
170
- if (done) {
171
- break;
172
- }
173
- yield value;
174
- }
175
- }
176
- };
177
- }
178
- writeEventBody(unionMember, unionSchema, event) {
179
- const serializer = this.serializer;
180
- let eventType = unionMember;
181
- let explicitPayloadMember = null;
182
- let explicitPayloadContentType;
183
- const isKnownSchema = (() => {
184
- const struct = unionSchema.getSchema();
185
- return struct[4].includes(unionMember);
186
- })();
187
- const additionalHeaders = {};
188
- if (!isKnownSchema) {
189
- const [type, value] = event[unionMember];
190
- eventType = type;
191
- serializer.write(15, value);
192
- } else {
193
- const eventSchema = unionSchema.getMemberSchema(unionMember);
194
- if (eventSchema.isStructSchema()) {
195
- for (const [memberName, memberSchema] of eventSchema.structIterator()) {
196
- const { eventHeader, eventPayload } = memberSchema.getMergedTraits();
197
- if (eventPayload) {
198
- explicitPayloadMember = memberName;
199
- } else if (eventHeader) {
200
- const value = event[unionMember][memberName];
201
- let type = "binary";
202
- if (memberSchema.isNumericSchema()) {
203
- if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) {
204
- type = "integer";
205
- } else {
206
- type = "long";
207
- }
208
- } else if (memberSchema.isTimestampSchema()) {
209
- type = "timestamp";
210
- } else if (memberSchema.isStringSchema()) {
211
- type = "string";
212
- } else if (memberSchema.isBooleanSchema()) {
213
- type = "boolean";
214
- }
215
- if (value != null) {
216
- additionalHeaders[memberName] = {
217
- type,
218
- value
219
- };
220
- delete event[unionMember][memberName];
221
- }
222
- }
223
- }
224
- if (explicitPayloadMember !== null) {
225
- const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember);
226
- if (payloadSchema.isBlobSchema()) {
227
- explicitPayloadContentType = "application/octet-stream";
228
- } else if (payloadSchema.isStringSchema()) {
229
- explicitPayloadContentType = "text/plain";
230
- }
231
- serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]);
232
- } else {
233
- serializer.write(eventSchema, event[unionMember]);
234
- }
235
- } else if (eventSchema.isUnitSchema()) {
236
- serializer.write(eventSchema, {});
237
- } else {
238
- throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
239
- }
240
- }
241
- const messageSerialization = serializer.flush() ?? new Uint8Array();
242
- const body = typeof messageSerialization === "string" ? (this.serdeContext?.utf8Decoder ?? fromUtf8)(messageSerialization) : messageSerialization;
243
- return {
244
- body,
245
- eventType,
246
- explicitPayloadContentType,
247
- additionalHeaders
248
- };
249
- }
250
- };
251
- export {
252
- EventStreamSerde
253
- };