thumbgate 1.39.1 → 1.40.2
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/.claude-plugin/plugin.json +1 -1
- package/.well-known/llms.txt +2 -2
- package/.well-known/mcp/server-card.json +1 -1
- package/README.md +5 -4
- package/adapters/claude/.mcp.json +6 -2
- package/adapters/codex/config.toml +5 -0
- package/adapters/forge/forge.yaml +4 -4
- package/adapters/future-agi/.mcp.json +1 -1
- package/adapters/future-agi/config.toml +1 -1
- package/adapters/future-agi/opencode.json +1 -1
- package/adapters/herdr/herdr-plugin.toml +2 -2
- package/adapters/mcp/server-stdio.js +82 -7
- package/adapters/opencode/opencode.json +1 -1
- package/bin/cli.js +128 -15
- package/config/brand-standards.json +131 -0
- package/config/gates/default.json +18 -1
- package/config/github-about.json +1 -1
- package/config/mcp-allowlists.json +16 -3
- package/config/merge-quality-checks.json +1 -0
- package/config/post-deploy-marketing-pages.json +3 -3
- package/config/schemas/task-outcome-receipt.schema.json +9 -0
- package/openapi/openapi.yaml +7 -3
- package/package.json +98 -31
- package/public/about.html +2 -2
- package/public/admin.html +771 -0
- package/public/agent-manager.html +3 -3
- package/public/agents-cost-savings.html +1 -1
- package/public/ai-malpractice-prevention.html +12 -12
- package/public/architecture.html +0 -1
- package/public/assets/diagrams/decision.svg +3 -3
- package/public/blog/2026-10-05-why-3-days-of-triage-wont-save-ai-speed-code.html +1 -1
- package/public/blog/2026-10-09-your-code-got-a-third-author-governance.html +1 -1
- package/public/blog/git-at-agent-scale.html +2 -2
- package/public/blog/inside-your-boundary.html +1 -1
- package/public/blog/process-over-outcome-gates.html +1 -1
- package/public/case-studies.html +1 -2
- package/public/codex-enterprise.html +1 -1
- package/public/codex-plugin.html +1 -1
- package/public/dashboard.html +773 -481
- package/public/diagnostic.html +8 -3
- package/public/enterprise-governance.html +26 -174
- package/public/eval-scorecard.html +3 -4
- package/public/eval-scorecard.json +2 -2
- package/public/evaluations.html +0 -1
- package/public/founders.html +3 -3
- package/public/gaming-playbook.html +4 -4
- package/public/guide.html +3 -5
- package/public/index.html +181 -205
- package/public/install.html +12 -11
- package/public/js/buyer-intent.js +49 -8
- package/public/lessons.html +103 -46
- package/public/numbers.html +32 -33
- package/public/operator-framework.html +44 -72
- package/public/peter.html +3 -3
- package/public/platform-partners.html +1 -1
- package/public/pricing.html +61 -327
- package/public/pro.html +3 -1
- package/public/project-switcher.js +76 -0
- package/public/whitepaper.html +1 -2
- package/scripts/activation-quickstart.js +15 -3
- package/scripts/activation-tracker.js +280 -3
- package/scripts/agent-action-inventory.js +235 -143
- package/scripts/agent-operations-planner.js +1 -1
- package/scripts/agent-readiness.js +36 -6
- package/scripts/agentic-prompt-pipelines.js +901 -0
- package/scripts/analytics-report.js +363 -0
- package/scripts/analytics-window.js +7 -1
- package/scripts/async-job-runner.js +66 -11
- package/scripts/audit-trail.js +37 -24
- package/scripts/auto-context-packs.js +249 -0
- package/scripts/auto-promote-gates.js +37 -27
- package/scripts/backfill-lesson-scopes.js +122 -0
- package/scripts/billing-setup.js +137 -0
- package/scripts/billing.js +889 -132
- package/scripts/bot-detection.js +112 -0
- package/scripts/brand-standards-gate.js +571 -0
- package/scripts/chatgpt-ads-readiness-pack.js +1 -1
- package/scripts/check-update.js +236 -0
- package/scripts/cli-schema.js +1 -1
- package/scripts/commercial-offer.js +2 -2
- package/scripts/contextfs.js +9 -3
- package/scripts/conversion-rate-stats.js +442 -0
- package/scripts/cost-cli.js +147 -0
- package/scripts/creator-campaigns.js +239 -0
- package/scripts/cross-encoder-reranker.js +4 -0
- package/scripts/cuda-gate-batch.js +560 -0
- package/scripts/daemon-manager.js +108 -0
- package/scripts/dashboard-chat.js +11 -0
- package/scripts/dashboard.js +576 -169
- package/scripts/decision-journal.js +7 -4
- package/scripts/delegation-runtime.js +1036 -0
- package/scripts/dispatch-brief.js +159 -0
- package/scripts/distribution-surfaces.js +110 -0
- package/scripts/docker-sandbox-planner.js +3 -3
- package/scripts/egm-goldfish-packet.js +95 -0
- package/scripts/embeddinggemma-adapter.js +407 -0
- package/scripts/export-dpo-pairs.js +12 -7
- package/scripts/feedback-aggregate.js +4 -0
- package/scripts/feedback-attribution.js +6 -4
- package/scripts/feedback-history-distiller.js +18 -6
- package/scripts/feedback-loop.js +255 -89
- package/scripts/feedback-paths.js +8 -1
- package/scripts/feedback-sanitizer.js +5 -0
- package/scripts/feedback-scope.js +106 -0
- package/scripts/feedback-session.js +8 -2
- package/scripts/filesystem-search.js +13 -8
- package/scripts/financial-control-plane.js +707 -45
- package/scripts/funnel-analytics.js +35 -0
- package/scripts/gate-semantic-layer.js +292 -0
- package/scripts/gate-stats.js +8 -2
- package/scripts/gates-engine.js +694 -230
- package/scripts/generate-eval-scorecard.js +0 -1
- package/scripts/harness-tool-names.js +31 -5
- package/scripts/hybrid-feedback-context.js +5 -2
- package/scripts/implementation-notes.js +241 -0
- package/scripts/intent-router.js +518 -0
- package/scripts/intervention-policy.js +2 -1
- package/scripts/latency-budget.js +164 -0
- package/scripts/lesson-canonical.js +2 -2
- package/scripts/lesson-db.js +55 -14
- package/scripts/lesson-graph.js +2 -1
- package/scripts/lesson-retrieval.js +95 -9
- package/scripts/lesson-search.js +86 -22
- package/scripts/lesson-synthesis.js +21 -5
- package/scripts/mailer/index.js +17 -1
- package/scripts/mailer/resend-mailer.js +213 -179
- package/scripts/mcp-writeguard.js +158 -0
- package/scripts/migrate-project-scope.js +209 -0
- package/scripts/model-candidates.js +414 -0
- package/scripts/openrouter-armor-partnership-diode.js +2419 -0
- package/scripts/operational-dashboard.js +172 -0
- package/scripts/operational-integrity.js +436 -3
- package/scripts/operational-summary.js +190 -0
- package/scripts/operator-artifacts.js +622 -0
- package/scripts/optimize-context.js +17 -0
- package/scripts/override-audit.js +2 -0
- package/scripts/owner-admin.js +338 -0
- package/scripts/pr-manager.js +194 -1
- package/scripts/predictive-insights.js +449 -0
- package/scripts/profound-aeo-citation-engine.js +583 -0
- package/scripts/progressive-signoff.js +260 -0
- package/scripts/project-catalog.js +243 -0
- package/scripts/project-dashboard.js +61 -0
- package/scripts/project-evidence.js +172 -0
- package/scripts/project-identity.js +182 -0
- package/scripts/project-scope.js +381 -0
- package/scripts/prompt-guard.js +446 -52
- package/scripts/proof-report.js +232 -0
- package/scripts/provider-action-normalizer.js +14 -6
- package/scripts/pulse.js +80 -0
- package/scripts/rate-limiter.js +41 -0
- package/scripts/rrsi-doctor.js +2698 -0
- package/scripts/secret-redaction.js +171 -25
- package/scripts/secret-scanner.js +101 -42
- package/scripts/self-protection.js +2 -2
- package/scripts/seo-gsd.js +14 -14
- package/scripts/session-context-dedupe.js +66 -0
- package/scripts/session-report.js +120 -0
- package/scripts/settings-hierarchy.js +4 -2
- package/scripts/statusline-meta.js +34 -23
- package/scripts/subagent-profiles.js +79 -0
- package/scripts/task-outcomes.js +29 -2
- package/scripts/telemetry-analytics.js +238 -13
- package/scripts/third-author-cli.js +118 -0
- package/scripts/third-author-governance.js +437 -0
- package/scripts/thumbgate-dream.js +878 -0
- package/scripts/thumbgate-search.js +23 -9
- package/scripts/tool-kpi-tracker.js +5 -2
- package/scripts/tool-registry.js +42 -1
- package/scripts/triage-savings-calculator.js +1 -1
- package/scripts/vector-store.js +4 -1
- package/scripts/verified-lessons.js +270 -0
- package/scripts/verify-marketing-pages-deployed.js +2 -2
- package/scripts/workflow-sentinel.js +29 -10
- package/server.json +2 -2
- package/skills/thumbgate-daily-discoveries/SKILL.md +25 -41
- package/src/api/server.js +2371 -451
- package/src/feedback.js +21 -0
- package/src/hermes-sync-plane.js +2 -1
- package/src/index.js +2 -0
- package/src/lesson-search.js +9 -0
- package/src/mckinsey-top-company-ai-coding.js +493 -0
- package/src/mcp/server.js +3 -0
- package/src/mcp-writeguard.js +772 -11
- package/src/openshell-lovable-engine.js +1475 -0
- package/src/task-outcome.js +3 -0
- package/config/evals/agent-safety-eval.json +0 -447
- package/config/evals/retrieval-ranking-golden.json +0 -522
- package/config/progressive/01-wire-only.json +0 -11
- package/config/progressive/02-dashboard-empty-ok.json +0 -10
- package/config/progressive/03-one-lesson.json +0 -10
- package/config/progressive/04-warn-fires.json +0 -11
- package/config/progressive/05-strict-optional.json +0 -11
- package/config/progressive/README.md +0 -15
- package/public/assets/diagrams/agent-integration.png +0 -0
- package/public/assets/diagrams/thumbgate-architecture.png +0 -0
- package/scripts/install-thumbgate-daily-publish-launchd.sh +0 -83
- package/scripts/thumbgate-daily-discoveries-publish.js +0 -461
- package/scripts/thumbgate-daily-discoveries-publish.sh +0 -18
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { resolveHostedBillingConfig } = require('./hosted-config');
|
|
4
|
+
|
|
5
|
+
const DEFAULT_TEAM_SEAT_COUNT = 3;
|
|
6
|
+
const DEFAULT_TOP_CREATORS = 5;
|
|
7
|
+
const CREATOR_CHANNELS = [
|
|
8
|
+
'youtube',
|
|
9
|
+
'x',
|
|
10
|
+
'linkedin',
|
|
11
|
+
'instagram',
|
|
12
|
+
'threads',
|
|
13
|
+
'tiktok',
|
|
14
|
+
];
|
|
15
|
+
const CREATOR_CONTENT_SHAPES = [
|
|
16
|
+
'review',
|
|
17
|
+
'workflow_teardown',
|
|
18
|
+
'before_after_demo',
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
function normalizeText(value) {
|
|
22
|
+
if (value === undefined || value === null) return '';
|
|
23
|
+
return String(value).trim();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function normalizeCreatorHandle(value) {
|
|
27
|
+
return normalizeText(value)
|
|
28
|
+
.replace(/^@+/, '')
|
|
29
|
+
.toLowerCase();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function slugify(value) {
|
|
33
|
+
return normalizeText(value)
|
|
34
|
+
.toLowerCase()
|
|
35
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
36
|
+
.replace(/^-+|-+$/g, '');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function buildCreatorOfferCode(handle, motion = 'pro') {
|
|
40
|
+
const creatorCode = slugify(handle).toUpperCase() || 'CREATOR';
|
|
41
|
+
const motionCode = slugify(motion).toUpperCase() || 'PRO';
|
|
42
|
+
return `${creatorCode}-${motionCode}`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function applyAttributionParams(url, attribution = {}) {
|
|
46
|
+
const params = {
|
|
47
|
+
utm_source: attribution.source,
|
|
48
|
+
utm_medium: attribution.utmMedium,
|
|
49
|
+
utm_campaign: attribution.utmCampaign,
|
|
50
|
+
utm_content: attribution.utmContent,
|
|
51
|
+
creator: attribution.creator,
|
|
52
|
+
community: attribution.community,
|
|
53
|
+
post_id: attribution.postId,
|
|
54
|
+
comment_id: attribution.commentId,
|
|
55
|
+
campaign_variant: attribution.campaignVariant,
|
|
56
|
+
offer_code: attribution.offerCode,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
for (const [key, value] of Object.entries(params)) {
|
|
60
|
+
const normalized = normalizeText(value);
|
|
61
|
+
if (normalized) {
|
|
62
|
+
url.searchParams.set(key, normalized);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return url;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function buildCreatorCampaignLinks(options = {}, runtimeConfig = resolveHostedBillingConfig({
|
|
69
|
+
requestOrigin: 'https://thumbgate-production.up.railway.app',
|
|
70
|
+
})) {
|
|
71
|
+
const creator = normalizeCreatorHandle(options.creator || options.handle);
|
|
72
|
+
if (!creator) {
|
|
73
|
+
throw new Error('buildCreatorCampaignLinks requires creator');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const source = slugify(options.source || options.platform || 'youtube');
|
|
77
|
+
if (!source) {
|
|
78
|
+
throw new Error('buildCreatorCampaignLinks requires source');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const campaign = slugify(options.campaign || `creator-${creator}-launch`);
|
|
82
|
+
const contentShape = slugify(options.contentShape || options.variant || 'review');
|
|
83
|
+
const community = normalizeText(options.community);
|
|
84
|
+
const postId = normalizeText(options.postId);
|
|
85
|
+
const commentId = normalizeText(options.commentId);
|
|
86
|
+
const offerCode = normalizeText(options.offerCode) || buildCreatorOfferCode(creator, options.motion || 'pro');
|
|
87
|
+
const teamSeatCount = Math.max(Number.parseInt(String(options.seatCount || DEFAULT_TEAM_SEAT_COUNT), 10) || DEFAULT_TEAM_SEAT_COUNT, DEFAULT_TEAM_SEAT_COUNT);
|
|
88
|
+
|
|
89
|
+
const attribution = {
|
|
90
|
+
creator,
|
|
91
|
+
source,
|
|
92
|
+
utmMedium: normalizeText(options.utmMedium) || 'creator_partnership',
|
|
93
|
+
utmCampaign: campaign,
|
|
94
|
+
utmContent: contentShape,
|
|
95
|
+
community,
|
|
96
|
+
postId,
|
|
97
|
+
commentId,
|
|
98
|
+
campaignVariant: contentShape,
|
|
99
|
+
offerCode,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const landingUrl = applyAttributionParams(new URL('/', runtimeConfig.appOrigin), attribution).toString();
|
|
103
|
+
|
|
104
|
+
const proCheckoutUrl = applyAttributionParams(new URL('/checkout/pro', runtimeConfig.appOrigin), attribution);
|
|
105
|
+
proCheckoutUrl.searchParams.set('cta_id', 'pricing_pro');
|
|
106
|
+
proCheckoutUrl.searchParams.set('cta_placement', 'creator_partnership');
|
|
107
|
+
proCheckoutUrl.searchParams.set('plan_id', 'pro');
|
|
108
|
+
|
|
109
|
+
const teamCheckoutUrl = applyAttributionParams(new URL('/checkout/pro', runtimeConfig.appOrigin), attribution);
|
|
110
|
+
teamCheckoutUrl.searchParams.set('cta_id', 'pricing_team');
|
|
111
|
+
teamCheckoutUrl.searchParams.set('cta_placement', 'creator_partnership');
|
|
112
|
+
teamCheckoutUrl.searchParams.set('plan_id', 'team');
|
|
113
|
+
teamCheckoutUrl.searchParams.set('billing_cycle', 'monthly');
|
|
114
|
+
teamCheckoutUrl.searchParams.set('seat_count', String(teamSeatCount));
|
|
115
|
+
|
|
116
|
+
const sprintUrl = applyAttributionParams(new URL('/', runtimeConfig.appOrigin), attribution);
|
|
117
|
+
sprintUrl.hash = 'workflow-sprint-intake';
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
creator,
|
|
121
|
+
attribution,
|
|
122
|
+
links: {
|
|
123
|
+
landingUrl,
|
|
124
|
+
proCheckoutUrl: proCheckoutUrl.toString(),
|
|
125
|
+
teamCheckoutUrl: teamCheckoutUrl.toString(),
|
|
126
|
+
sprintUrl: sprintUrl.toString(),
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function getCounterValue(counter = {}, key) {
|
|
132
|
+
return Number(counter && counter[key]) || 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function summarizeCreatorPerformance(telemetry = null, billingSummary = null, options = {}) {
|
|
136
|
+
const topN = Math.max(Number.parseInt(String(options.topN || DEFAULT_TOP_CREATORS), 10) || DEFAULT_TOP_CREATORS, 1);
|
|
137
|
+
const creators = new Set();
|
|
138
|
+
const addKeys = (counter) => {
|
|
139
|
+
for (const key of Object.keys(counter || {})) {
|
|
140
|
+
const normalized = normalizeText(key);
|
|
141
|
+
if (normalized && normalized !== 'unknown') creators.add(normalized);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
addKeys(telemetry && telemetry.visitors && telemetry.visitors.byCreator);
|
|
146
|
+
addKeys(telemetry && telemetry.ctas && telemetry.ctas.byCreator);
|
|
147
|
+
addKeys(telemetry && telemetry.ctas && telemetry.ctas.checkoutStartsByCreator);
|
|
148
|
+
addKeys(billingSummary && billingSummary.attribution && billingSummary.attribution.acquisitionByCreator);
|
|
149
|
+
addKeys(billingSummary && billingSummary.attribution && billingSummary.attribution.paidByCreator);
|
|
150
|
+
addKeys(billingSummary && billingSummary.attribution && billingSummary.attribution.bookedRevenueByCreatorCents);
|
|
151
|
+
addKeys(billingSummary && billingSummary.pipeline && billingSummary.pipeline.workflowSprintLeads && billingSummary.pipeline.workflowSprintLeads.byCreator);
|
|
152
|
+
addKeys(billingSummary && billingSummary.pipeline && billingSummary.pipeline.qualifiedWorkflowSprintLeads && billingSummary.pipeline.qualifiedWorkflowSprintLeads.byCreator);
|
|
153
|
+
|
|
154
|
+
return Array.from(creators)
|
|
155
|
+
.map((creator) => {
|
|
156
|
+
const visitors = getCounterValue(telemetry && telemetry.visitors && telemetry.visitors.byCreator, creator);
|
|
157
|
+
const ctaClicks = getCounterValue(telemetry && telemetry.ctas && telemetry.ctas.byCreator, creator);
|
|
158
|
+
const checkoutStarts = getCounterValue(telemetry && telemetry.ctas && telemetry.ctas.checkoutStartsByCreator, creator);
|
|
159
|
+
const acquisitions = getCounterValue(billingSummary && billingSummary.attribution && billingSummary.attribution.acquisitionByCreator, creator);
|
|
160
|
+
const paidOrders = getCounterValue(billingSummary && billingSummary.attribution && billingSummary.attribution.paidByCreator, creator);
|
|
161
|
+
const bookedRevenueCents = getCounterValue(billingSummary && billingSummary.attribution && billingSummary.attribution.bookedRevenueByCreatorCents, creator);
|
|
162
|
+
const sprintLeads = getCounterValue(
|
|
163
|
+
billingSummary && billingSummary.pipeline && billingSummary.pipeline.workflowSprintLeads && billingSummary.pipeline.workflowSprintLeads.byCreator,
|
|
164
|
+
creator
|
|
165
|
+
);
|
|
166
|
+
const qualifiedSprintLeads = getCounterValue(
|
|
167
|
+
billingSummary && billingSummary.pipeline && billingSummary.pipeline.qualifiedWorkflowSprintLeads && billingSummary.pipeline.qualifiedWorkflowSprintLeads.byCreator,
|
|
168
|
+
creator
|
|
169
|
+
);
|
|
170
|
+
return {
|
|
171
|
+
creator,
|
|
172
|
+
visitors,
|
|
173
|
+
ctaClicks,
|
|
174
|
+
checkoutStarts,
|
|
175
|
+
acquisitions,
|
|
176
|
+
paidOrders,
|
|
177
|
+
bookedRevenueCents,
|
|
178
|
+
sprintLeads,
|
|
179
|
+
qualifiedSprintLeads,
|
|
180
|
+
};
|
|
181
|
+
})
|
|
182
|
+
.sort((left, right) => (
|
|
183
|
+
right.bookedRevenueCents - left.bookedRevenueCents ||
|
|
184
|
+
right.paidOrders - left.paidOrders ||
|
|
185
|
+
right.qualifiedSprintLeads - left.qualifiedSprintLeads ||
|
|
186
|
+
right.checkoutStarts - left.checkoutStarts ||
|
|
187
|
+
right.visitors - left.visitors ||
|
|
188
|
+
left.creator.localeCompare(right.creator)
|
|
189
|
+
))
|
|
190
|
+
.slice(0, topN);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function parseArgs(argv = []) {
|
|
194
|
+
const options = {};
|
|
195
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
196
|
+
const token = argv[index];
|
|
197
|
+
if (!token.startsWith('--')) continue;
|
|
198
|
+
const [key, inlineValue] = token.slice(2).split('=');
|
|
199
|
+
if (inlineValue !== undefined) {
|
|
200
|
+
options[key] = inlineValue;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
const next = argv[index + 1];
|
|
204
|
+
if (next && !next.startsWith('--')) {
|
|
205
|
+
options[key] = next;
|
|
206
|
+
index += 1;
|
|
207
|
+
} else {
|
|
208
|
+
options[key] = true;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return options;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function runCli(argv = process.argv.slice(2), io = {}) {
|
|
215
|
+
const log = io.log || console.log;
|
|
216
|
+
const error = io.error || console.error;
|
|
217
|
+
const exit = io.exit || process.exit;
|
|
218
|
+
try {
|
|
219
|
+
const options = parseArgs(argv);
|
|
220
|
+
const result = buildCreatorCampaignLinks(options);
|
|
221
|
+
log(JSON.stringify(result, null, 2));
|
|
222
|
+
} catch (err) {
|
|
223
|
+
error(err.message);
|
|
224
|
+
exit(1);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
module.exports = {
|
|
229
|
+
CREATOR_CHANNELS,
|
|
230
|
+
CREATOR_CONTENT_SHAPES,
|
|
231
|
+
buildCreatorCampaignLinks,
|
|
232
|
+
buildCreatorOfferCode,
|
|
233
|
+
normalizeCreatorHandle,
|
|
234
|
+
summarizeCreatorPerformance,
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
if (require.main === module) {
|
|
238
|
+
runCli();
|
|
239
|
+
}
|
|
@@ -391,6 +391,8 @@ async function retrieveWithReranking(toolName, actionContext, options = {}) {
|
|
|
391
391
|
metadataFilters: options.metadataFilters,
|
|
392
392
|
queryRewrite: options.queryRewrite,
|
|
393
393
|
includeRetrievalMeta: options.includeRetrievalMeta,
|
|
394
|
+
cwd: options.cwd,
|
|
395
|
+
project: options.project,
|
|
394
396
|
embedder: options.embedder,
|
|
395
397
|
embedderId: options.embedderId,
|
|
396
398
|
});
|
|
@@ -416,6 +418,8 @@ function retrieveWithRerankingSync(toolName, actionContext, options = {}) {
|
|
|
416
418
|
metadataFilters: options.metadataFilters,
|
|
417
419
|
queryRewrite: options.queryRewrite,
|
|
418
420
|
includeRetrievalMeta: options.includeRetrievalMeta,
|
|
421
|
+
cwd: options.cwd,
|
|
422
|
+
project: options.project,
|
|
419
423
|
});
|
|
420
424
|
if (candidates.length === 0) return [];
|
|
421
425
|
|