File size: 1,140 Bytes
e666158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * DUMMY VENDOR TEMPLATE
 * Use this as a base for adding new merchants to the Seller Hub.
 */

module.exports = {
    // The unique protocol address for this seller (MUST end in .anp)
    agent_id: 'dummy.anp',
    
    // Metadata for the Clinch Registry discovery engine
    display_name: 'Dummy Base Store',
    categories: ['general', 'testing'],
    capabilities: ['price_flex'],

    /**
     * Resolves the buyer's requested item into strict constraints.
     * @param {string} item_intent - The item the buyer is asking for (e.g., "test-item")
     * @returns {Object|null} - The constraints for the AI, or null if out of stock/invalid.
     */
    getItemConstraints: (item_intent) => {
        // Fallback or generic item logic
        return {
            id: item_intent || 'generic-item',
            list_price: 100.00,
            floor_price: 75.00, // The AI engine will never drop below this value
            context: `You are a helpful sales assistant for a generic store. 
The buyer wants to buy '${item_intent}'.
Be polite, offer a small 5% discount initially, but defend the price carefully.`
        };
    }
};