Comments: tab name Search engines, credit text, generateStaticParams scope
Comments and the ipal-kit usage line only (adds ipal-doctor); no behaviour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b5df59691c
commit
0d8d906653
+2
-2
@@ -3,7 +3,7 @@
|
||||
// pnpm dlx @intecion/ipal-kit@<version> create intecion.com → a new client site (docs/project-starter.md)
|
||||
// pnpm exec ipal-kit create intecion.com --dir ../intecioncom-web --answers answers.json
|
||||
// `pnpm dlx <package>` runs the bin named after the package, so every subcommand lives here.
|
||||
// The other tools keep their own bins: ipal-skills, ipal-blocks, ipal-tokens.
|
||||
// The other tools keep their own bins: ipal-skills, ipal-blocks, ipal-tokens, ipal-doctor.
|
||||
|
||||
import { dirname, join } from 'node:path'
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url'
|
||||
@@ -11,7 +11,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'
|
||||
const USAGE = `Usage: ipal-kit <command> [options]
|
||||
create <domain> a new client site from the reference site (ipal-kit create --help)
|
||||
|
||||
Other tools: ipal-skills, ipal-blocks, ipal-tokens`
|
||||
Other tools: ipal-skills, ipal-blocks, ipal-tokens, ipal-doctor`
|
||||
|
||||
const [command, ...args] = process.argv.slice(2)
|
||||
if (command !== 'create') {
|
||||
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
// ipal-skills — copies the ipal-kit agent skills into the project.
|
||||
// pnpm ipal-skills → ./.agents/skills/ipal-*
|
||||
// pnpm ipal-skills --dry-run → show what would change
|
||||
// pnpm ipal-skills --dest .claude/skills
|
||||
// pnpm ipal-skills --no-pointer → skills only, leave AGENTS.md / CLAUDE.md alone
|
||||
// pnpm ipal-skills --external → also the vendored third-party skills (ext-*, pinned, text only)
|
||||
// pnpm ipal-skills --external ext-accessibility,ext-payload → only those
|
||||
// pnpm exec ipal-skills → ./.agents/skills/ipal-*
|
||||
// pnpm exec ipal-skills --dry-run → show what would change
|
||||
// pnpm exec ipal-skills --dest .claude/skills
|
||||
// pnpm exec ipal-skills --no-pointer → skills only, leave AGENTS.md / CLAUDE.md alone
|
||||
// pnpm exec ipal-skills --external → also the vendored third-party skills (ext-*, pinned, text only)
|
||||
// pnpm exec ipal-skills --external ext-accessibility,ext-payload → only those
|
||||
// Only folders named ipal-* are touched; the project's own skills stay as they are.
|
||||
// ipal-* folders that no longer exist in the package are removed (renamed/retired skills).
|
||||
// ext-* folders are touched only with --external, and only those carrying ipal-kit's SOURCE.md.
|
||||
|
||||
@@ -120,7 +120,7 @@ const lightboxText = (
|
||||
})
|
||||
|
||||
/**
|
||||
* The "Lightbox" group — labels of the image viewer (<LightboxProvider texts>).
|
||||
* The "Image viewer" group (`lightbox`) — labels of the image viewer (<LightboxProvider texts>).
|
||||
* Added by ipalKit `lightbox: true`; exported so a project can place it in its
|
||||
* own global instead.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -371,7 +371,7 @@ export { buildLlmsTxt } from './modules/seo/index.js'
|
||||
// Site Settings → Title separator: stored name → character; SQL for the 1.14.x → GraphQL-safe values migration.
|
||||
export { TITLE_SEPARATORS, titleSeparatorChar, titleSeparatorSql } from './modules/seo/index.js'
|
||||
export type { TitleSeparatorName } from './modules/seo/index.js'
|
||||
// Site Settings → Search & AI: verification codes and AI crawler rules, for custom metadata/robots routes.
|
||||
// Site Settings → Search engines: verification codes and AI crawler rules, for custom metadata/robots routes.
|
||||
export { robotsOptionsFrom, verificationFrom } from './modules/seo/index.js'
|
||||
export type { AiBotRule, AiBotsPolicy, VerificationMetadata } from './modules/seo/index.js'
|
||||
export { buildSitemapCss, buildSitemapIndexXml, buildSitemapXml, DEFAULT_SITEMAP_CREDIT, SITEMAP_STYLE_PARAM } from './modules/seo/index.js'
|
||||
|
||||
@@ -504,7 +504,7 @@ export function createContentHelpers({
|
||||
const robots = (): RobotsRules => buildRobots({ ...robotsOptions, baseUrl: origin })
|
||||
|
||||
/**
|
||||
* `robots` plus what editors set in Site Settings → Search & AI (AI bot policy
|
||||
* `robots` plus what editors set in Site Settings → Search engines (AI bot policy
|
||||
* and per-bot exceptions), read per request. Use it instead of `robots` to
|
||||
* let the panel manage AI crawlers:
|
||||
*
|
||||
@@ -546,8 +546,8 @@ export function createContentHelpers({
|
||||
* the strongest fix for the metadata-in-head problem (stronger than ISR alone).
|
||||
*
|
||||
* Handles automatically:
|
||||
* - pages collection + content collections (with their archive prefix)
|
||||
* - excludes the homepage (maps to { slug: [] } — the root)
|
||||
* - the pages collection only (content-collection entries render on first request)
|
||||
* - the homepage as the root ({ slug: [] })
|
||||
* - excludes drafts and 404/500/system slugs
|
||||
* - KEEPS noindex pages (they must still render — noindex controls indexing,
|
||||
* not existence; skipping them would force dynamic rendering)
|
||||
|
||||
@@ -62,7 +62,7 @@ const day = (iso?: string) => (iso ? iso.slice(0, 10) : undefined)
|
||||
* and pages, so it can generate this automatically.
|
||||
*
|
||||
* Structure (llmstxt.org): H1 site name, a blockquote summary, the editor's
|
||||
* note from Site Settings → Search & AI (when set), then — per
|
||||
* note from Site Settings → Search engines (when set), then — per
|
||||
* language when the site has several — one list per collection (pages first,
|
||||
* then archive collections such as a blog) of Markdown links with descriptions.
|
||||
* Section names are the project's own locale and collection labels; the plugin
|
||||
@@ -115,7 +115,7 @@ export async function buildLlmsTxt({
|
||||
|
||||
const lines: string[] = [`# ${name}`, '']
|
||||
if (description) {lines.push(`> ${description}`, '')}
|
||||
// Site Settings → Search & AI: facts the editor wants assistants to know and quote.
|
||||
// Site Settings → Search engines: facts the editor wants assistants to know and quote.
|
||||
const intro = llmsIntroFrom(settings)
|
||||
if (intro) {lines.push(intro, '')}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ type BuildMetadataArgs = {
|
||||
siteName?: null | string
|
||||
/** slug per locale for this document — drives canonical + hreflang. */
|
||||
slugs: LocalizedSlugs
|
||||
/** Site Settings → Search & AI verification codes; rendered as <meta> tags by Next. */
|
||||
/** Site Settings → Search engines verification codes; rendered as <meta> tags by Next. */
|
||||
verification?: VerificationMetadata
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ export type RobotsOptions = {
|
||||
/**
|
||||
* Per-bot exceptions that win over `aiBots` — a listed bot leaves its policy
|
||||
* group and gets its own allow or block. Unknown bots can be added this way.
|
||||
* Site Settings → Search & AI fills it when you use `getRobots`.
|
||||
* Site Settings → Search engines fills it when you use `getRobots`.
|
||||
*/
|
||||
aiBotRules?: readonly AiBotRule[]
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,7 @@ export type SiteMetaConfig = {
|
||||
/** Global fallback meta description. */
|
||||
siteDescription?: null | string
|
||||
siteName: null | string
|
||||
/** Site Settings → Search & AI → verification codes (Search Console, Bing, Yandex). */
|
||||
/** Site Settings → Search engines → verification codes (Search Console, Bing, Yandex). */
|
||||
verification?: VerificationMetadata
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ export type SeoOption = {
|
||||
/** Optional: customize how meta titles are generated in the admin preview. */
|
||||
generateTitle?: (args: { doc: Record<string, unknown> }) => string
|
||||
/**
|
||||
* Site Settings → "Search & AI" tab: Search Console / Bing / Yandex
|
||||
* Site Settings → "Search engines" tab: Search Console / Bing / Yandex
|
||||
* verification, AI crawler policy for robots.txt (getRobots), llms.txt note.
|
||||
* On by default (empty fields change nothing); false removes the tab; a
|
||||
* function gets the plugin's fields and returns the tab's fields (add, drop,
|
||||
|
||||
+1
-1
@@ -273,7 +273,7 @@ export const ipalKit = (options: IpalOptions): Plugin => {
|
||||
const logoProps = { ...serverProps, ...(wl.logoField ? { imageField: wl.logoField } : {}) }
|
||||
const iconProps = { ...serverProps, ...(wl.iconField ? { imageField: wl.iconField } : {}) }
|
||||
|
||||
// Vendor credit ("Technology by Intecion.com") under the nav — on by
|
||||
// Vendor credit ("Technology support: Intecion.com") under the nav — on by
|
||||
// default, hidden with credit:false, text/url overridable.
|
||||
const creditOn = wl.credit !== false && agency !== false
|
||||
const creditProps = {
|
||||
|
||||
+2
-2
@@ -172,7 +172,7 @@ export type IpalOptions = {
|
||||
revalidatePath?: RevalidatePathFn
|
||||
|
||||
/**
|
||||
* Site Settings → "Search & AI" tab (verification codes, AI crawler policy,
|
||||
* Site Settings → "Search engines" tab (verification codes, AI crawler policy,
|
||||
* llms.txt intro). On by default; `false` removes it; a function gets the
|
||||
* plugin's fields and returns the tab's fields. Works without `seo`; wins
|
||||
* over `seo.searchSettings`.
|
||||
@@ -278,7 +278,7 @@ export type IpalOptions = {
|
||||
whiteLabel?:
|
||||
| {
|
||||
/**
|
||||
* Vendor credit ("Technology by Intecion.com") at the bottom of the
|
||||
* Vendor credit ("Technology support: Intecion.com") at the bottom of the
|
||||
* admin nav. Default on; `false` hides it, or override text/url.
|
||||
*/
|
||||
credit?:
|
||||
|
||||
Reference in New Issue
Block a user