obol-ai 0.3.27 → 0.3.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obol-ai",
3
- "version": "0.3.27",
3
+ "version": "0.3.29",
4
4
  "description": "Self-evolving AI assistant that learns, remembers, and acts on its own. Persistent vector memory, self-rewriting personality, proactive heartbeats.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -144,7 +144,7 @@ const handlers = {
144
144
  const fields = {};
145
145
  if (rest.title !== undefined) fields.title = rest.title;
146
146
  if (rest.description !== undefined) fields.description = rest.description;
147
- if (rest.instructions !== undefined) fields.instructions = rest.instructions || null;
147
+ if (typeof rest.instructions === 'string') fields.instructions = rest.instructions || null;
148
148
  if (rest.timezone !== undefined) fields.timezone = rest.timezone;
149
149
  if (rest.cron_expr !== undefined) fields.cron_expr = rest.cron_expr;
150
150
  if (rest.max_runs !== undefined) fields.max_runs = rest.max_runs;
@@ -37,7 +37,7 @@ function createScheduler(supabaseConfig, userId = 0) {
37
37
  async function list(opts = {}) {
38
38
  const status = opts.status || 'pending';
39
39
  const limit = opts.limit || 20;
40
- const fetchUrl = `${url}/rest/v1/obol_events?user_id=eq.${userId}&status=eq.${status}&order=due_at.asc&limit=${limit}&select=id,title,description,due_at,timezone,status,created_at,cron_expr,last_run_at,run_count,max_runs,ends_at`;
40
+ const fetchUrl = `${url}/rest/v1/obol_events?user_id=eq.${userId}&status=eq.${status}&order=due_at.asc&limit=${limit}&select=id,title,description,instructions,due_at,timezone,status,created_at,cron_expr,last_run_at,run_count,max_runs,ends_at`;
41
41
  const res = await fetch(fetchUrl, { headers });
42
42
  const data = await res.json();
43
43
  if (!res.ok) throw new Error(JSON.stringify(data));