arkaos 4.26.0 → 4.28.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/README.md +7 -5
- package/THE-ARKAOS-GUIDE.md +7 -7
- package/VERSION +1 -1
- package/arka/SKILL.md +1 -1
- package/arka/skills/human-writing/SKILL.md +106 -0
- package/arka/skills/human-writing/references/anti-slop-phrases.md +131 -0
- package/arka/skills/human-writing/references/checklist.md +66 -0
- package/arka/skills/human-writing/references/content-refresh.md +38 -0
- package/arka/skills/human-writing/references/plain-english-alternatives.md +394 -0
- package/arka/skills/human-writing/references/pt-pt-anti-slop.md +82 -0
- package/arka/skills/human-writing/references/stop-slop.LICENSE +21 -0
- package/arka/skills/human-writing/references/structural-patterns.md +151 -0
- package/config/claude-agents/content-marketer.md +1 -1
- package/config/claude-agents/content-strategist.md +1 -1
- package/config/claude-agents/eduardo-copy.md +13 -0
- package/config/claude-agents/lifecycle-marketer.md +50 -0
- package/config/claude-agents/pr-partnerships.md +50 -0
- package/config/claude-agents/product-marketer.md +50 -0
- package/config/claude-agents/repurpose-distributor.md +1 -1
- package/config/claude-agents/sales-copywriter.md +1 -1
- package/config/claude-agents/scriptwriter.md +1 -1
- package/config/claude-agents/viral-engineer.md +1 -1
- package/config/evals/community.yaml +137 -0
- package/config/evals/content.yaml +298 -0
- package/config/evals/landing.yaml +927 -0
- package/config/evals/marketing.yaml +3836 -0
- package/config/evals/saas.yaml +616 -0
- package/config/evals/sales.yaml +437 -0
- package/config/skills-curated.yaml +2 -2
- package/config/skills-provenance.yaml +194 -21
- package/core/registry/generator.py +7 -0
- package/departments/community/SKILL.md +1 -0
- package/departments/community/skills/community-marketing/SKILL.md +200 -0
- package/departments/content/SKILL.md +1 -0
- package/departments/content/agents/content-strategist.yaml +1 -0
- package/departments/content/agents/repurpose-distributor.yaml +1 -0
- package/departments/content/agents/scriptwriter.yaml +1 -0
- package/departments/content/agents/viral-engineer.yaml +1 -0
- package/departments/content/skills/image-create/SKILL.md +375 -0
- package/departments/content/skills/image-create/references/ai-image-prompting.md +229 -0
- package/departments/content/skills/video-produce/SKILL.md +220 -0
- package/departments/content/skills/video-produce/references/ai-video-prompting.md +175 -0
- package/departments/content/skills/video-produce/references/edit-anatomy.md +84 -0
- package/departments/landing/SKILL.md +3 -0
- package/departments/landing/agents/sales-copywriter.yaml +1 -0
- package/departments/landing/skills/affiliate-bridge/SKILL.md +291 -5
- package/departments/landing/skills/affiliate-bridge/references/affiliate-programs.md +167 -0
- package/departments/landing/skills/affiliate-bridge/references/program-examples.md +143 -0
- package/departments/landing/skills/copy-framework/SKILL.md +241 -0
- package/departments/landing/skills/copy-framework/references/copy-frameworks.md +344 -0
- package/departments/landing/skills/copy-framework/references/natural-transitions.md +272 -0
- package/departments/landing/skills/lead-magnet/SKILL.md +337 -0
- package/departments/landing/skills/lead-magnet/references/benchmarks.md +129 -0
- package/departments/landing/skills/lead-magnet/references/format-guide.md +196 -0
- package/departments/landing/skills/offer-create/SKILL.md +105 -8
- package/departments/landing/skills/offer-create/references/bonus-stacking.md +150 -0
- package/departments/landing/skills/offer-create/references/examples.md +215 -0
- package/departments/landing/skills/offer-create/references/guarantee-design.md +172 -0
- package/departments/landing/skills/offer-create/references/offer-anatomy.md +203 -0
- package/departments/landing/skills/offer-create/references/offer-formats.md +240 -0
- package/departments/landing/skills/offer-create/references/scarcity-urgency.md +175 -0
- package/departments/landing/skills/offer-create/references/value-equation.md +134 -0
- package/departments/landing/skills/optimize-page/SKILL.md +185 -4
- package/departments/landing/skills/optimize-page/references/experiments.md +248 -0
- package/departments/landing/skills/optimize-page/references/form.md +422 -0
- package/departments/landing/skills/page-architect/SKILL.md +373 -5
- package/departments/landing/skills/page-architect/references/mermaid-templates.md +216 -0
- package/departments/landing/skills/page-architect/references/navigation-patterns.md +305 -0
- package/departments/landing/skills/page-architect/references/site-type-templates.md +293 -0
- package/departments/landing/skills/popup-design/SKILL.md +481 -0
- package/departments/landing/skills/signup-optimize/SKILL.md +385 -0
- package/departments/marketing/SKILL.md +22 -1
- package/departments/marketing/agents/content-marketer.yaml +1 -0
- package/departments/marketing/agents/growth-marketing/lifecycle-marketer.yaml +75 -0
- package/departments/marketing/agents/growth-marketing/pr-partnerships.yaml +74 -0
- package/departments/marketing/agents/growth-marketing/product-marketer.yaml +79 -0
- package/departments/marketing/agents/marketing-director.yaml +1 -0
- package/departments/marketing/skills/ab-test/SKILL.md +322 -3
- package/departments/marketing/skills/ab-test/references/sample-size-guide.md +263 -0
- package/departments/marketing/skills/ab-test/references/test-templates.md +277 -0
- package/departments/marketing/skills/ad-creative/SKILL.md +451 -0
- package/departments/marketing/skills/ad-creative/references/creative-review-page.md +106 -0
- package/departments/marketing/skills/ad-creative/references/creative-roadmap.md +118 -0
- package/departments/marketing/skills/ad-creative/references/generative-tools.md +637 -0
- package/departments/marketing/skills/ad-creative/references/hook-system.md +115 -0
- package/departments/marketing/skills/ad-creative/references/imessage-video-ads.md +201 -0
- package/departments/marketing/skills/ad-creative/references/motion-video-ads.md +126 -0
- package/departments/marketing/skills/ad-creative/references/platform-specs.md +213 -0
- package/departments/marketing/skills/ad-creative/references/static-ad-templates.md +200 -0
- package/departments/marketing/skills/ai-seo/SKILL.md +520 -0
- package/departments/marketing/skills/ai-seo/references/citations-vs-recommendations.md +85 -0
- package/departments/marketing/skills/ai-seo/references/content-patterns.md +287 -0
- package/departments/marketing/skills/ai-seo/references/content-types.md +71 -0
- package/departments/marketing/skills/ai-seo/references/okf.md +104 -0
- package/departments/marketing/skills/ai-seo/references/platform-ranking-factors.md +154 -0
- package/departments/marketing/skills/analytics-report/SKILL.md +310 -1
- package/departments/marketing/skills/analytics-report/references/event-library.md +260 -0
- package/departments/marketing/skills/analytics-report/references/ga4-implementation.md +300 -0
- package/departments/marketing/skills/analytics-report/references/gtm-implementation.md +390 -0
- package/departments/marketing/skills/aso/SKILL.md +336 -0
- package/departments/marketing/skills/aso/references/apple-specs.md +107 -0
- package/departments/marketing/skills/aso/references/benchmarks.md +129 -0
- package/departments/marketing/skills/aso/references/google-play-specs.md +131 -0
- package/departments/marketing/skills/aso/references/report-template.md +213 -0
- package/departments/marketing/skills/aso/references/scoring-criteria.md +213 -0
- package/departments/marketing/skills/co-marketing/SKILL.md +316 -0
- package/departments/marketing/skills/cold-email/SKILL.md +80 -0
- package/departments/marketing/skills/cold-email/references/benchmarks.md +83 -0
- package/departments/marketing/skills/cold-email/references/follow-up-sequences.md +81 -0
- package/departments/marketing/skills/cold-email/references/frameworks.md +90 -0
- package/departments/marketing/skills/cold-email/references/personalization.md +79 -0
- package/departments/marketing/skills/cold-email/references/subject-lines.md +53 -0
- package/departments/marketing/skills/competitor-analysis/SKILL.md +262 -5
- package/departments/marketing/skills/competitor-analysis/references/content-architecture.md +271 -0
- package/departments/marketing/skills/competitor-analysis/references/templates.md +223 -0
- package/departments/marketing/skills/competitor-profile/SKILL.md +447 -0
- package/departments/marketing/skills/competitor-profile/references/templates.md +167 -0
- package/departments/marketing/skills/competitor-profile/references/tool-reference.md +179 -0
- package/departments/marketing/skills/content-strategy/SKILL.md +398 -0
- package/departments/marketing/skills/content-strategy/references/headless-cms.md +194 -0
- package/departments/marketing/skills/council/SKILL.md +185 -0
- package/departments/marketing/skills/council/references/advisor-template.md +51 -0
- package/departments/marketing/skills/council/references/advisors/alex-hormozi.md +43 -0
- package/departments/marketing/skills/council/references/advisors/ann-handley.md +43 -0
- package/departments/marketing/skills/council/references/advisors/april-dunford.md +41 -0
- package/departments/marketing/skills/council/references/advisors/byron-sharp.md +43 -0
- package/departments/marketing/skills/council/references/advisors/claude-hopkins.md +42 -0
- package/departments/marketing/skills/council/references/advisors/david-ogilvy.md +42 -0
- package/departments/marketing/skills/council/references/advisors/eugene-schwartz.md +42 -0
- package/departments/marketing/skills/council/references/advisors/gary-halbert.md +43 -0
- package/departments/marketing/skills/council/references/advisors/gary-vaynerchuk.md +43 -0
- package/departments/marketing/skills/council/references/advisors/rory-sutherland.md +42 -0
- package/departments/marketing/skills/council/references/advisors/russell-brunson.md +43 -0
- package/departments/marketing/skills/council/references/advisors/seth-godin.md +43 -0
- package/departments/marketing/skills/customer-research/SKILL.md +318 -0
- package/departments/marketing/skills/customer-research/references/source-guides.md +401 -0
- package/departments/marketing/skills/directory-submit/SKILL.md +409 -0
- package/departments/marketing/skills/directory-submit/references/directory-list.md +477 -0
- package/departments/marketing/skills/directory-submit/references/positioning-variations.md +232 -0
- package/departments/marketing/skills/directory-submit/references/submission-tracker-template.csv +266 -0
- package/departments/marketing/skills/email-sequence/SKILL.md +309 -2
- package/departments/marketing/skills/email-sequence/references/copy-guidelines.md +113 -0
- package/departments/marketing/skills/email-sequence/references/email-types.md +515 -0
- package/departments/marketing/skills/email-sequence/references/sequence-templates.md +168 -0
- package/departments/marketing/skills/free-tools/SKILL.md +203 -0
- package/departments/marketing/skills/free-tools/references/tool-types.md +217 -0
- package/departments/marketing/skills/marketing-ideas/SKILL.md +191 -0
- package/departments/marketing/skills/marketing-ideas/references/ideas-by-category.md +366 -0
- package/departments/marketing/skills/marketing-loops/SKILL.md +136 -0
- package/departments/marketing/skills/marketing-loops/references/loop-catalog.md +687 -0
- package/departments/marketing/skills/marketing-loops/references/loop-guardrails.md +73 -0
- package/departments/marketing/skills/marketing-loops/references/loop-orchestration.md +69 -0
- package/departments/marketing/skills/marketing-loops/references/loop-state.md +67 -0
- package/departments/marketing/skills/marketing-loops/references/loop-template.md +79 -0
- package/departments/marketing/skills/marketing-plan/SKILL.md +302 -0
- package/departments/marketing/skills/marketing-plan/references/aarrr-framework.md +180 -0
- package/departments/marketing/skills/marketing-plan/references/budget-planning.md +168 -0
- package/departments/marketing/skills/marketing-plan/references/client-types.md +373 -0
- package/departments/marketing/skills/marketing-plan/references/current-state-rubric.md +255 -0
- package/departments/marketing/skills/marketing-plan/references/example-quietude.md +972 -0
- package/departments/marketing/skills/marketing-plan/references/funding-stage-unlocks.md +230 -0
- package/departments/marketing/skills/marketing-plan/references/growth-patterns.md +148 -0
- package/departments/marketing/skills/marketing-plan/references/idea-cross-reference.md +265 -0
- package/departments/marketing/skills/marketing-plan/references/measurement-framework.md +213 -0
- package/departments/marketing/skills/marketing-plan/references/methodology.md +363 -0
- package/departments/marketing/skills/marketing-plan/references/ops-stack-mapping.md +197 -0
- package/departments/marketing/skills/marketing-plan/references/plan-template.md +494 -0
- package/departments/marketing/skills/marketing-plan/references/team-and-agency-model.md +278 -0
- package/departments/marketing/skills/marketing-psychology/SKILL.md +479 -0
- package/departments/marketing/skills/paid-campaign/SKILL.md +452 -3
- package/departments/marketing/skills/paid-campaign/references/abm-playbook.md +93 -0
- package/departments/marketing/skills/paid-campaign/references/ad-copy-templates.md +207 -0
- package/departments/marketing/skills/paid-campaign/references/audience-targeting.md +243 -0
- package/departments/marketing/skills/paid-campaign/references/b2b-paid-playbook.md +115 -0
- package/departments/marketing/skills/paid-campaign/references/conversion-tracking.md +361 -0
- package/departments/marketing/skills/paid-campaign/references/google-search-playbook.md +120 -0
- package/departments/marketing/skills/paid-campaign/references/linkedin-b2b-playbook.md +107 -0
- package/departments/marketing/skills/paid-campaign/references/meta-decision-system.md +143 -0
- package/departments/marketing/skills/paid-campaign/references/platform-setup-checklists.md +277 -0
- package/departments/marketing/skills/paid-campaign/references/rsa-output-spec.md +88 -0
- package/departments/marketing/skills/product-marketing/SKILL.md +141 -0
- package/departments/marketing/skills/programmatic-seo/SKILL.md +74 -3
- package/departments/marketing/skills/programmatic-seo/references/playbooks.md +308 -0
- package/departments/marketing/skills/public-relations/SKILL.md +167 -0
- package/departments/marketing/skills/public-relations/references/journalist-pitching.md +368 -0
- package/departments/marketing/skills/public-relations/references/media-outlets.md +207 -0
- package/departments/marketing/skills/public-relations/references/newsjacking.md +218 -0
- package/departments/marketing/skills/public-relations/references/press-platforms.md +188 -0
- package/departments/marketing/skills/schema-markup/SKILL.md +203 -0
- package/departments/marketing/skills/schema-markup/references/schema-examples.md +398 -0
- package/departments/marketing/skills/seo-audit/SKILL.md +470 -1
- package/departments/marketing/skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/departments/marketing/skills/seo-audit/references/international-seo.md +230 -0
- package/departments/marketing/skills/sms-campaign/SKILL.md +363 -0
- package/departments/marketing/skills/sms-campaign/references/compliance.md +202 -0
- package/departments/marketing/skills/sms-campaign/references/platforms.md +318 -0
- package/departments/marketing/skills/sms-campaign/references/sequence-templates.md +282 -0
- package/departments/marketing/skills/social-strategy/SKILL.md +414 -3
- package/departments/marketing/skills/social-strategy/references/carousel-frameworks.md +141 -0
- package/departments/marketing/skills/social-strategy/references/listening-sources-template.md +123 -0
- package/departments/marketing/skills/social-strategy/references/listening.md +283 -0
- package/departments/marketing/skills/social-strategy/references/platform-limits.md +110 -0
- package/departments/marketing/skills/social-strategy/references/platforms.md +170 -0
- package/departments/marketing/skills/social-strategy/references/post-templates.md +179 -0
- package/departments/marketing/skills/social-strategy/references/reverse-engineering.md +195 -0
- package/departments/marketing/skills/social-strategy/references/short-form-video.md +237 -0
- package/departments/marketing/squad.yaml +10 -1
- package/departments/marketing/tools/LICENSE +21 -0
- package/departments/marketing/tools/REGISTRY.md +590 -0
- package/departments/marketing/tools/clis/README.md +198 -0
- package/departments/marketing/tools/clis/activecampaign.js +435 -0
- package/departments/marketing/tools/clis/adobe-analytics.js +161 -0
- package/departments/marketing/tools/clis/ahrefs.js +192 -0
- package/departments/marketing/tools/clis/airops.js +163 -0
- package/departments/marketing/tools/clis/amplitude.js +182 -0
- package/departments/marketing/tools/clis/apollo.js +142 -0
- package/departments/marketing/tools/clis/beehiiv.js +245 -0
- package/departments/marketing/tools/clis/brevo.js +368 -0
- package/departments/marketing/tools/clis/buffer.js +260 -0
- package/departments/marketing/tools/clis/calendly.js +253 -0
- package/departments/marketing/tools/clis/clay.js +159 -0
- package/departments/marketing/tools/clis/clearbit.js +163 -0
- package/departments/marketing/tools/clis/close.js +232 -0
- package/departments/marketing/tools/clis/coupler.js +173 -0
- package/departments/marketing/tools/clis/crossbeam.js +193 -0
- package/departments/marketing/tools/clis/customer-io.js +205 -0
- package/departments/marketing/tools/clis/dataforseo.js +257 -0
- package/departments/marketing/tools/clis/demio.js +149 -0
- package/departments/marketing/tools/clis/dub.js +158 -0
- package/departments/marketing/tools/clis/exa.js +147 -0
- package/departments/marketing/tools/clis/g2.js +186 -0
- package/departments/marketing/tools/clis/ga4.js +194 -0
- package/departments/marketing/tools/clis/github-prospects.js +257 -0
- package/departments/marketing/tools/clis/google-ads.js +189 -0
- package/departments/marketing/tools/clis/google-search-console.js +166 -0
- package/departments/marketing/tools/clis/hotjar.js +167 -0
- package/departments/marketing/tools/clis/hunter.js +249 -0
- package/departments/marketing/tools/clis/instantly.js +270 -0
- package/departments/marketing/tools/clis/intercom.js +399 -0
- package/departments/marketing/tools/clis/keywords-everywhere.js +185 -0
- package/departments/marketing/tools/clis/kit.js +232 -0
- package/departments/marketing/tools/clis/klaviyo.js +348 -0
- package/departments/marketing/tools/clis/lemlist.js +221 -0
- package/departments/marketing/tools/clis/linkedin-ads.js +185 -0
- package/departments/marketing/tools/clis/livestorm.js +292 -0
- package/departments/marketing/tools/clis/mailchimp.js +220 -0
- package/departments/marketing/tools/clis/mention-me.js +161 -0
- package/departments/marketing/tools/clis/meta-ads.js +181 -0
- package/departments/marketing/tools/clis/mixpanel.js +248 -0
- package/departments/marketing/tools/clis/onesignal.js +241 -0
- package/departments/marketing/tools/clis/optimizely.js +233 -0
- package/departments/marketing/tools/clis/outreach.js +213 -0
- package/departments/marketing/tools/clis/paddle.js +385 -0
- package/departments/marketing/tools/clis/partnerstack.js +382 -0
- package/departments/marketing/tools/clis/pendo.js +221 -0
- package/departments/marketing/tools/clis/plausible.js +249 -0
- package/departments/marketing/tools/clis/postmark.js +375 -0
- package/departments/marketing/tools/clis/rankparse.js +196 -0
- package/departments/marketing/tools/clis/resend.js +370 -0
- package/departments/marketing/tools/clis/rewardful.js +160 -0
- package/departments/marketing/tools/clis/savvycal.js +223 -0
- package/departments/marketing/tools/clis/segment.js +192 -0
- package/departments/marketing/tools/clis/semrush.js +207 -0
- package/departments/marketing/tools/clis/sendgrid.js +211 -0
- package/departments/marketing/tools/clis/similarweb.js +214 -0
- package/departments/marketing/tools/clis/snov.js +237 -0
- package/departments/marketing/tools/clis/supermetrics.js +169 -0
- package/departments/marketing/tools/clis/tiktok-ads.js +190 -0
- package/departments/marketing/tools/clis/tolt.js +153 -0
- package/departments/marketing/tools/clis/trustpilot.js +276 -0
- package/departments/marketing/tools/clis/typeform.js +269 -0
- package/departments/marketing/tools/clis/wistia.js +301 -0
- package/departments/marketing/tools/clis/zapier.js +165 -0
- package/departments/marketing/tools/clis/zoominfo.js +223 -0
- package/departments/marketing/tools/composio/README.md +105 -0
- package/departments/marketing/tools/composio/marketing-tools.md +91 -0
- package/departments/marketing/tools/integrations/activecampaign.md +337 -0
- package/departments/marketing/tools/integrations/adobe-analytics.md +156 -0
- package/departments/marketing/tools/integrations/ahrefs.md +142 -0
- package/departments/marketing/tools/integrations/airops.md +128 -0
- package/departments/marketing/tools/integrations/amplitude.md +135 -0
- package/departments/marketing/tools/integrations/apollo.md +148 -0
- package/departments/marketing/tools/integrations/attentive.md +152 -0
- package/departments/marketing/tools/integrations/audiencetap.md +125 -0
- package/departments/marketing/tools/integrations/beehiiv.md +157 -0
- package/departments/marketing/tools/integrations/brevo.md +268 -0
- package/departments/marketing/tools/integrations/browserbase.md +111 -0
- package/departments/marketing/tools/integrations/buffer.md +138 -0
- package/departments/marketing/tools/integrations/calendly.md +161 -0
- package/departments/marketing/tools/integrations/clay.md +149 -0
- package/departments/marketing/tools/integrations/clearbit.md +142 -0
- package/departments/marketing/tools/integrations/close.md +191 -0
- package/departments/marketing/tools/integrations/cogny.md +153 -0
- package/departments/marketing/tools/integrations/composio.md +190 -0
- package/departments/marketing/tools/integrations/contentful.md +160 -0
- package/departments/marketing/tools/integrations/coupler.md +142 -0
- package/departments/marketing/tools/integrations/crossbeam.md +137 -0
- package/departments/marketing/tools/integrations/customer-io.md +187 -0
- package/departments/marketing/tools/integrations/dataforseo.md +165 -0
- package/departments/marketing/tools/integrations/demio.md +182 -0
- package/departments/marketing/tools/integrations/dub-co.md +160 -0
- package/departments/marketing/tools/integrations/exa.md +145 -0
- package/departments/marketing/tools/integrations/firecrawl.md +144 -0
- package/departments/marketing/tools/integrations/firehose.md +159 -0
- package/departments/marketing/tools/integrations/g2.md +179 -0
- package/departments/marketing/tools/integrations/ga4.md +126 -0
- package/departments/marketing/tools/integrations/github.md +182 -0
- package/departments/marketing/tools/integrations/gong.md +144 -0
- package/departments/marketing/tools/integrations/google-ads.md +159 -0
- package/departments/marketing/tools/integrations/google-search-console.md +147 -0
- package/departments/marketing/tools/integrations/heygen.md +126 -0
- package/departments/marketing/tools/integrations/hotjar.md +147 -0
- package/departments/marketing/tools/integrations/hubspot.md +178 -0
- package/departments/marketing/tools/integrations/hunter.md +90 -0
- package/departments/marketing/tools/integrations/hyperframes.md +180 -0
- package/departments/marketing/tools/integrations/instantly.md +104 -0
- package/departments/marketing/tools/integrations/intercom.md +292 -0
- package/departments/marketing/tools/integrations/introw.md +182 -0
- package/departments/marketing/tools/integrations/keywords-everywhere.md +207 -0
- package/departments/marketing/tools/integrations/kit.md +167 -0
- package/departments/marketing/tools/integrations/klaviyo.md +228 -0
- package/departments/marketing/tools/integrations/lemlist.md +110 -0
- package/departments/marketing/tools/integrations/linkedin-ads.md +164 -0
- package/departments/marketing/tools/integrations/livestorm.md +313 -0
- package/departments/marketing/tools/integrations/mailchimp.md +150 -0
- package/departments/marketing/tools/integrations/mention-me.md +160 -0
- package/departments/marketing/tools/integrations/meta-ads.md +147 -0
- package/departments/marketing/tools/integrations/mixpanel.md +137 -0
- package/departments/marketing/tools/integrations/nitrosend.md +113 -0
- package/departments/marketing/tools/integrations/onesignal.md +229 -0
- package/departments/marketing/tools/integrations/optimizely.md +171 -0
- package/departments/marketing/tools/integrations/outreach.md +172 -0
- package/departments/marketing/tools/integrations/paddle.md +212 -0
- package/departments/marketing/tools/integrations/partnerstack.md +222 -0
- package/departments/marketing/tools/integrations/pendo.md +208 -0
- package/departments/marketing/tools/integrations/plausible.md +177 -0
- package/departments/marketing/tools/integrations/plivo.md +140 -0
- package/departments/marketing/tools/integrations/posthog.md +151 -0
- package/departments/marketing/tools/integrations/postmark.md +234 -0
- package/departments/marketing/tools/integrations/postscript.md +126 -0
- package/departments/marketing/tools/integrations/rankparse.md +257 -0
- package/departments/marketing/tools/integrations/rb2b.md +110 -0
- package/departments/marketing/tools/integrations/resend.md +212 -0
- package/departments/marketing/tools/integrations/rewardful.md +147 -0
- package/departments/marketing/tools/integrations/salesforce.md +150 -0
- package/departments/marketing/tools/integrations/sanity.md +148 -0
- package/departments/marketing/tools/integrations/savvycal.md +181 -0
- package/departments/marketing/tools/integrations/segment.md +159 -0
- package/departments/marketing/tools/integrations/semrush.md +121 -0
- package/departments/marketing/tools/integrations/sendgrid.md +161 -0
- package/departments/marketing/tools/integrations/sequenzy.md +306 -0
- package/departments/marketing/tools/integrations/shopify.md +176 -0
- package/departments/marketing/tools/integrations/similarweb.md +150 -0
- package/departments/marketing/tools/integrations/snov.md +94 -0
- package/departments/marketing/tools/integrations/sparktoro.md +127 -0
- package/departments/marketing/tools/integrations/strapi.md +167 -0
- package/departments/marketing/tools/integrations/stripe.md +148 -0
- package/departments/marketing/tools/integrations/supermetrics.md +145 -0
- package/departments/marketing/tools/integrations/tiktok-ads.md +161 -0
- package/departments/marketing/tools/integrations/tolt.md +144 -0
- package/departments/marketing/tools/integrations/truelist.md +184 -0
- package/departments/marketing/tools/integrations/trustpilot.md +191 -0
- package/departments/marketing/tools/integrations/twilio.md +152 -0
- package/departments/marketing/tools/integrations/typeform.md +190 -0
- package/departments/marketing/tools/integrations/webflow.md +198 -0
- package/departments/marketing/tools/integrations/wistia.md +164 -0
- package/departments/marketing/tools/integrations/wordpress.md +175 -0
- package/departments/marketing/tools/integrations/zapier.md +244 -0
- package/departments/marketing/tools/integrations/zoominfo.md +191 -0
- package/departments/quality/agents/copy-director.yaml +1 -0
- package/departments/saas/SKILL.md +1 -0
- package/departments/saas/skills/churn-analysis/SKILL.md +421 -4
- package/departments/saas/skills/churn-analysis/references/cancel-flow-patterns.md +316 -0
- package/departments/saas/skills/churn-analysis/references/dunning-playbook.md +408 -0
- package/departments/saas/skills/launch-execute/SKILL.md +346 -4
- package/departments/saas/skills/onboarding-optimize/SKILL.md +218 -4
- package/departments/saas/skills/onboarding-optimize/references/experiments.md +258 -0
- package/departments/saas/skills/paywall-design/SKILL.md +256 -0
- package/departments/saas/skills/paywall-design/references/experiments.md +164 -0
- package/departments/saas/skills/pricing-strategy/SKILL.md +224 -0
- package/departments/saas/skills/pricing-strategy/references/research-methods.md +152 -0
- package/departments/saas/skills/pricing-strategy/references/tier-structure.md +232 -0
- package/departments/sales/SKILL.md +3 -0
- package/departments/sales/skills/prospecting/SKILL.md +297 -0
- package/departments/sales/skills/prospecting/references/b2b-prospecting.md +106 -0
- package/departments/sales/skills/prospecting/references/compliance.md +123 -0
- package/departments/sales/skills/prospecting/references/data-sources.md +287 -0
- package/departments/sales/skills/prospecting/references/demand-signals.md +129 -0
- package/departments/sales/skills/prospecting/references/local-prospecting.md +165 -0
- package/departments/sales/skills/prospecting/references/saas-prospecting.md +123 -0
- package/departments/sales/skills/revops/SKILL.md +379 -0
- package/departments/sales/skills/revops/references/automation-playbooks.md +290 -0
- package/departments/sales/skills/revops/references/lifecycle-definitions.md +278 -0
- package/departments/sales/skills/revops/references/routing-rules.md +203 -0
- package/departments/sales/skills/revops/references/scoring-models.md +247 -0
- package/departments/sales/skills/sales-enablement/SKILL.md +396 -0
- package/departments/sales/skills/sales-enablement/references/deck-frameworks.md +263 -0
- package/departments/sales/skills/sales-enablement/references/demo-scripts.md +355 -0
- package/departments/sales/skills/sales-enablement/references/objection-library.md +270 -0
- package/departments/sales/skills/sales-enablement/references/one-pager-templates.md +208 -0
- package/harness/codex/AGENTS.md +8 -8
- package/harness/copilot/copilot-instructions.md +8 -8
- package/harness/cursor/rules/arkaos.mdc +9 -9
- package/harness/gemini/GEMINI.md +8 -8
- package/harness/opencode/AGENTS.md +8 -8
- package/harness/zed/.rules +8 -8
- package/knowledge/agents-registry-v2.json +170 -8
- package/knowledge/commands-registry.json +693 -99
- package/knowledge/skills-manifest.json +459 -20
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/tools/evals_import.py +183 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const PUBLIC_KEY = process.env.PARTNERSTACK_PUBLIC_KEY
|
|
4
|
+
const SECRET_KEY = process.env.PARTNERSTACK_SECRET_KEY
|
|
5
|
+
const BASE_URL = 'https://api.partnerstack.com/api/v2'
|
|
6
|
+
|
|
7
|
+
if (!PUBLIC_KEY || !SECRET_KEY) {
|
|
8
|
+
console.error(JSON.stringify({ error: 'PARTNERSTACK_PUBLIC_KEY and PARTNERSTACK_SECRET_KEY environment variables required' }))
|
|
9
|
+
process.exit(1)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const AUTH = 'Basic ' + Buffer.from(`${PUBLIC_KEY}:${SECRET_KEY}`).toString('base64')
|
|
13
|
+
|
|
14
|
+
async function api(method, path, body) {
|
|
15
|
+
if (args['dry-run']) {
|
|
16
|
+
return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { Authorization: '***', 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: body || undefined }
|
|
17
|
+
}
|
|
18
|
+
const res = await fetch(`${BASE_URL}${path}`, {
|
|
19
|
+
method,
|
|
20
|
+
headers: {
|
|
21
|
+
'Authorization': AUTH,
|
|
22
|
+
'Content-Type': 'application/json',
|
|
23
|
+
'Accept': 'application/json',
|
|
24
|
+
},
|
|
25
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
26
|
+
})
|
|
27
|
+
const text = await res.text()
|
|
28
|
+
try {
|
|
29
|
+
return JSON.parse(text)
|
|
30
|
+
} catch {
|
|
31
|
+
return { status: res.status, body: text }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function parseArgs(args) {
|
|
36
|
+
const result = { _: [] }
|
|
37
|
+
for (let i = 0; i < args.length; i++) {
|
|
38
|
+
const arg = args[i]
|
|
39
|
+
if (arg.startsWith('--')) {
|
|
40
|
+
const key = arg.slice(2)
|
|
41
|
+
const next = args[i + 1]
|
|
42
|
+
if (next && !next.startsWith('--')) {
|
|
43
|
+
result[key] = next
|
|
44
|
+
i++
|
|
45
|
+
} else {
|
|
46
|
+
result[key] = true
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
result._.push(arg)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return result
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const args = parseArgs(process.argv.slice(2))
|
|
56
|
+
const [cmd, sub, ...rest] = args._
|
|
57
|
+
const limit = args.limit ? Number(args.limit) : 10
|
|
58
|
+
|
|
59
|
+
function buildQuery() {
|
|
60
|
+
const params = new URLSearchParams()
|
|
61
|
+
if (args.limit) params.set('limit', args.limit)
|
|
62
|
+
if (args.after) params.set('starting_after', args.after)
|
|
63
|
+
if (args.before) params.set('ending_before', args.before)
|
|
64
|
+
if (args['order-by']) params.set('order_by', args['order-by'])
|
|
65
|
+
return params.toString() ? `?${params.toString()}` : ''
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function main() {
|
|
69
|
+
let result
|
|
70
|
+
|
|
71
|
+
switch (cmd) {
|
|
72
|
+
case 'partnerships':
|
|
73
|
+
switch (sub) {
|
|
74
|
+
case 'list':
|
|
75
|
+
result = await api('GET', `/partnerships${buildQuery()}`)
|
|
76
|
+
break
|
|
77
|
+
case 'get': {
|
|
78
|
+
const key = args.key
|
|
79
|
+
if (!key) { result = { error: '--key required (partnership key)' }; break }
|
|
80
|
+
result = await api('GET', `/partnerships/${key}`)
|
|
81
|
+
break
|
|
82
|
+
}
|
|
83
|
+
case 'create': {
|
|
84
|
+
const email = args.email
|
|
85
|
+
const group = args.group
|
|
86
|
+
if (!email) { result = { error: '--email required' }; break }
|
|
87
|
+
if (!group) { result = { error: '--group required (group key)' }; break }
|
|
88
|
+
const body = { email, group_key: group }
|
|
89
|
+
if (args.name) body.name = args.name
|
|
90
|
+
if (args['first-name']) body.first_name = args['first-name']
|
|
91
|
+
if (args['last-name']) body.last_name = args['last-name']
|
|
92
|
+
result = await api('POST', '/partnerships', body)
|
|
93
|
+
break
|
|
94
|
+
}
|
|
95
|
+
case 'update': {
|
|
96
|
+
const key = args.key
|
|
97
|
+
if (!key) { result = { error: '--key required (partnership key)' }; break }
|
|
98
|
+
const body = {}
|
|
99
|
+
if (args.name) body.name = args.name
|
|
100
|
+
if (args.group) body.group_key = args.group
|
|
101
|
+
result = await api('PATCH', `/partnerships/${key}`, body)
|
|
102
|
+
break
|
|
103
|
+
}
|
|
104
|
+
default:
|
|
105
|
+
result = { error: 'Unknown partnerships subcommand. Use: list, get, create, update' }
|
|
106
|
+
}
|
|
107
|
+
break
|
|
108
|
+
|
|
109
|
+
case 'customers':
|
|
110
|
+
switch (sub) {
|
|
111
|
+
case 'list':
|
|
112
|
+
result = await api('GET', `/customers${buildQuery()}`)
|
|
113
|
+
break
|
|
114
|
+
case 'get': {
|
|
115
|
+
const key = args.key
|
|
116
|
+
if (!key) { result = { error: '--key required (customer key)' }; break }
|
|
117
|
+
result = await api('GET', `/customers/${key}`)
|
|
118
|
+
break
|
|
119
|
+
}
|
|
120
|
+
case 'create': {
|
|
121
|
+
const email = args.email
|
|
122
|
+
const partnerKey = args['partner-key']
|
|
123
|
+
if (!email) { result = { error: '--email required' }; break }
|
|
124
|
+
if (!partnerKey) { result = { error: '--partner-key required' }; break }
|
|
125
|
+
const body = { email, partner_key: partnerKey }
|
|
126
|
+
if (args.name) body.name = args.name
|
|
127
|
+
if (args['customer-key']) body.customer_key = args['customer-key']
|
|
128
|
+
result = await api('POST', '/customers', body)
|
|
129
|
+
break
|
|
130
|
+
}
|
|
131
|
+
case 'update': {
|
|
132
|
+
const key = args.key
|
|
133
|
+
if (!key) { result = { error: '--key required (customer key)' }; break }
|
|
134
|
+
const body = {}
|
|
135
|
+
if (args.name) body.name = args.name
|
|
136
|
+
if (args.email) body.email = args.email
|
|
137
|
+
if (args['partner-key']) body.partner_key = args['partner-key']
|
|
138
|
+
result = await api('PATCH', `/customers/${key}`, body)
|
|
139
|
+
break
|
|
140
|
+
}
|
|
141
|
+
case 'delete': {
|
|
142
|
+
const key = args.key
|
|
143
|
+
if (!key) { result = { error: '--key required (customer key)' }; break }
|
|
144
|
+
result = await api('DELETE', `/customers/${key}`)
|
|
145
|
+
break
|
|
146
|
+
}
|
|
147
|
+
default:
|
|
148
|
+
result = { error: 'Unknown customers subcommand. Use: list, get, create, update, delete' }
|
|
149
|
+
}
|
|
150
|
+
break
|
|
151
|
+
|
|
152
|
+
case 'transactions':
|
|
153
|
+
switch (sub) {
|
|
154
|
+
case 'list':
|
|
155
|
+
result = await api('GET', `/transactions${buildQuery()}`)
|
|
156
|
+
break
|
|
157
|
+
case 'get': {
|
|
158
|
+
const key = args.key
|
|
159
|
+
if (!key) { result = { error: '--key required (transaction key)' }; break }
|
|
160
|
+
result = await api('GET', `/transactions/${key}`)
|
|
161
|
+
break
|
|
162
|
+
}
|
|
163
|
+
case 'create': {
|
|
164
|
+
const customerKey = args['customer-key']
|
|
165
|
+
const amount = args.amount
|
|
166
|
+
if (!customerKey) { result = { error: '--customer-key required' }; break }
|
|
167
|
+
if (!amount) { result = { error: '--amount required (in cents)' }; break }
|
|
168
|
+
const body = {
|
|
169
|
+
customer_key: customerKey,
|
|
170
|
+
amount: Number(amount),
|
|
171
|
+
}
|
|
172
|
+
if (args.currency) body.currency = args.currency
|
|
173
|
+
if (args.category) body.category = args.category
|
|
174
|
+
if (args['product-key']) body.product_key = args['product-key']
|
|
175
|
+
result = await api('POST', '/transactions', body)
|
|
176
|
+
break
|
|
177
|
+
}
|
|
178
|
+
case 'delete': {
|
|
179
|
+
const key = args.key
|
|
180
|
+
if (!key) { result = { error: '--key required (transaction key)' }; break }
|
|
181
|
+
result = await api('DELETE', `/transactions/${key}`)
|
|
182
|
+
break
|
|
183
|
+
}
|
|
184
|
+
default:
|
|
185
|
+
result = { error: 'Unknown transactions subcommand. Use: list, get, create, delete' }
|
|
186
|
+
}
|
|
187
|
+
break
|
|
188
|
+
|
|
189
|
+
case 'deals':
|
|
190
|
+
switch (sub) {
|
|
191
|
+
case 'list':
|
|
192
|
+
result = await api('GET', `/deals${buildQuery()}`)
|
|
193
|
+
break
|
|
194
|
+
case 'get': {
|
|
195
|
+
const key = args.key
|
|
196
|
+
if (!key) { result = { error: '--key required (deal key)' }; break }
|
|
197
|
+
result = await api('GET', `/deals/${key}`)
|
|
198
|
+
break
|
|
199
|
+
}
|
|
200
|
+
case 'create': {
|
|
201
|
+
const partnerKey = args['partner-key']
|
|
202
|
+
const name = args.name
|
|
203
|
+
if (!partnerKey) { result = { error: '--partner-key required' }; break }
|
|
204
|
+
if (!name) { result = { error: '--name required' }; break }
|
|
205
|
+
const body = { partner_key: partnerKey, name }
|
|
206
|
+
if (args.amount) body.amount = Number(args.amount)
|
|
207
|
+
if (args.currency) body.currency = args.currency
|
|
208
|
+
if (args.stage) body.stage = args.stage
|
|
209
|
+
result = await api('POST', '/deals', body)
|
|
210
|
+
break
|
|
211
|
+
}
|
|
212
|
+
case 'update': {
|
|
213
|
+
const key = args.key
|
|
214
|
+
if (!key) { result = { error: '--key required (deal key)' }; break }
|
|
215
|
+
const body = {}
|
|
216
|
+
if (args.name) body.name = args.name
|
|
217
|
+
if (args.amount) body.amount = Number(args.amount)
|
|
218
|
+
if (args.stage) body.stage = args.stage
|
|
219
|
+
if (args.status) body.status = args.status
|
|
220
|
+
result = await api('PATCH', `/deals/${key}`, body)
|
|
221
|
+
break
|
|
222
|
+
}
|
|
223
|
+
case 'archive': {
|
|
224
|
+
const key = args.key
|
|
225
|
+
if (!key) { result = { error: '--key required (deal key)' }; break }
|
|
226
|
+
result = await api('DELETE', `/deals/${key}`)
|
|
227
|
+
break
|
|
228
|
+
}
|
|
229
|
+
default:
|
|
230
|
+
result = { error: 'Unknown deals subcommand. Use: list, get, create, update, archive' }
|
|
231
|
+
}
|
|
232
|
+
break
|
|
233
|
+
|
|
234
|
+
case 'actions':
|
|
235
|
+
switch (sub) {
|
|
236
|
+
case 'list':
|
|
237
|
+
result = await api('GET', `/actions${buildQuery()}`)
|
|
238
|
+
break
|
|
239
|
+
case 'create': {
|
|
240
|
+
const customerKey = args['customer-key']
|
|
241
|
+
const actionKey = args['action-key']
|
|
242
|
+
if (!customerKey) { result = { error: '--customer-key required' }; break }
|
|
243
|
+
if (!actionKey) { result = { error: '--action-key required' }; break }
|
|
244
|
+
const body = {
|
|
245
|
+
customer_key: customerKey,
|
|
246
|
+
key: actionKey,
|
|
247
|
+
}
|
|
248
|
+
if (args.value) body.value = Number(args.value)
|
|
249
|
+
result = await api('POST', '/actions', body)
|
|
250
|
+
break
|
|
251
|
+
}
|
|
252
|
+
default:
|
|
253
|
+
result = { error: 'Unknown actions subcommand. Use: list, create' }
|
|
254
|
+
}
|
|
255
|
+
break
|
|
256
|
+
|
|
257
|
+
case 'rewards':
|
|
258
|
+
switch (sub) {
|
|
259
|
+
case 'list':
|
|
260
|
+
result = await api('GET', `/rewards${buildQuery()}`)
|
|
261
|
+
break
|
|
262
|
+
case 'create': {
|
|
263
|
+
const partnerKey = args['partner-key']
|
|
264
|
+
const amount = args.amount
|
|
265
|
+
if (!partnerKey) { result = { error: '--partner-key required' }; break }
|
|
266
|
+
if (!amount) { result = { error: '--amount required (in cents)' }; break }
|
|
267
|
+
const body = {
|
|
268
|
+
partner_key: partnerKey,
|
|
269
|
+
amount: Number(amount),
|
|
270
|
+
}
|
|
271
|
+
if (args.description) body.description = args.description
|
|
272
|
+
if (args.currency) body.currency = args.currency
|
|
273
|
+
result = await api('POST', '/rewards', body)
|
|
274
|
+
break
|
|
275
|
+
}
|
|
276
|
+
default:
|
|
277
|
+
result = { error: 'Unknown rewards subcommand. Use: list, create' }
|
|
278
|
+
}
|
|
279
|
+
break
|
|
280
|
+
|
|
281
|
+
case 'leads':
|
|
282
|
+
switch (sub) {
|
|
283
|
+
case 'list':
|
|
284
|
+
result = await api('GET', `/leads${buildQuery()}`)
|
|
285
|
+
break
|
|
286
|
+
case 'get': {
|
|
287
|
+
const key = args.key
|
|
288
|
+
if (!key) { result = { error: '--key required (lead key)' }; break }
|
|
289
|
+
result = await api('GET', `/leads/${key}`)
|
|
290
|
+
break
|
|
291
|
+
}
|
|
292
|
+
case 'create': {
|
|
293
|
+
const partnerKey = args['partner-key']
|
|
294
|
+
const email = args.email
|
|
295
|
+
if (!partnerKey) { result = { error: '--partner-key required' }; break }
|
|
296
|
+
if (!email) { result = { error: '--email required' }; break }
|
|
297
|
+
const body = { partner_key: partnerKey, email }
|
|
298
|
+
if (args.name) body.name = args.name
|
|
299
|
+
if (args.company) body.company = args.company
|
|
300
|
+
result = await api('POST', '/leads', body)
|
|
301
|
+
break
|
|
302
|
+
}
|
|
303
|
+
case 'update': {
|
|
304
|
+
const key = args.key
|
|
305
|
+
if (!key) { result = { error: '--key required (lead key)' }; break }
|
|
306
|
+
const body = {}
|
|
307
|
+
if (args.email) body.email = args.email
|
|
308
|
+
if (args.name) body.name = args.name
|
|
309
|
+
if (args.status) body.status = args.status
|
|
310
|
+
result = await api('PATCH', `/leads/${key}`, body)
|
|
311
|
+
break
|
|
312
|
+
}
|
|
313
|
+
default:
|
|
314
|
+
result = { error: 'Unknown leads subcommand. Use: list, get, create, update' }
|
|
315
|
+
}
|
|
316
|
+
break
|
|
317
|
+
|
|
318
|
+
case 'groups':
|
|
319
|
+
switch (sub) {
|
|
320
|
+
case 'list':
|
|
321
|
+
result = await api('GET', `/groups${buildQuery()}`)
|
|
322
|
+
break
|
|
323
|
+
default:
|
|
324
|
+
result = { error: 'Unknown groups subcommand. Use: list' }
|
|
325
|
+
}
|
|
326
|
+
break
|
|
327
|
+
|
|
328
|
+
case 'webhooks':
|
|
329
|
+
switch (sub) {
|
|
330
|
+
case 'list':
|
|
331
|
+
result = await api('GET', `/webhooks${buildQuery()}`)
|
|
332
|
+
break
|
|
333
|
+
case 'get': {
|
|
334
|
+
const key = args.key
|
|
335
|
+
if (!key) { result = { error: '--key required (webhook key)' }; break }
|
|
336
|
+
result = await api('GET', `/webhooks/${key}`)
|
|
337
|
+
break
|
|
338
|
+
}
|
|
339
|
+
case 'create': {
|
|
340
|
+
const target = args.target
|
|
341
|
+
if (!target) { result = { error: '--target required (webhook URL)' }; break }
|
|
342
|
+
const body = { target }
|
|
343
|
+
if (args.events) body.events = args.events.split(',')
|
|
344
|
+
result = await api('POST', '/webhooks', body)
|
|
345
|
+
break
|
|
346
|
+
}
|
|
347
|
+
case 'delete': {
|
|
348
|
+
const key = args.key
|
|
349
|
+
if (!key) { result = { error: '--key required (webhook key)' }; break }
|
|
350
|
+
result = await api('DELETE', `/webhooks/${key}`)
|
|
351
|
+
break
|
|
352
|
+
}
|
|
353
|
+
default:
|
|
354
|
+
result = { error: 'Unknown webhooks subcommand. Use: list, get, create, delete' }
|
|
355
|
+
}
|
|
356
|
+
break
|
|
357
|
+
|
|
358
|
+
default:
|
|
359
|
+
result = {
|
|
360
|
+
error: 'Unknown command',
|
|
361
|
+
usage: {
|
|
362
|
+
partnerships: 'partnerships [list | get --key <key> | create --email <email> --group <group-key> | update --key <key>]',
|
|
363
|
+
customers: 'customers [list | get --key <key> | create --email <email> --partner-key <key> | update --key <key> | delete --key <key>]',
|
|
364
|
+
transactions: 'transactions [list | get --key <key> | create --customer-key <key> --amount <cents> | delete --key <key>]',
|
|
365
|
+
deals: 'deals [list | get --key <key> | create --partner-key <key> --name <name> | update --key <key> | archive --key <key>]',
|
|
366
|
+
actions: 'actions [list | create --customer-key <key> --action-key <key> [--value <n>]]',
|
|
367
|
+
rewards: 'rewards [list | create --partner-key <key> --amount <cents>]',
|
|
368
|
+
leads: 'leads [list | get --key <key> | create --partner-key <key> --email <email> | update --key <key>]',
|
|
369
|
+
groups: 'groups [list]',
|
|
370
|
+
webhooks: 'webhooks [list | get --key <key> | create --target <url> [--events <evt1,evt2>] | delete --key <key>]',
|
|
371
|
+
options: '--limit <n> --after <cursor> --before <cursor> --order-by <field>',
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
console.log(JSON.stringify(result, null, 2))
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
main().catch(err => {
|
|
380
|
+
console.error(JSON.stringify({ error: err.message }))
|
|
381
|
+
process.exit(1)
|
|
382
|
+
})
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const API_KEY = process.env.PENDO_INTEGRATION_KEY
|
|
4
|
+
const BASE_URL = 'https://app.pendo.io/api/v1'
|
|
5
|
+
|
|
6
|
+
if (!API_KEY) {
|
|
7
|
+
console.error(JSON.stringify({ error: 'PENDO_INTEGRATION_KEY environment variable required' }))
|
|
8
|
+
process.exit(1)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async function api(method, path, body) {
|
|
12
|
+
const url = `${BASE_URL}${path}`
|
|
13
|
+
if (args['dry-run']) {
|
|
14
|
+
return { _dry_run: true, method, url, headers: { 'Content-Type': 'application/json', 'x-pendo-integration-key': '***' }, body: body || undefined }
|
|
15
|
+
}
|
|
16
|
+
const res = await fetch(url, {
|
|
17
|
+
method,
|
|
18
|
+
headers: {
|
|
19
|
+
'Content-Type': 'application/json',
|
|
20
|
+
'x-pendo-integration-key': API_KEY,
|
|
21
|
+
},
|
|
22
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
23
|
+
})
|
|
24
|
+
const text = await res.text()
|
|
25
|
+
try {
|
|
26
|
+
return JSON.parse(text)
|
|
27
|
+
} catch {
|
|
28
|
+
return { status: res.status, body: text }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function parseArgs(args) {
|
|
33
|
+
const result = { _: [] }
|
|
34
|
+
for (let i = 0; i < args.length; i++) {
|
|
35
|
+
const arg = args[i]
|
|
36
|
+
if (arg.startsWith('--')) {
|
|
37
|
+
const key = arg.slice(2)
|
|
38
|
+
const next = args[i + 1]
|
|
39
|
+
if (next && !next.startsWith('--')) {
|
|
40
|
+
result[key] = next
|
|
41
|
+
i++
|
|
42
|
+
} else {
|
|
43
|
+
result[key] = true
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
result._.push(arg)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return result
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const args = parseArgs(process.argv.slice(2))
|
|
53
|
+
const [cmd, sub, ...rest] = args._
|
|
54
|
+
|
|
55
|
+
async function main() {
|
|
56
|
+
let result
|
|
57
|
+
|
|
58
|
+
switch (cmd) {
|
|
59
|
+
case 'features':
|
|
60
|
+
switch (sub) {
|
|
61
|
+
case 'list':
|
|
62
|
+
result = await api('GET', '/feature')
|
|
63
|
+
break
|
|
64
|
+
case 'get': {
|
|
65
|
+
const id = args.id
|
|
66
|
+
if (!id) { result = { error: '--id required' }; break }
|
|
67
|
+
result = await api('GET', `/feature/${id}`)
|
|
68
|
+
break
|
|
69
|
+
}
|
|
70
|
+
default:
|
|
71
|
+
result = { error: 'Unknown features subcommand. Use: list, get' }
|
|
72
|
+
}
|
|
73
|
+
break
|
|
74
|
+
|
|
75
|
+
case 'pages':
|
|
76
|
+
switch (sub) {
|
|
77
|
+
case 'list':
|
|
78
|
+
result = await api('GET', '/page')
|
|
79
|
+
break
|
|
80
|
+
case 'get': {
|
|
81
|
+
const id = args.id
|
|
82
|
+
if (!id) { result = { error: '--id required' }; break }
|
|
83
|
+
result = await api('GET', `/page/${id}`)
|
|
84
|
+
break
|
|
85
|
+
}
|
|
86
|
+
default:
|
|
87
|
+
result = { error: 'Unknown pages subcommand. Use: list, get' }
|
|
88
|
+
}
|
|
89
|
+
break
|
|
90
|
+
|
|
91
|
+
case 'guides':
|
|
92
|
+
switch (sub) {
|
|
93
|
+
case 'list': {
|
|
94
|
+
const params = new URLSearchParams()
|
|
95
|
+
if (args.state) params.set('state', args.state)
|
|
96
|
+
const qs = params.toString()
|
|
97
|
+
result = await api('GET', `/guide${qs ? '?' + qs : ''}`)
|
|
98
|
+
break
|
|
99
|
+
}
|
|
100
|
+
case 'get': {
|
|
101
|
+
const id = args.id
|
|
102
|
+
if (!id) { result = { error: '--id required' }; break }
|
|
103
|
+
result = await api('GET', `/guide/${id}`)
|
|
104
|
+
break
|
|
105
|
+
}
|
|
106
|
+
default:
|
|
107
|
+
result = { error: 'Unknown guides subcommand. Use: list, get' }
|
|
108
|
+
}
|
|
109
|
+
break
|
|
110
|
+
|
|
111
|
+
case 'visitors':
|
|
112
|
+
switch (sub) {
|
|
113
|
+
case 'get': {
|
|
114
|
+
const id = args.id
|
|
115
|
+
if (!id) { result = { error: '--id required' }; break }
|
|
116
|
+
result = await api('GET', `/visitor/${id}`)
|
|
117
|
+
break
|
|
118
|
+
}
|
|
119
|
+
case 'search': {
|
|
120
|
+
const query = args.query
|
|
121
|
+
if (!query) { result = { error: '--query <json> required' }; break }
|
|
122
|
+
let body
|
|
123
|
+
try { body = JSON.parse(query) } catch { result = { error: 'Invalid JSON in --query' }; break }
|
|
124
|
+
result = await api('POST', '/aggregation', body)
|
|
125
|
+
break
|
|
126
|
+
}
|
|
127
|
+
default:
|
|
128
|
+
result = { error: 'Unknown visitors subcommand. Use: get, search' }
|
|
129
|
+
}
|
|
130
|
+
break
|
|
131
|
+
|
|
132
|
+
case 'accounts':
|
|
133
|
+
switch (sub) {
|
|
134
|
+
case 'get': {
|
|
135
|
+
const id = args.id
|
|
136
|
+
if (!id) { result = { error: '--id required' }; break }
|
|
137
|
+
result = await api('GET', `/account/${id}`)
|
|
138
|
+
break
|
|
139
|
+
}
|
|
140
|
+
case 'search': {
|
|
141
|
+
const query = args.query
|
|
142
|
+
if (!query) { result = { error: '--query <json> required' }; break }
|
|
143
|
+
let body
|
|
144
|
+
try { body = JSON.parse(query) } catch { result = { error: 'Invalid JSON in --query' }; break }
|
|
145
|
+
result = await api('POST', '/aggregation', body)
|
|
146
|
+
break
|
|
147
|
+
}
|
|
148
|
+
default:
|
|
149
|
+
result = { error: 'Unknown accounts subcommand. Use: get, search' }
|
|
150
|
+
}
|
|
151
|
+
break
|
|
152
|
+
|
|
153
|
+
case 'reports':
|
|
154
|
+
switch (sub) {
|
|
155
|
+
case 'funnel': {
|
|
156
|
+
const pipeline = args.pipeline
|
|
157
|
+
if (!pipeline) { result = { error: '--pipeline <json> required' }; break }
|
|
158
|
+
let body
|
|
159
|
+
try { body = JSON.parse(pipeline) } catch { result = { error: 'Invalid JSON in --pipeline' }; break }
|
|
160
|
+
result = await api('POST', '/aggregation', body)
|
|
161
|
+
break
|
|
162
|
+
}
|
|
163
|
+
default:
|
|
164
|
+
result = { error: 'Unknown reports subcommand. Use: funnel' }
|
|
165
|
+
}
|
|
166
|
+
break
|
|
167
|
+
|
|
168
|
+
case 'metadata':
|
|
169
|
+
switch (sub) {
|
|
170
|
+
case 'list': {
|
|
171
|
+
const kind = args.kind
|
|
172
|
+
if (!kind) { result = { error: '--kind <visitor|account|parentAccount> required' }; break }
|
|
173
|
+
result = await api('GET', `/metadata/schema/${kind}`)
|
|
174
|
+
break
|
|
175
|
+
}
|
|
176
|
+
default:
|
|
177
|
+
result = { error: 'Unknown metadata subcommand. Use: list' }
|
|
178
|
+
}
|
|
179
|
+
break
|
|
180
|
+
|
|
181
|
+
default:
|
|
182
|
+
result = {
|
|
183
|
+
error: 'Unknown command',
|
|
184
|
+
usage: {
|
|
185
|
+
features: {
|
|
186
|
+
list: 'features list',
|
|
187
|
+
get: 'features get --id <id>',
|
|
188
|
+
},
|
|
189
|
+
pages: {
|
|
190
|
+
list: 'pages list',
|
|
191
|
+
get: 'pages get --id <id>',
|
|
192
|
+
},
|
|
193
|
+
guides: {
|
|
194
|
+
list: 'guides list [--state <state>]',
|
|
195
|
+
get: 'guides get --id <id>',
|
|
196
|
+
},
|
|
197
|
+
visitors: {
|
|
198
|
+
get: 'visitors get --id <id>',
|
|
199
|
+
search: 'visitors search --query <json>',
|
|
200
|
+
},
|
|
201
|
+
accounts: {
|
|
202
|
+
get: 'accounts get --id <id>',
|
|
203
|
+
search: 'accounts search --query <json>',
|
|
204
|
+
},
|
|
205
|
+
reports: {
|
|
206
|
+
funnel: 'reports funnel --pipeline <json>',
|
|
207
|
+
},
|
|
208
|
+
metadata: {
|
|
209
|
+
list: 'metadata list --kind <visitor|account|parentAccount>',
|
|
210
|
+
},
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
console.log(JSON.stringify(result, null, 2))
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
main().catch(err => {
|
|
219
|
+
console.error(JSON.stringify({ error: err.message }))
|
|
220
|
+
process.exit(1)
|
|
221
|
+
})
|