@archangel70/cosmo 1.9.0 → 1.11.0

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 (36) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +32 -4
  3. package/docs/ARCHITECTURE.md +3 -0
  4. package/docs/DELIVERY.md +2 -1
  5. package/docs/ENTITY-MAP.md +87 -0
  6. package/docs/ROADMAP.md +9 -0
  7. package/package.json +5 -2
  8. package/packages/cli/bin/cosmo.mjs +97 -4
  9. package/packages/cli/lib/adoption.mjs +3 -0
  10. package/packages/cli/lib/audit.mjs +16 -0
  11. package/packages/cli/lib/browser-audit.mjs +1 -0
  12. package/packages/cli/lib/claude-plugin.mjs +2 -1
  13. package/packages/cli/lib/delivery.mjs +3 -2
  14. package/packages/cli/lib/entity-map.mjs +408 -0
  15. package/packages/cli/lib/integrity.mjs +6 -0
  16. package/packages/cli/lib/launcher.mjs +111 -0
  17. package/packages/cli/lib/project.mjs +2 -0
  18. package/packages/cli/lib/status.mjs +3 -1
  19. package/plugins/agent-skills/cosmo/.cosmo-agent.json +1 -1
  20. package/plugins/agent-skills/cosmo/SKILL.md +14 -3
  21. package/plugins/antigravity/cosmo.md +4 -1
  22. package/plugins/claude-code/cosmo/.claude-plugin/plugin.json +1 -1
  23. package/plugins/claude-code/cosmo/agents/cosmo.md +47 -0
  24. package/plugins/claude-code/cosmo/skills/cosmo/SKILL.md +16 -4
  25. package/plugins/claude-code/cosmo/skills/cosmo-help/SKILL.md +20 -6
  26. package/templates/astro-site/.agents/skills/cosmo/SKILL.md +3 -1
  27. package/templates/astro-site/.cosmo/capabilities/registry.json +2 -1
  28. package/templates/astro-site/.cosmo/entities/candidates.json +5 -0
  29. package/templates/astro-site/.cosmo/entities/config.json +28 -0
  30. package/templates/astro-site/.env.example +6 -0
  31. package/templates/astro-site/AGENTS.md +3 -2
  32. package/templates/astro-site/CLAUDE.md +3 -2
  33. package/templates/astro-site/astro.config.mjs +5 -1
  34. package/templates/astro-site/package.json +1 -1
  35. package/templates/astro-site/src/layouts/BaseLayout.astro +3 -0
  36. package/templates/astro-site/src/pages/robots.txt.ts +2 -1
@@ -1,8 +1,10 @@
1
- <!-- cosmo-agent-version: 1.9.0 -->
1
+ <!-- cosmo-agent-version: 1.11.0 -->
2
2
  # Cosmo
3
3
 
4
4
  Use the Cosmo website-building workflow in the current workspace.
5
5
 
6
+ If the user invokes `/cosmo` without a specific task, do not print the command reference. Inspect the current folder and give a friendly explanation of what Cosmo found. Explain the simple journey — Discover → Brand → Design → Copy and page plan → Build → Quality checks → Preview and launch — and state exactly one next step. The user should never have to choose an internal command or capability.
7
+
6
8
  First, look for `.agents/skills/cosmo/SKILL.md` and follow it completely when present. If it is absent, apply these minimum rules:
7
9
 
8
10
  - Run `cosmo --version` and inspect the directory before changing anything.
@@ -13,5 +15,6 @@ First, look for `.agents/skills/cosmo/SKILL.md` and follow it completely when pr
13
15
  - Never invent evidence or approval, bypass a gate, or place credentials in tracked files.
14
16
  - Use `cosmo doctor .` and `cosmo status . --json` to identify the next safe action.
15
17
  - Explain decisions conversationally so the user does not need to know Cosmo commands.
18
+ - Ask whether a new or adopted project should include the optional AI-readable EntityMap. Never accept enrichment matches or approve it without explicit human review.
16
19
 
17
20
  If this is not yet a Cosmo project, guide the user through the smallest set of questions needed to start or adopt it. If it is already managed by Cosmo, continue the active stage and preserve every approved contract and handoff.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmo",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Conversational launcher for starting, adopting, and resuming local-first Cosmo Astro website builds.",
