@avallon-labs/mcp 36.4.0-staging.905 → 36.5.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/index.js CHANGED
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-AFSDAFPX.js");
57
+ await import("./server-EGHILBE2.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -570,6 +570,35 @@ var getArtifactMetadataKeys = async (params, options) => {
570
570
  headers: res.headers
571
571
  };
572
572
  };
573
+ var getGetArtifactStatusSummaryUrl = (params) => {
574
+ const normalizedParams = new URLSearchParams();
575
+ Object.entries(params || {}).forEach(([key, value]) => {
576
+ if (value !== void 0) {
577
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) {
578
+ for (const [sk, sv] of Object.entries(value)) {
579
+ if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
580
+ }
581
+ } else {
582
+ normalizedParams.append(key, value === null ? "null" : String(value));
583
+ }
584
+ }
585
+ });
586
+ const stringifiedParams = normalizedParams.toString();
587
+ return stringifiedParams.length > 0 ? `/v1/artifacts/status-summary?${stringifiedParams}` : `/v1/artifacts/status-summary`;
588
+ };
589
+ var getArtifactStatusSummary = async (params, options) => {
590
+ const res = await fetch(getGetArtifactStatusSummaryUrl(params), {
591
+ ...options,
592
+ method: "GET"
593
+ });
594
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
595
+ const data = body ? JSON.parse(body) : {};
596
+ return {
597
+ data,
598
+ status: res.status,
599
+ headers: res.headers
600
+ };
601
+ };
573
602
  var getGetArtifactUploadUrlUrl = () => {
574
603
  return `/v1/artifacts/get-upload-url`;
575
604
  };
@@ -3066,6 +3095,17 @@ var getArtifactMetadataKeysHandler = async (args) => {
3066
3095
  ]
3067
3096
  };
3068
3097
  };
3098
+ var getArtifactStatusSummaryHandler = async (args) => {
3099
+ const res = await getArtifactStatusSummary(args.queryParams);
3100
+ return {
3101
+ content: [
3102
+ {
3103
+ type: "text",
3104
+ text: JSON.stringify(res)
3105
+ }
3106
+ ]
3107
+ };
3108
+ };
3069
3109
  var getArtifactUploadUrlHandler = async (args) => {
3070
3110
  const res = await getArtifactUploadUrl(args.bodyParams);
3071
3111
  return {
@@ -5804,6 +5844,22 @@ var GetArtifactMetadataKeysResponse = zod.object({
5804
5844
  values: zod.record(zod.string(), zod.array(zod.unknown()))
5805
5845
  })
5806
5846
  });
5847
+ var GetArtifactStatusSummaryQueryParams = zod.object({
5848
+ scope: zod.record(zod.string(), zod.string()).describe(
5849
+ "Scope to summarize, using bracket notation (e.g. scope[email_id]=abc-123). At least one key is required. Multiple keys are combined with AND logic."
5850
+ )
5851
+ });
5852
+ var getArtifactStatusSummaryResponseTotalMin = -9007199254740991;
5853
+ var getArtifactStatusSummaryResponseTotalMax = 9007199254740991;
5854
+ var getArtifactStatusSummaryResponseByStatusMinOne = -9007199254740991;
5855
+ var getArtifactStatusSummaryResponseByStatusMaxOne = 9007199254740991;
5856
+ var GetArtifactStatusSummaryResponse = zod.object({
5857
+ total: zod.number().min(getArtifactStatusSummaryResponseTotalMin).max(getArtifactStatusSummaryResponseTotalMax),
5858
+ by_status: zod.record(
5859
+ zod.string(),
5860
+ zod.number().min(getArtifactStatusSummaryResponseByStatusMinOne).max(getArtifactStatusSummaryResponseByStatusMaxOne)
5861
+ )
5862
+ });
5807
5863
  var GetArtifactUploadUrlBody = zod.object({
5808
5864
  filename: zod.string().min(1)
5809
5865
  });
@@ -8297,6 +8353,14 @@ server.tool(
8297
8353
  },
8298
8354
  getArtifactMetadataKeysHandler
8299
8355
  );
8356
+ server.tool(
8357
+ "getArtifactStatusSummary",
8358
+ "Get artifact status summary",
8359
+ {
8360
+ queryParams: GetArtifactStatusSummaryQueryParams
8361
+ },
8362
+ getArtifactStatusSummaryHandler
8363
+ );
8300
8364
  server.tool(
8301
8365
  "getArtifactUploadUrl",
8302
8366
  "Request a pre-signed URL for direct large file upload",
@@ -9182,4 +9246,4 @@ var transport = new StdioServerTransport();
9182
9246
  server.connect(transport).then(() => {
9183
9247
  console.error("MCP server running on stdio");
9184
9248
  }).catch(console.error);
9185
- //# sourceMappingURL=server-AFSDAFPX.js.map
9249
+ //# sourceMappingURL=server-EGHILBE2.js.map