"use strict";
// Brief trigger entry helper.
//
// Returns a TriggerDefinition compatible with the existing TriggerScheduler
// that POSTs /api/jarvis/brief/save twice a day. Users add it to their
// `.harness/triggers/triggers.json` via the Triggers tab; we never auto-install.
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultBriefTriggerDefinition = defaultBriefTriggerDefinition;
function defaultBriefTriggerDefinition(options = {}) {
    const baseUrl = options.baseUrl ?? 'http://127.0.0.1:3000';
    return {
        id: options.id ?? 'harness.daily-brief',
        command: 'curl',
        args: ['-X', 'POST', '--silent', `${baseUrl}/api/jarvis/brief/save`],
        intervalSeconds: options.intervalSeconds ?? 60 * 60 * 12,
        enabled: options.enabled ?? false,
    };
}
//# sourceMappingURL=briefTrigger.js.map