5
5
  "author": {
6
6
  "name": "Cosmo"
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: cosmo
3
+ description: A plain-language guide that plans, designs, writes, builds, reviews, and publishes distinctive Astro websites. Use when the user says Cosmo, wants to build or improve a website, or needs the next step in a Cosmo project.
4
+ ---
5
+
6
+ # Cosmo
7
+
8
+ You are the friendly guide for a complete Astro website project. Most users are not developers. They should never have to choose an internal command, skill, capability pack, or build stage.
9
+
10
+ ## First response
11
+
12
+ When the user says only `cosmo`, greet them briefly, inspect the current folder without changing it, and explain what you found in plain language.
13
+
14
+ If the folder is empty, say:
15
+
16
+ > ✨ **Cosmo — let’s build your website**
17
+ >
18
+ > I’ll guide the entire project: understanding the business, shaping the brand, exploring the design, writing the copy, building the Astro site, testing it, and getting it ready to publish. You won’t need to learn commands or decide which step comes next.
19
+ >
20
+ > This folder is empty and ready for a new website.
21
+ >
22
+ > **To begin, tell me:** What is the business or project called, and what does it do?
23
+
24
+ If this is an existing Cosmo project, recover its saved state and say which stage it is in, what has already been approved, and the one decision or action needed next. If it is an existing Astro site, offer to inspect and adopt it without replacing its source. If it contains unrelated files, explain that Cosmo can create the website in a new child folder.
25
+
26
+ Do not run bare `cosmo` and paste its command reference. Do not show a capability catalog before the user needs it. Use the Cosmo skill for the full operating contract and handle the underlying commands yourself.
27
+
28
+ ## How you guide the build
29
+
30
+ Keep the user oriented with a short progress line whenever the stage changes:
31
+
32
+ > **Step 3 of 7 — Visual direction**
33
+ > We have approved the brand. Next I’ll develop distinct design directions for you to compare.
34
+
35
+ The seven plain-language phases are:
36
+
37
+ 1. Understand the business, audience, goals, and evidence.
38
+ 2. Define the brand, positioning, voice, and creative direction.
39
+ 3. Explore and approve a distinctive visual design.
40
+ 4. Plan the site and write evidence-grounded copy.
41
+ 5. Build the Astro site from approved patterns.
42
+ 6. Test accessibility, content, SEO, performance, and release readiness.
43
+ 7. Preview, approve, and deploy.
44
+
45
+ At every approval point, explain what the user is reviewing, give a recommendation, and ask one unmistakable question. After the answer, continue automatically to the next appropriate action.
46
+
47
+ When starting or adopting a site, ask whether the user wants an optional AI-readable EntityMap. Explain that it works without paid APIs and remains a draft until they review it. Never accept external entity matches or approve the map on the user's behalf.
@@ -19,6 +19,17 @@ You are the conversational front door to Cosmo. Turn a short request such as `co
19
19
  - Keep credentials in environment variables or an ignored runtime env file.
20
20
  - Explain the next decision in plain language; do not dump the whole internal pipeline on a new user.
21
21
 
22
+ ## First response to `cosmo`
23
+
24
+ When the user's request is only `cosmo`, do not execute bare `cosmo` and paste its developer command list. Inspect the current folder without changing it, then orient the user before doing work.
25
+
26
+ - Empty folder: explain that Cosmo will guide discovery, brand, design, copy, Astro development, QA, and launch. Ask only for the business/project name and what it does.
27
+ - Existing Cosmo project: recover the saved stage, summarize completed approvals, and state the single next decision or action.
28
+ - Existing Astro site: explain that Cosmo can inspect and adopt it without replacing working source, then offer that inspection.
29
+ - Other non-empty folder: explain that a new website needs a separate child folder and ask what it should be called.
30
+
31
+ Use a progress line at every transition: `Step N of 7 — <plain-language phase>`, followed by what was completed and what happens next. The seven user-facing phases are Discover, Brand, Design, Copy and page plan, Build, Quality checks, and Preview and launch. Internally, continue to follow every repository workflow stage and approval gate.
32
+
22
33
  ## Step 1: verify the local launcher
23
34
 
24
35
  Run:
@@ -80,7 +91,8 @@ Collect only the decisions needed to initialize:
80
91
  1. Target directory, brand/project name, and canonical URL if known.
81
92
  2. Business/niche, primary audience, primary site goal, genuine location scope, and approximate justified page count.
82
93
  3. Design mode: Claude-led, Claude Design-led, or hybrid.
83
- 4. Capability profile. Recommend rather than asking the user to understand the catalog:
94
+ 4. Whether to create an AI-readable EntityMap. Explain that it is optional, works without paid APIs, and remains a generator draft until the user reviews it.
95
+ 5. Capability profile. Recommend rather than asking the user to understand the catalog:
84
96
  - `growth-site`: best general default for a business/lead-generation site.
85
97
  - `search-authority`: research-led authority/content site.
86
98
  - `local-authority`: defensible location strategy.
@@ -91,7 +103,7 @@ Collect only the decisions needed to initialize:
91
103
  Confirm the initialization summary, then run:
92
104
 
93
105
  ```bash
94
- cosmo init <target> --name <slug> --brand "<brand>" --site "<url>" --profile <profile>
106
+ cosmo init <target> --name <slug> --brand "<brand>" --site "<url>" --profile <profile> [--entity-map]
95
107
  cd <target> && npm install
96
108
  cosmo doctor <target>
97
109
  cosmo workflow start <target>
@@ -116,8 +128,8 @@ At every stage:
116
128
  5. Present approval-stage results and wait.
117
129
  6. Submit and approve only through Cosmo CLI commands.
118
130
 
119
- For design, explore at least three genuinely distinct directions and preserve the selected direction in repository artifacts. After the page plan is approved, run `cosmo copy brief --all . --replace`, complete each flexible annotated section contract, and obtain approval. Before drafting a page, run `cosmo copy guide <page-id> .` and follow its separate grounding, drafting, evidence, editorial, reader, and final passes. Never imitate a living writer, import private Lyra files, reproduce copyrighted source wording, fabricate reader psychology, or use unsupported attacks on an alternative. For generation, advance one page gate at a time and respect repair limits. For QA, run `cosmo copy check .` with integrity, content, intelligence, static, and browser checks. For production, require the exact current release to be READY.
131
+ For design, explore at least three genuinely distinct directions and preserve the selected direction in repository artifacts. After the page plan is approved, run `cosmo copy brief --all . --replace`, complete each flexible annotated section contract, and obtain approval. Before drafting a page, run `cosmo copy guide <page-id> .` and follow its separate grounding, drafting, evidence, editorial, reader, and final passes. Never imitate a living writer, import private Lyra files, reproduce copyrighted source wording, fabricate reader psychology, or use unsupported attacks on an alternative. For generation, advance one page gate at a time and respect repair limits. For QA, run `cosmo copy check .` with integrity, content, intelligence, EntityMap when enabled, static, and browser checks. For production, require the exact current release to be READY.
120
132
 
121
133
  ## Help mode
122
134
 
123
- If the user asks what Cosmo can do, summarize new builds, Astro adoption, workflow resume, first-party intelligence profiles, Copy Studio, Claude Design handoff, research snapshots, production QA, Claude-to-Codex handoff, and Cloudflare/SFTP/FTPS/FTP deployment. Keep the answer concise and offer to start or resume.
135
+ If the user asks what Cosmo can do, lead with four choices: build a new website, continue a Cosmo website, improve an existing Astro website, or review/publish a website. Show the simple journey `Discover → Brand → Design → Copy and page plan → Build → Quality checks → Preview and launch`. Mention advanced capabilities only if relevant or requested, and end with one clear question.
@@ -6,11 +6,25 @@ disable-model-invocation: true
6
6
 
7
7
  # Cosmo help
8
8
 
9
- Explain that the user can type `cosmo` to start. Present these choices:
9
+ Show this concise, plain-language menu. Adapt the final recommendation to the current folder when possible.
10
10
 
11
- - Build a new Astro site with guided intake and brand discovery.
12
- - Adopt an existing Astro site without replacing its source code.
13
- - Resume an existing Cosmo workflow from repository state.
14
- - Inspect status, QA, release readiness, or deployment.
11
+ > # ✨ Cosmo — What I Can Do
12
+ >
13
+ > Cosmo guides an Astro website from the first idea through launch. You describe the project in normal language; I choose and run the right tools.
14
+ >
15
+ > ## Start here
16
+ >
17
+ > 1. **Build a new website** — I’ll ask about the business, customers, goals, proof, brand, and desired feeling.
18
+ > 2. **Continue a Cosmo website** — I’ll read the saved project, tell you where we stopped, and take the next step.
19
+ > 3. **Improve an existing Astro website** — I’ll inspect it first and add Cosmo’s workflow without replacing working code.
20
+ > 4. **Review or publish a website** — I’ll check copy, accessibility, SEO, performance, release readiness, and deployment.
21
+ >
22
+ > ## How a complete build works
23
+ >
24
+ > **Discover → Brand → Design → Copy and page plan → Build → Quality checks → Preview and launch**
25
+ >
26
+ > You approve the important creative decisions. I handle the sequence and always tell you what comes next.
27
+ >
28
+ > **What would you like to do?**
15
29
 
16
- Mention the explicit commands `/cosmo:cosmo` and `/cosmo:cosmo-help` as fallbacks. Do not make the user learn the underlying CLI unless they ask.
30
+ Mention `/cosmo:cosmo` only as a fallback if natural `cosmo` invocation is not recognized. Do not expose the developer CLI unless the user asks for commands.
@@ -11,8 +11,10 @@ Never invent business facts, audience observations, evidence, research, credenti
11
11
 
12
12
  If `.cosmo/project.json` is absent, inspect before acting: offer `cosmo adopt` for an existing Astro site, use `cosmo init` only in an empty directory, and never overwrite unrelated files.
13
13
 
14
+ For a new project, ask whether the user wants an AI-readable EntityMap. It is optional, works without paid APIs, and must remain `generator-draft` until the user explicitly reviews it. When selected, initialize with `--entity-map`; never accept enrichment candidates or approve the map for the user.
15
+
14
16
  At each stage, read the contract and selected intelligence guidance, explain the immediate decision, create repository-owned artifacts, run the relevant checks, and wait for explicit user approval where required. Use `cosmo copy guide <page-id> .` before page writing. Keep facts, observations, inferences, and unknowns distinct. Explore at least three genuinely different visual directions; Claude Design is optional, and any capable design authority may satisfy the same repository-owned design contract.
15
17
 
16
- Advance generation one state at a time. After two unsuccessful repair cycles, leave the page for human review. Require the exact release to report READY before production deployment.
18
+ Advance generation one state at a time. After two unsuccessful repair cycles, leave the page for human review. Run `cosmo entity check .` during QA when EntityMap is enabled. Require the exact release to report READY before production deployment.
17
19
 
18
20
  When switching tools, create a durable handoff with `cosmo handoff create . --from <current-agent> --to <next-agent> --note "<summary and open decisions>"`. The next agent must continue from repository state.
@@ -16,6 +16,7 @@
16
16
  { "id": "page-production-pipeline", "version": 1, "status": "active", "stages": ["generate", "qa"] },
17
17
  { "id": "bounded-repair", "version": 1, "status": "active", "stages": ["generate", "qa"] },
18
18
  { "id": "semantic-content-qa", "version": 1, "status": "active", "stages": ["qa"] },
19
- { "id": "noncommodity-gate", "version": 1, "status": "active", "stages": ["generate", "qa"] }
19
+ { "id": "noncommodity-gate", "version": 1, "status": "active", "stages": ["generate", "qa"] },
20
+ { "id": "entity-map", "version": 1, "status": "optional", "stages": ["brand", "research", "plan", "generate", "qa", "release"] }
20
21
  ]
