@kaminari-ad/mcp 0.9.0 → 0.9.1

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { NAME, VERSION, err, ok } from './chunk-SWFPWJ74.js';
2
+ import { NAME, VERSION, err, ok } from './chunk-JEGBPX3R.js';
3
3
  import process from 'process';
4
4
  import { z } from 'zod';
5
5
 
@@ -160,10 +160,10 @@ async function main() {
160
160
  }
161
161
  const config = configResult.value;
162
162
  if (config.transport === "stdio") {
163
- const { bootstrapStdio } = await import('./stdio-bootstrap-6DXIUJTV.js');
163
+ const { bootstrapStdio } = await import('./stdio-bootstrap-YQFKQP2G.js');
164
164
  return bootstrapStdio(config);
165
165
  }
166
- const { bootstrapHttp } = await import('./http-bootstrap-ZXECSCYN.js');
166
+ const { bootstrapHttp } = await import('./http-bootstrap-JS2O6I22.js');
167
167
  return bootstrapHttp(config);
168
168
  }
169
169
  main().then(
@@ -3,8 +3,8 @@ export { err, ok } from 'neverthrow';
3
3
 
4
4
  // src/shared/version.ts
5
5
  var NAME = "@kaminari-ad/mcp";
6
- var VERSION = "0.9.0";
6
+ var VERSION = "0.9.1";
7
7
 
8
8
  export { NAME, VERSION };
9
- //# sourceMappingURL=chunk-SWFPWJ74.js.map
10
- //# sourceMappingURL=chunk-SWFPWJ74.js.map
9
+ //# sourceMappingURL=chunk-JEGBPX3R.js.map
10
+ //# sourceMappingURL=chunk-JEGBPX3R.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shared/version.ts"],"names":[],"mappings":";;;;AASO,IAAM,IAAA,GAAO;AACb,IAAM,OAAA,GAAU","file":"chunk-SWFPWJ74.js","sourcesContent":["/**\n * Package version and name. Hard-coded as constants here, asserted to\n * match `package.json` by a unit test.\n *\n * Why not import `package.json`: it would force JSON-module support at\n * runtime and tsup-bundling would inline the entire manifest. Two\n * constants + one assertion test is simpler and gives the same safety.\n */\n\nexport const NAME = \"@kaminari-ad/mcp\";\nexport const VERSION = \"0.9.0\";\n"]}
1
+ {"version":3,"sources":["../src/shared/version.ts"],"names":[],"mappings":";;;;AASO,IAAM,IAAA,GAAO;AACb,IAAM,OAAA,GAAU","file":"chunk-JEGBPX3R.js","sourcesContent":["/**\n * Package version and name. Hard-coded as constants here, asserted to\n * match `package.json` by a unit test.\n *\n * Why not import `package.json`: it would force JSON-module support at\n * runtime and tsup-bundling would inline the entire manifest. Two\n * constants + one assertion test is simpler and gives the same safety.\n */\n\nexport const NAME = \"@kaminari-ad/mcp\";\nexport const VERSION = \"0.9.1\";\n"]}
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { err, ok } from './chunk-SWFPWJ74.js';
2
+ import { err, ok } from './chunk-JEGBPX3R.js';
3
3
  import { createHash, randomUUID } from 'crypto';
4
4
  import createClient from 'openapi-fetch';
5
5
  import { fetch } from 'undici';
@@ -3606,8 +3606,10 @@ function pickCampaignConfigBody(input) {
3606
3606
  // src/application/tools/campaigns/create-campaign.tool.ts
3607
3607
  var CreateCampaignInputShape = {
3608
3608
  name: z.string().min(1).max(200).describe("Display name (1-200 chars)."),
3609
- campaign_type: z.enum(["url", "ad_tag", "vast"]).describe("`url`, `ad_tag`, or `vast` \u2014 must match the target field below."),
3610
- url: z.string().url().optional().describe("Target URL (required if campaign_type=url)."),
3609
+ campaign_type: z.enum(["url", "ad_tag", "vast", "ad_discovery"]).describe(
3610
+ "`url`, `ad_tag`, `vast`, or `ad_discovery` \u2014 must match the target field below. `ad_discovery` is a publisher-page scan: set `url`; each run detects the page's ad blocks and opens a child scan per detected ad."
3611
+ ),
3612
+ url: z.string().url().optional().describe("Target URL (required if campaign_type=url or ad_discovery)."),
3611
3613
  ad_tag: z.string().optional().describe(
3612
3614
  "Ad-tag HTML/JS or an http(s) URL of a page with the rendered creative (required if campaign_type=ad_tag)."
3613
3615
  ),
@@ -3656,7 +3658,7 @@ var GetCampaignInputShape = {
3656
3658
  };
3657
3659
  var getCampaignTool = {
3658
3660
  name: "get_campaign",
3659
- description: "Get one campaign by UUID: name, type (url|ad_tag|vast), target URL / ad-tag / VAST tag (vast_tag), countries, schedule status, archive status, parent group.",
3661
+ description: "Get one campaign by UUID: name, type (url|ad_tag|vast|ad_discovery), target URL / ad-tag / VAST tag (vast_tag), countries, schedule status, archive status, parent group. `ad_discovery` campaigns store the publisher page in the URL field.",
3660
3662
  annotations: {
3661
3663
  title: "Get Campaign",
3662
3664
  readOnlyHint: true,
@@ -3803,7 +3805,7 @@ var unarchiveCampaignTool = {
3803
3805
  var UpdateCampaignInputShape = {
3804
3806
  campaign_id: z.string().uuid().describe("Campaign UUID to update."),
3805
3807
  name: z.string().min(1).max(200).optional().describe("New display name."),
3806
- url: z.string().url().optional().describe("New target URL (url-type campaigns)."),
3808
+ url: z.string().url().optional().describe("New target URL (url-type and ad_discovery campaigns)."),
3807
3809
  ad_tag: z.string().optional().describe(
3808
3810
  "New ad-tag HTML/JS or an http(s) URL of a page with the rendered creative (ad_tag-type campaigns)."
3809
3811
  ),
@@ -5533,5 +5535,5 @@ function formatToolError(error) {
5533
5535
  }
5534
5536
 
5535
5537
  export { BearerToken, SERVER_INSTRUCTIONS, createHttpApiGateway, createPinoLogger, declareEmptyResourcesAndPrompts, newRequestId, wireToolsIntoMcpServer };
5536
- //# sourceMappingURL=chunk-E66U4JXR.js.map
5537
- //# sourceMappingURL=chunk-E66U4JXR.js.map
5538
+ //# sourceMappingURL=chunk-R56UDCOA.js.map
5539
+ //# sourceMappingURL=chunk-R56UDCOA.js.map