-
Notifications
You must be signed in to change notification settings - Fork 6
fix: address remaining PR #104 review feedback #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,7 @@ function buildSkillMd(opts: { | |
| `- **Base URL:** ${opts.baseUrl}`, | ||
| `- **Peer ID:** ${opts.peerId}`, | ||
| `- **Node role:** ${opts.nodeRole}`, | ||
| `- **Available extraction pipelines:** ${opts.extractionPipelines.length > 0 ? opts.extractionPipelines.join(', ') : 'text/markdown'}`, | ||
| `- **Available extraction pipelines:** ${opts.extractionPipelines.length > 0 ? opts.extractionPipelines.join(', ') : 'none (install markitdown to enable document conversion)'}`, | ||
| `- **Subscribed Context Graphs:** use \`GET /api/context-graph/list\` (requires auth)`, | ||
| ].join('\n'); | ||
|
|
||
|
|
@@ -1227,7 +1227,7 @@ async function handleRequest( | |
| const proto = req.headers['x-forwarded-proto'] ?? 'http'; | ||
| const host = req.headers['x-forwarded-host'] ?? req.headers.host ?? `localhost:${config.listenPort ?? 9200}`; | ||
| const baseUrl = `${proto}://${host}`; | ||
| const pipelines = ['text/markdown', ...extractionRegistry.availableContentTypes()]; | ||
| const pipelines = extractionRegistry.availableContentTypes(); | ||
| const content = buildSkillMd({ | ||
| version: nodeVersion, | ||
| baseUrl, | ||
|
|
@@ -1244,6 +1244,7 @@ async function handleRequest( | |
| 'Content-Type': 'text/markdown; charset=utf-8', | ||
| 'ETag': etag, | ||
| 'Cache-Control': 'public, max-age=300', | ||
| 'Vary': 'Host, X-Forwarded-Host, X-Forwarded-Proto', | ||
| }); | ||
| res.end(content); | ||
| return; | ||
|
|
@@ -2116,7 +2117,7 @@ async function handleRequest( | |
| msg.startsWith('SPARQL rejected:') || msg.startsWith('Parse error') || | ||
| /must start with (SELECT|CONSTRUCT|ASK|DESCRIBE)/i.test(msg) || | ||
| msg.includes('was removed in V10') || | ||
| msg.includes('requires agentAddress') || msg.includes('requires contextGraphId') || | ||
| msg.includes('agentAddress is required') || msg.includes('requires a contextGraphId') || | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Issue: The 400/500 split here still depends on exact exception text, and this change makes that coupling tighter. A small wording change in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Acknowledged — this is a known coupling risk. A typed error hierarchy (e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Bug: |
||
| msg.includes('cannot be combined with') | ||
| ) { | ||
| return jsonResponse(res, 400, { error: msg }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Bug: Step 3 publishes from shared memory with
clearAfterdefaulting totrue, so queryingview: "shared-working-memory"in the next step will usually come back empty. If this quick start is meant to confirm the publish, query the context graph without the SWM view instead, or add"clearAfter": falseto the publish example.