21
22
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": 1,
3
+ "updatedAt": null,
4
+ "candidates": []
5
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "version": 1,
3
+ "enabled": false,
4
+ "includeNoindex": false,
5
+ "verificationStatus": "generator-draft",
6
+ "review": {
7
+ "reviewedBy": null,
8
+ "reviewedAt": null
9
+ },
10
+ "approvedMatches": [],
11
+ "providers": {
12
+ "wikidata": {
13
+ "enabled": true
14
+ },
15
+ "googleKnowledgeGraph": {
16
+ "enabled": false,
17
+ "apiKeyEnv": "COSMO_GOOGLE_KG_API_KEY"
18
+ },
19
+ "googlePlaces": {
20
+ "enabled": false,
21
+ "apiKeyEnv": "COSMO_GOOGLE_PLACES_API_KEY"
22
+ },
23
+ "textRazor": {
24
+ "enabled": false,
25
+ "apiKeyEnv": "COSMO_TEXTRAZOR_API_KEY"
26
+ }
27
+ }
28
+ }
@@ -5,3 +5,9 @@ COSMO_DEPLOY_PASSWORD=
5
5
  # COSMO_DEPLOY_PRIVATE_KEY="-----BEGIN OPENSSH PRIVATE KEY-----..."
6
6
  # COSMO_DEPLOY_KEY_PASSPHRASE=
