create-claudeportal 0.3.8 → 0.3.9

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/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Claude Portal</title>
7
- <script type="module" crossorigin src="/assets/index-WMp-HZZb.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-CjHE0n_q.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-DuJJJuzg.css">
9
9
  </head>
10
10
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claudeportal",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Get from npx to a working app in under 5 minutes — Claude Code setup wizard",
5
5
  "bin": {
6
6
  "create-claudeportal": "bin/cli.js"
@@ -230,4 +230,26 @@ router.get('/brain-status', (_req, res) => {
230
230
  }
231
231
  })
232
232
 
233
+ // Get a specific field from a brain category
234
+ router.get('/brain-fields', (req, res) => {
235
+ const { category, field } = req.query
236
+ if (!category || !field) {
237
+ return res.status(400).json({ error: 'category and field query params required' })
238
+ }
239
+ try {
240
+ const brainDir = brainManager.DEFAULT_BRAIN_DIR
241
+ const filePath = path.join(brainDir, `${category}.md`)
242
+ if (!fs.existsSync(filePath)) {
243
+ return res.json({ value: null })
244
+ }
245
+ const content = fs.readFileSync(filePath, 'utf8')
246
+ const escapedField = String(field).replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
247
+ const regex = new RegExp(`^- \\*\\*${escapedField}:\\*\\*\\s*(.+)$`, 'm')
248
+ const match = content.match(regex)
249
+ res.json({ value: match ? match[1].trim() : null })
250
+ } catch (err) {
251
+ res.status(500).json({ error: err.message })
252
+ }
253
+ })
254
+
233
255
  module.exports = router