openalmanac 0.2.14 → 0.2.15

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/server.js CHANGED
@@ -48,9 +48,9 @@ export function createServer() {
48
48
  "create_stub with the image_url from the ![Profile Photo](url) line in the scraped markdown. " +
49
49
  "For topics/orgs/events: use descriptive kebab-case slugs (e.g. 'reinforcement-learning', 'openai').\n\n" +
50
50
  "## Images\n\n" +
51
- "Use search_images to find images for articles. Place images inline using `![Descriptive caption](url)` " +
52
- "on the line before the paragraph they illustrate. Images float right on desktop. " +
53
- "Every image must have a descriptive caption. Use 1-3 images per major section. " +
51
+ "Use search_images to find images for articles. Syntax: `![Caption](url \"position\")` where position " +
52
+ "is 'right' (default), 'left', or 'center'. The caption (alt text) is displayed below the image — " +
53
+ "make it descriptive. Use 1-3 images per major section. " +
54
54
  "For the infobox hero image, set infobox.header.image_url in frontmatter. " +
55
55
  "External image URLs are auto-persisted on push — no extra steps needed.\n\n" +
56
56
  "After creating an article, always share the exact URL from the push response with the user. " +
@@ -84,22 +84,27 @@ Include an infobox for any article about a person, place, organization, event, o
84
84
 
85
85
  ## Images
86
86
 
87
- Use search_images to find relevant images. Place them inline using standard markdown:
87
+ Use search_images to find relevant images. Images render as figures with visible captions.
88
+
89
+ **Syntax:** \`![Caption text](url "position")\`
90
+
91
+ Positions: \`"right"\` (default if omitted), \`"left"\`, \`"center"\`
88
92
 
89
93
  \`\`\`markdown
90
94
  ![Alan Turing in 1930, aged 18](https://upload.wikimedia.org/...)
91
95
 
92
96
  The early life of Alan Turing began...
93
- \`\`\`
94
97
 
95
- The image goes on the line BEFORE the paragraph it illustrates. It floats right on desktop.
98
+ ![Panoramic view of Bletchley Park](https://upload.wikimedia.org/... "center")
99
+ \`\`\`
96
100
 
97
101
  **Caption rules:**
98
- - Every image MUST have a descriptive caption (the alt text)
102
+ - Every image MUST have a descriptive caption — it is displayed below the image
99
103
  - Describe what the image shows: "Alan Turing in 1930, aged 18" not "Photo"
100
- - For the infobox hero image, use \`infobox.header.image_url\` in frontmatter instead
104
+ - Include dates, context, or attribution when relevant
101
105
 
102
106
  **Placement:** 1-3 images per major section, spread throughout. First image near the top.
107
+ For the infobox hero image, use \`infobox.header.image_url\` in frontmatter instead.
103
108
 
104
109
  External image URLs are auto-persisted on push — no extra steps needed.
105
110
 
@@ -47,13 +47,21 @@ export function registerResearchTools(server) {
47
47
  "Use descriptive search terms. Pick images based on their title and description. " +
48
48
  "External image URLs are automatically persisted when you push the article — no extra steps needed.\n\n" +
49
49
  "## Using images in articles\n\n" +
50
- "Add images inline using markdown: `![Descriptive caption](image_url)`\n\n" +
51
- "Place the image on the line BEFORE the paragraph it illustrates. The image floats to the right of the text on desktop.\n\n" +
50
+ "Images render as figures with visible captions. The alt text becomes the caption — make it descriptive.\n\n" +
51
+ "**Syntax:** `![Caption text](url \"position\")`\n\n" +
52
+ "Position options (in the title/quotes):\n" +
53
+ "- `\"right\"` — float right (DEFAULT if omitted)\n" +
54
+ "- `\"left\"` — float left\n" +
55
+ "- `\"center\"` — full-width, centered\n\n" +
56
+ "**Examples:**\n" +
57
+ "- `![Alan Turing in 1930, aged 18](url)` — floats right (default)\n" +
58
+ "- `![The Apollo 11 crew before launch](url \"left\")` — floats left\n" +
59
+ "- `![Panoramic view of the Grand Canyon](url \"center\")` — full-width\n\n" +
52
60
  "**Caption rules:**\n" +
53
- "- Every image MUST have a descriptive caption (the alt text in `![caption here](url)`)\n" +
54
- "- Captions should describe what the image shows, not just name the subject\n" +
55
- "- Bad: `![Logo](url)` Good: `![The OpenAI logo, a stylized spiral](url)`\n" +
56
- "- Bad: `![Photo](url)` — Good: `![Alan Turing in 1930, aged 18](url)`\n\n" +
61
+ "- Every image MUST have a descriptive caption it is displayed below the image\n" +
62
+ "- Describe what the image shows: 'Alan Turing in 1930, aged 18' not 'Photo'\n" +
63
+ "- Include date, context, or attribution when relevant\n" +
64
+ "- Bad: `![Logo](url)` — Good: `![The OpenAI logo, a stylized spiral](url)`\n\n" +
57
65
  "**Placement rules:**\n" +
58
66
  "- Place 1-3 images per major section — don't overload\n" +
59
67
  "- First image should appear near the top, illustrating the article's subject\n" +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openalmanac",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "OpenAlmanac — pull, edit, and push articles to the open knowledge base",
5
5
  "type": "module",
6
6
  "bin": {