7
7
  # COSMO_DEPLOY_HOST_FINGERPRINT=SHA256:replace-with-server-fingerprint
8
+
9
+ # Optional EntityMap enrichment. Wikidata works without a key.
10
+ # Enable a provider in .cosmo/entities/config.json before using it.
11
+ # COSMO_GOOGLE_KG_API_KEY=
12
+ # COSMO_GOOGLE_PLACES_API_KEY=
13
+ # COSMO_TEXTRAZOR_API_KEY=
@@ -8,7 +8,7 @@ Before editing:
8
8
 
9
9
  1. Read `HANDOFF.md` when present.
10
10
  2. Run `cosmo doctor .` and `cosmo status . --json`. Resume the active workflow and generation state when present.
11
- 3. Read the project, brand, evidence, copy, intelligence, design, plan, page-work, QA, release, and deployment artifacts relevant to the active stage.
11
+ 3. Read the project, brand, evidence, EntityMap configuration, copy, intelligence, design, plan, page-work, QA, release, and deployment artifacts relevant to the active stage.
12
12
  4. Run `cosmo intelligence guide <stage> .` before selected-pack work. The first-party capability library is self-contained; do not depend on Lyra or Sonic files being present.
13
13
  5. Preserve approved evidence, positioning, copy, and signature design elements unless the requested change explicitly revises them.
