Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ jobs:
node-version: 22
cache: "pnpm"

- name: Update npm for OIDC support
run: npm install -g npm@latest # Needs 11.5.1+ for npm trusted publishing
- name: Install npm 11+ for OIDC provenance publishing
run: corepack enable npm && corepack install -g npm@latest
env:
COREPACK_ENABLE_STRICT: 0

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -59,12 +61,14 @@ jobs:
if: github.event_name == 'workflow_dispatch'
id: version
run: |
npm version ${{ github.event.inputs.version_type }}
pnpm version ${{ github.event.inputs.version_type }}
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
git push --follow-tags

- name: Publish to npm
run: npm publish --provenance
env:
COREPACK_ENABLE_STRICT: 0

- name: Create GitHub release (manual trigger only)
if: github.event_name == 'workflow_dispatch'
Expand Down
2 changes: 1 addition & 1 deletion TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- **create_triggered_campaign** ✏️: Create a new triggered campaign from an existing template. The campaign is created in Ready state and must be activated before it can send.
- **deactivate_triggered_campaign** ✏️: Deactivate a triggered campaign (requires API triggered campaign deactivation enabled)
- **get_campaign**: Get detailed information about a specific campaign
- **get_campaign_metrics**: Get campaign performance metrics
- **get_campaign_metrics**: Get campaign performance metrics. Requires a date range. Always use the narrowest window possible for performance.
- **get_campaigns**: Retrieve campaigns
- **get_child_campaigns**: Get child campaigns generated by a recurring campaign
- **schedule_campaign** ✏️✉️: Schedule an existing campaign to be sent at a specific time
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"dependencies": {
"@alcyone-labs/zod-to-json-schema": "4.0.10",
"@iterable/api": "0.10.0",
"@iterable/api": "0.10.3",
"@modelcontextprotocol/sdk": "1.18.1",
"@primno/dpapi": "2.0.1",
"@types/json-schema": "7.0.15",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/tools/campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export function createCampaignTools(client: IterableClient): Tool[] {

createTool({
name: "get_campaign_metrics",
description: "Get campaign performance metrics",
description:
"Get campaign performance metrics. Requires a date range. Always use the narrowest window possible for performance.",
schema: GetCampaignMetricsParamsSchema,
execute: (params) => client.getCampaignMetrics(params),
}),
Expand Down
Loading