@theronap/agnoclast-mcp 0.9.304 → 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.
- package/lib/file_capture.mjs +5 -2
- package/lib/server.mjs +4 -3
- package/package.json +1 -1
package/lib/file_capture.mjs
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
//
|
|
16
16
|
// What counts as worth keeping, deliberately narrow so the nudge stays rare enough to be acted on:
|
|
17
17
|
// · a document (Word, Excel, PowerPoint, PDF…) the session created or edited — anywhere;
|
|
18
|
-
// · a
|
|
18
|
+
// · a data file (CSV, TSV) the session created or edited OUTSIDE a git repo. Inside a repo
|
|
19
19
|
// it is code or docs, and those already reach Agnoclast through commits;
|
|
20
20
|
// · a document or spreadsheet the session OPENED outside a repo — what the person handed it to work on.
|
|
21
21
|
// Never: anything under node_modules, .git, ~/.claude, ~/.cortex, temp folders, dotfiles, or over 50 MB.
|
|
@@ -37,7 +37,10 @@ export const MAX_BYTES = 50 * 1024 * 1024
|
|
|
37
37
|
export const RENUDGE_MS = 10 * 60 * 1000
|
|
38
38
|
|
|
39
39
|
const DOCUMENTS = new Set(['docx', 'doc', 'dotx', 'xlsx', 'xlsm', 'xls', 'pptx', 'ppt', 'potx', 'pdf', 'odt', 'ods', 'odp', 'rtf', 'pages', 'numbers', 'key'])
|
|
40
|
-
|
|
40
|
+
// Plain text, Markdown, HTML and images are NOT kept (Theron, 2026-11-03: a .md summary "is just a text file, not even
|
|
41
|
+
// Word. There's no reason to save that."). What text says belongs in a page, where it is linked and edited; a file is
|
|
42
|
+
// for what a page cannot be — a Word document, a workbook, a deck, a PDF, a data table.
|
|
43
|
+
const DELIVERABLES = new Set(['csv', 'tsv'])
|
|
41
44
|
const OPENED = new Set([...DOCUMENTS, 'csv', 'tsv'])
|
|
42
45
|
const MADE_TOOLS = new Set(['Write', 'Edit', 'MultiEdit', 'NotebookEdit'])
|
|
43
46
|
|
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