@theronap/agnoclast-mcp 0.9.305 → 0.9.306

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.
Files changed (2) hide show
  1. package/lib/server.mjs +4 -3
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -6227,17 +6227,18 @@ function renderNudge(payload) {
6227
6227
  ai_where: z.string().optional().describe('optional: where they use it'),
6228
6228
  ai_reach: z.string().optional().describe('optional: how much they let it do'),
6229
6229
  together: z.string().optional().describe('optional: solo or team'),
6230
+ runs_unattended: z.boolean().optional().describe('true if you run on your own, on a schedule or without the person in the chat'),
6230
6231
  },
6231
6232
  },
6232
- async ({ use_case, goals, ai_app, ai_where, ai_reach, together }) => {
6233
+ async ({ use_case, goals, ai_app, ai_where, ai_reach, together, runs_unattended }) => {
6233
6234
  const saving = use_case !== undefined || goals !== undefined
6234
6235
  let res
6235
6236
  try {
6236
- res = await fetchCortex(`${BASE}/api/setup-status`, saving
6237
+ res = await fetchCortex(`${BASE}/api/setup-status${!saving && runs_unattended ? '?unattended=1' : ''}`, saving
6237
6238
  ? {
6238
6239
  method: 'POST',
6239
6240
  headers: { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json' },
6240
- body: JSON.stringify({ useCase: use_case, goals, together, ai: { app: ai_app, where: ai_where, reach: ai_reach } }),
6241
+ body: JSON.stringify({ unattended: runs_unattended === true, useCase: use_case, goals, together, ai: { app: ai_app, where: ai_where, reach: ai_reach } }),
6241
6242
  }
6242
6243
  : { headers: { Authorization: `Bearer ${TOKEN}` } })
6243
6244
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.305",
3
+ "version": "0.9.306",
4
4
  "description": "Connect your AI assistant to Cortex — your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {