Spaces:
Sleeping
Sleeping
Delete modules
Browse files- modules/amazon.js +0 -45
- modules/cloudflare.js +0 -25
- modules/dummy.js +0 -31
modules/amazon.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* AMAZON ELECTRONICS VENDOR
|
| 3 |
-
* Demonstrates routing based on specific items (iPhone vs Mac).
|
| 4 |
-
*/
|
| 5 |
-
|
| 6 |
-
module.exports = {
|
| 7 |
-
agent_id: 'amazon.anp',
|
| 8 |
-
display_name: 'Amazon Electronics',
|
| 9 |
-
categories: ['electronics', 'hardware', 'retail'],
|
| 10 |
-
capabilities: ['price_flex', 'bundle_shipping'],
|
| 11 |
-
|
| 12 |
-
getItemConstraints: (item_intent) => {
|
| 13 |
-
const intent = (item_intent || '').toLowerCase();
|
| 14 |
-
|
| 15 |
-
if (intent.includes('iphone 15')) {
|
| 16 |
-
return {
|
| 17 |
-
id: 'Apple iPhone 15 Pro (256GB)',
|
| 18 |
-
list_price: 1099.00,
|
| 19 |
-
floor_price: 950.00, // Tight margin on Apple products
|
| 20 |
-
context: `You are an Amazon B2B sales agent.
|
| 21 |
-
The buyer wants an iPhone 15 Pro. Apple products have strict pricing margins.
|
| 22 |
-
You can offer free expedited shipping to sweeten the deal, but rarely drop the price by more than $50 unless the buyer is extremely persistent.`
|
| 23 |
-
};
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
if (intent.includes('macbook')) {
|
| 27 |
-
return {
|
| 28 |
-
id: 'Apple MacBook Pro M3 (14-inch)',
|
| 29 |
-
list_price: 1599.00,
|
| 30 |
-
floor_price: 1300.00, // Higher margin, more room to negotiate
|
| 31 |
-
context: `You are an Amazon B2B sales agent.
|
| 32 |
-
The buyer wants a MacBook Pro M3. You have authorization to drop the price down to the floor limit to secure the sale.
|
| 33 |
-
Make incremental drops of $50-$100.`
|
| 34 |
-
};
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
// Default Amazon item if specific product isn't matched
|
| 38 |
-
return {
|
| 39 |
-
id: item_intent || 'Amazon Basics Item',
|
| 40 |
-
list_price: 50.00,
|
| 41 |
-
floor_price: 40.00,
|
| 42 |
-
context: `You are an Amazon sales agent. Offer small volume discounts.`
|
| 43 |
-
};
|
| 44 |
-
}
|
| 45 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modules/cloudflare.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* CLOUDFLARE REGISTRAR VENDOR
|
| 3 |
-
* Demonstrates SaaS constraints and cross-selling instructions.
|
| 4 |
-
*/
|
| 5 |
-
|
| 6 |
-
module.exports = {
|
| 7 |
-
agent_id: 'cloudflare.anp',
|
| 8 |
-
display_name: 'Cloudflare Domains & Infrastructure',
|
| 9 |
-
categories: ['domains', 'saas', 'infrastructure'],
|
| 10 |
-
capabilities: ['price_flex', 'multi_year_bundle'],
|
| 11 |
-
|
| 12 |
-
getItemConstraints: (item_intent) => {
|
| 13 |
-
// Cloudflare sells domains at wholesale, so floor price is very close to list price
|
| 14 |
-
return {
|
| 15 |
-
id: item_intent || 'clinchprotocol.io',
|
| 16 |
-
list_price: 65.00,
|
| 17 |
-
floor_price: 58.00, // ICANN wholesale floor
|
| 18 |
-
context: `You are an AI registrar agent for Cloudflare.
|
| 19 |
-
The buyer wants to register the domain '${item_intent}'.
|
| 20 |
-
Cloudflare operates on wholesale pricing with zero markup, meaning there is very little room to drop the price.
|
| 21 |
-
Your minimum allowed price is $58.00.
|
| 22 |
-
If the buyer asks for a lower price, explain that Cloudflare does not mark up domains, but you can waive the ICANN fee to hit the floor price.`
|
| 23 |
-
};
|
| 24 |
-
}
|
| 25 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modules/dummy.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
| 1 |
-
/**
|
| 2 |
-
* DUMMY VENDOR TEMPLATE
|
| 3 |
-
* Use this as a base for adding new merchants to the Seller Hub.
|
| 4 |
-
*/
|
| 5 |
-
|
| 6 |
-
module.exports = {
|
| 7 |
-
// The unique protocol address for this seller (MUST end in .anp)
|
| 8 |
-
agent_id: 'dummy.anp',
|
| 9 |
-
|
| 10 |
-
// Metadata for the Clinch Registry discovery engine
|
| 11 |
-
display_name: 'Dummy Base Store',
|
| 12 |
-
categories: ['general', 'testing'],
|
| 13 |
-
capabilities: ['price_flex'],
|
| 14 |
-
|
| 15 |
-
/**
|
| 16 |
-
* Resolves the buyer's requested item into strict constraints.
|
| 17 |
-
* @param {string} item_intent - The item the buyer is asking for (e.g., "test-item")
|
| 18 |
-
* @returns {Object|null} - The constraints for the AI, or null if out of stock/invalid.
|
| 19 |
-
*/
|
| 20 |
-
getItemConstraints: (item_intent) => {
|
| 21 |
-
// Fallback or generic item logic
|
| 22 |
-
return {
|
| 23 |
-
id: item_intent || 'generic-item',
|
| 24 |
-
list_price: 100.00,
|
| 25 |
-
floor_price: 75.00, // The AI engine will never drop below this value
|
| 26 |
-
context: `You are a helpful sales assistant for a generic store.
|
| 27 |
-
The buyer wants to buy '${item_intent}'.
|
| 28 |
-
Be polite, offer a small 5% discount initially, but defend the price carefully.`
|
| 29 |
-
};
|
| 30 |
-
}
|
| 31 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|