clementine-agent 1.0.19 → 1.0.20

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.
@@ -98,11 +98,18 @@ export function parseCronJobs() {
98
98
  const alwaysDeliver = job.always_deliver === true ? true : undefined;
99
99
  const context = job.context != null ? String(job.context) : undefined;
100
100
  const preCheck = job.pre_check != null ? String(job.pre_check) : undefined;
101
+ // Optional: scope a global job to a specific agent's profile (loads
102
+ // the agent's allowedTools whitelist, system prompt, etc.). Accept
103
+ // both camelCase and snake_case to be forgiving of user-written YAML.
104
+ const agentSlugRaw = job.agentSlug ?? job.agent_slug;
105
+ const agentSlug = typeof agentSlugRaw === 'string' && /^[a-z0-9-]+$/i.test(agentSlugRaw)
106
+ ? agentSlugRaw
107
+ : undefined;
101
108
  if (!name || !schedule || !prompt) {
102
109
  logger.warn({ job }, 'Skipping malformed cron job');
103
110
  continue;
104
111
  }
105
- jobs.push({ name, schedule, prompt, enabled, tier, maxTurns, model, workDir, mode, maxHours, maxRetries, after, successCriteria, alwaysDeliver, context, preCheck });
112
+ jobs.push({ name, schedule, prompt, enabled, tier, maxTurns, model, workDir, mode, maxHours, maxRetries, after, successCriteria, alwaysDeliver, context, preCheck, agentSlug });
106
113
  }
107
114
  return jobs;
108
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",