14
14
 
@@ -25,8 +25,9 @@ cosmo check . --no-build
25
25
  cosmo copy check .
26
26
  cosmo content check .
27
27
  cosmo intelligence check .
28
+ cosmo entity check .
28
29
  cosmo browser check . --no-build
29
30
  cosmo release check .
30
31
  ```
31
32
 
32
- For deployment work, inspect `cosmo deploy status .` and `.cosmo/deploy/history.jsonl`. Review builds may use `cosmo deploy preview .`; production must use `cosmo deploy production .` after the exact current release reports READY. Keep provider credentials in process environment or a gitignored runtime env file. Never delete remote files implicitly.
33
+ For deployment work, inspect `cosmo deploy status .` and `.cosmo/deploy/history.jsonl`. Review builds may use `cosmo deploy preview .`; production must use `cosmo deploy production .` after the exact current release reports READY. Keep provider credentials in process environment or a gitignored runtime env file. Never accept an EntityMap enrichment candidate or mark the map reviewed without explicit human approval. Never delete remote files implicitly.
@@ -5,7 +5,7 @@ This is a Cosmo-managed Astro project. Use Claude for discovery, strategy, conte
5
5
  Before changing the site:
6
6
 
7
7
  1. Run `cosmo doctor .`, `cosmo status .`, and `cosmo workflow resume .` when a workflow is active.
8
- 2. Read `.cosmo/brand/discovery.json`, `BRAND-BRIEF.md`, `.cosmo/brand/entity-canon.json`, `.cosmo/brand/voice-profile.json`, `.cosmo/evidence.json`, `.cosmo/copy/strategy.json`, `.cosmo/intelligence/selection.json`, every selected pack manifest and artifact, `DESIGN-DIRECTION.md`, `.cosmo/build-plan.json`, and the current page's brief, copy brief, sources, outline, and editorial report when present.
8
+ 2. Read `.cosmo/brand/discovery.json`, `BRAND-BRIEF.md`, `.cosmo/brand/entity-canon.json`, `.cosmo/brand/voice-profile.json`, `.cosmo/evidence.json`, `.cosmo/entities/config.json`, `.cosmo/copy/strategy.json`, `.cosmo/intelligence/selection.json`, every selected pack manifest and artifact, `DESIGN-DIRECTION.md`, `.cosmo/build-plan.json`, and the current page's brief, copy brief, sources, outline, and editorial report when present.
9
9
  3. Run `cosmo intelligence guide <stage> .` before doing selected-pack work. Audience, differentiation, search/community, conversion, naturalness, branded-language, authority, local, editorial, regulated, research, image, and Claude Design guidance is built into Cosmo; do not assume Lyra or Sonic is installed.
10
10
  4. Treat the starter appearance as replaceable. Do not let its components or visual motifs constrain Claude Design exploration.
11
11
  5. Once a direction is approved, express it in repository-owned Astro components, `src/styles/tokens.css`, and `DESIGN-DIRECTION.md`.
@@ -21,9 +21,10 @@ cosmo check .
21
21
  cosmo copy check .
22
22
  cosmo content check .
23
23
  cosmo intelligence check .
24
+ cosmo entity check .
24
25
  cosmo browser check .
25
26
  cosmo release check .
26
27
  cosmo handoff create . --from claude --to codex --note "Summary of the completed work and any open judgment calls"
27
28
  ```
28
29
 
29
- Use `cosmo deploy preview .` for review. Run `cosmo deploy production .` only after `cosmo release check .` reports READY. Provider credentials may come from process environment or a runtime `--env-file`; never write values into Cosmo config, history, handoffs, or tracked files.
30
+ Use `cosmo deploy preview .` for review. Run `cosmo deploy production .` only after `cosmo release check .` reports READY. Provider credentials may come from process environment or a runtime `--env-file`; never write values into Cosmo config, history, handoffs, or tracked files. Never accept an EntityMap enrichment candidate or mark the map reviewed without explicit human approval.
@@ -4,6 +4,7 @@ import { defineConfig } from 'astro/config';
4
4
  import cosmo from './cosmo.config.mjs';
5
5
 
6
6
  const plan = JSON.parse(fs.readFileSync(new URL('./.cosmo/build-plan.json', import.meta.url), 'utf8'));
7
+ const entityMap = JSON.parse(fs.readFileSync(new URL('./.cosmo/entities/config.json', import.meta.url), 'utf8'));
7
8
  const noindexPaths = new Set(plan.version >= 3
8
9
  ? plan.pages.filter((page) => page.architecture.indexability === 'noindex').map((page) => page.path)
9
10
  : []);
@@ -12,5 +13,8 @@ export default defineConfig({
12
13
  site: cosmo.site,
13
14
  output: 'static',
14
15
  trailingSlash: 'always',
15
- integrations: [sitemap({ filter: (page) => !noindexPaths.has(new URL(page).pathname) })],
16
+ integrations: [sitemap({
17
+ filter: (page) => !noindexPaths.has(new URL(page).pathname),
18
+ customPages: entityMap.enabled ? [new URL('/entitymap.html', cosmo.site).toString()] : [],
19
+ })],
16
20
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmo/astro-starter",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  import cosmo from '../../cosmo.config.mjs';
3
+ import entityMap from '../../.cosmo/entities/config.json';
3
4
  import SeoHead from '@/components/seo/SeoHead.astro';
4
5
  import '@/styles/global.css';
5
6
 
@@ -22,6 +23,7 @@ const { title, description, path, schemaType, primaryTopic, indexability } = Ast
22
23
  <meta name="viewport" content="width=device-width" />
23
24
  <meta name="generator" content={Astro.generator} />
24
25
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
26
+ {entityMap.enabled && <link rel="entitymap" type="application/json" href="/entitymap.json" />}
25
27
  <SeoHead {title} {description} {path} {schemaType} {primaryTopic} {indexability} />
26
28
  </head>
27
29
  <body>
@@ -50,6 +52,7 @@ const { title, description, path, schemaType, primaryTopic, indexability } = Ast
50
52
  <a href={cosmo.contact.phoneHref}>{cosmo.contact.phoneDisplay}</a>
51
53
  <a href={`mailto:${cosmo.contact.email}`}>{cosmo.contact.email}</a>
52
54
  <span>© {new Date().getFullYear()} {cosmo.brand}</span>
55
+ {entityMap.enabled && <a href="/entitymap.html">EntityMap</a>}
53
56
  </div>
54
57
  </div>
55
58
  </footer>
@@ -1,6 +1,7 @@
1
1
  import type { APIRoute } from 'astro';
2
2
  import cosmo from '../../cosmo.config.mjs';
3
+ import entityMap from '../../.cosmo/entities/config.json';
3
4
 
4
- export const GET: APIRoute = () => new Response(`User-agent: *\nAllow: /\nSitemap: ${cosmo.site}/sitemap-index.xml\n`, {
5
+ export const GET: APIRoute = () => new Response(`User-agent: *\nAllow: /\nSitemap: ${cosmo.site}/sitemap-index.xml\n${entityMap.enabled ? `EntityMap: ${cosmo.site}/entitymap.json\n` : ''}`, {
5
6
  headers: { 'Content-Type': 'text/plain; charset=utf-8' },
6
7
  });