=== Guidekeepers ===
Contributors: stormvisions
Donate link: https://buymeacoffee.com/stormvisions
Tags: search, navigation, helper, faq, pixel art
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Guidekeepers™: interactive website guides for WordPress. A little help finding your way.

== Description ==

Guidekeepers™ puts a little cottage in the corner of your site. Its resident steps out to help visitors find posts and pages. Published by StormVisions.

Visitors click the cottage, and its resident hops out (or climbs out of the window) to help. It answers with the replies you write and links to your pages, and it searches the rest of your site with WordPress's own search.

* No AI, no cookies, no tracking, no outside services.
* The first answers are written for you from your site's name, tagline, pages and categories. "What's new?" always lists your newest posts.
* Topics: give a friendly name ("Gut health") to a few tags or categories (#digestion, #fiber), and visitors who ask about it get your newest posts with any of them, kept up to date automatically.
* Choose a cottage and a resident, or add your own as packs: a zip of PNG/WebP images and a small pack.json.
* Quiet: no pop-ups. It respects reduced motion, works with a keyboard and on phones, and you can keep it off chosen pages.
* Everything lives in one Shadow DOM, so it can't clash with your theme.

== Installation ==

1. Upload and activate. It starts in "Test pages only" mode, so nothing changes until you add [cottage_keeper] to a page.
2. Settings → Guidekeepers → General: choose "Admin preview" to see it on every page while logged in.
3. Review the Answers tab, then choose "Everyone".

Shortcode: [cottage_keeper house="pixel-cottage" character="tuck" side="left"]

== License, notices and source ==

Guidekeepers is free software under the GNU General Public License, version 2 or (at your option) any later version (GPL-2.0-or-later), WITHOUT ANY WARRANTY; see LICENSE.txt and NOTICE.md. The plugin code, its motion engine, the built-in pixel artwork and the Hollow Cottage are all GPL-2.0-or-later. The complete corresponding source for each version is published by StormVisions with that version (guidekeepers-VERSION-source.zip).

Guidekeepers™ and Cottage Kin™ identify the StormVisions project and its first collection. Conceived and creatively directed by the author of StormVisions, with AI-assisted illustration and development using ChatGPT and Claude. An independent project for WordPress, not affiliated with or endorsed by the WordPress Foundation.

The Cottage Kin™ artwork collection is optional, downloaded separately and covered by its own artwork terms; the plugin works fully without it.

== Frequently Asked Questions ==

= Can I make my own resident or cottage? =
Yes. Download the Guidekeepers Creator Kit (guidekeepers-creator-kit.zip) from the same place you got the plugin. It has blank templates, a guide to the pack.json file (PACK-FORMAT.md), prompts for image tools, and two example packs. A pack is a zip with a pack.json and its images, added on the Packs tab.

= Can I keep a page out of the Keeper's answers? =
Yes: Settings → Guidekeepers → General → "Leave out of the Keeper's search". The Keeper won't suggest those pages, list them as new, show them under a topic or find them when it searches. They are still public pages, so your site's own search and search engines can still find them. To hide a page completely, make it private or a draft. The Keeper never shows private, draft or password-protected content.

= Does "What's new?" include pages? =
No, it lists your newest posts. Pages are found by asking for them or by searching.

= What happens to my packs if I deactivate or delete the plugin? =
Deactivating keeps everything. Deleting the plugin from the Plugins screen removes its settings, answers and uploaded packs. Before deleting, copy your answers from the Import & export tab and keep your pack zips.

= Does "Never show on" affect a page with the shortcode? =
No. A page that contains [cottage_keeper] always shows the cottage there, because you put it there on purpose.

= What is an animated cottage? =
A cottage pack made of layers (outside, the room inside, and the window's shape) with a resident made of parts (body, faces, feet, arms and one accessory). Guidekeepers moves the parts as the resident climbs out, walks and greets visitors. Animated residents live only in animated cottages; classic residents live in classic cottages. The pack format is described in the creator kit (PACK-FORMAT.md).

= Why can't I choose some residents? =
On the Cottage & resident tab, cottages and residents are grouped into Classic and Animated. Classic residents live in classic cottages and animated residents in animated cottages, so residents that do not fit the chosen cottage are greyed out and say what they need. When you change the cottage and your resident no longer fits, the first resident that fits is chosen for you and the page says which; you can then pick another. An animated cottage shows "(add an animated resident on the Packs tab)" until an animated resident is installed.

= Does the animation slow my site down? =
It draws only while the resident is moving (a few seconds per visit), and does nothing at rest except blink. Only the cottage and resident you chose are downloaded.

= Can visitors put the cottage away? =
Yes, two ways. **Minimize** (the small ⌄ button on the cottage's top corner, or at the top of the help panel) sends the resident home at once and folds the cottage and panel into one small button in the same corner, labelled with the panel title ("Ask a Guidekeeper" unless you changed it); on phones it is a small round cottage button. Tapping it brings the cottage straight back. Minimizing is remembered on other pages of the site while that browser tab stays open; the cottage never comes back on its own. **Hide until this tab closes** (at the bottom of the help panel) removes the Keeper completely, with no button, on every page until the visitor closes that browser tab. Both are kept only in the visitor's browser tab (sessionStorage): no cookie, nothing sent to your site.

= Can I change the colours of the help panel? =
Yes. Under Settings → Guidekeepers → Cottage & resident → Help panel appearance, choose Storybook (the original look, and the default), Clean Light, Professional or Dark; the preview beside it shows the result straight away. For finer control, set the documented --ck-* CSS custom properties on #cottage-keeper in your theme's Additional CSS; they work on top of any appearance and always win over it. CSS-CUSTOMIZATION.md in the plugin folder lists them all, with examples.

= Is it translated? =
The settings screens can be translated. The visitor's panel uses the wording you set on the General tab; a few short phrases in it ("Here's what I found", "More under:") are still in English.

= What does it send anywhere? =
Nothing leaves your site. Searches use your site's own REST API (the Keeper's own search route, which skips the pages you've left out).

== Changelog ==

= 1.0.0 =
* First release as Guidekeepers™. The plugin is now called Guidekeepers™, published by StormVisions. Settings, the shortcode [cottage_keeper], the folder and every other technical name are unchanged, so it upgrades in place and existing settings and wording are kept.
* New sites start with the panel title "Ask a Guidekeeper". Sites that saved a title keep it.
* License and notices: LICENSE.txt (GPLv2) and NOTICE.md are included, and the corresponding source is published with each version. The plugin names a project-owned Update URI, so WordPress.org never offers it an unrelated plugin's update; updates are installed manually from StormVisions.
* No change in behaviour from 1.0.0-beta.11.

= 1.0.0-beta.11 =
* Fix: the help panel preview under Settings → Cottage & resident → Help panel appearance was blank on real sites, and "Restore the default (Storybook)" did nothing. The settings page's script now runs after the Keeper's script has loaded.
* Clearer: the Cottage and Resident lists are grouped into Classic and Animated. Residents that do not fit the chosen cottage are greyed out and say why; changing the cottage picks a fitting resident and says so. The "no effect at the moment" note for animated-cottage settings now follows the cottage as you choose it. Classic residents with several frames no longer say "(animated)". Saving still checks the pair as before.
* Accessibility: the question box's edge is easier to see. It now has at least 3:1 contrast against both its own fill and the strip around it in all four appearances (Storybook #998360, Clean Light #80888f, Professional #7a899e; Dark unchanged). This is the only visible change to Storybook. Sites that set --ck-input-border keep their own colour.

= 1.0.0-beta.10 =
* New: Help panel appearance. Choose Storybook (the original look, still the default), Clean Light, Professional or Dark, with a live preview of the real panel and a one-click way back to the default. Independent of the cottage and resident.
* New: the panel's colours, font, corner rounding and shadow are documented CSS custom properties (--ck-*), so a site's own CSS can fine-tune any appearance without reaching into the panel. See CSS-CUSTOMIZATION.md.
* Existing sites keep exactly the look they had: Storybook renders identically to beta.9.

= 1.0.0-beta.9 =
* New: animated residents can ask for a little more room beside the cottage (optional "clearance" in the pack). Residents with a long tail or a wide cape land and greet slightly further out and get a wider walking space. Residents without it behave exactly as before.
* Animated packs can be replaced with updated versions (for example a new display name) without losing a site's choice of resident: the pack id is what is saved.

= 1.0.0-beta.8 =
* New: Minimize. A small button on the cottage (and one at the top of the help panel) folds the cottage, resident and any open panel into a compact "Ask the Keeper" button, so nothing covers the end of the page. Restoring brings the cottage back at once, at home with the panel closed. Works on both sides, by mouse, touch and keyboard, and with reduced motion. Remembered for the rest of the visit in that browser tab; it never reappears by itself.
* Clearer: "Hide for this visit" is now "Hide until this tab closes", with a note pointing to Minimize. What it does is unchanged.
* Settings: the preview's side control is now "Preview side (preview only)" and starts at the saved position; the saved position is shown beside it. The mirroring setting explains that it only flips the picture and follows the saved position, with a line showing what visitors will see.
* Fix: for logged-in users, the help panel now stays below the WordPress toolbar instead of slipping under its edge.

= 1.0.0-beta.7 =
* Fix: the Keeper's search, site index and topic lists now work on sites behind a server login (HTTP Basic Auth, as on many protected staging sites). The browser now sends that site's login with the Keeper's own requests (same site only); before, they were refused and the Keeper wrongly said it couldn't find anything.
* Fix: if the site's search can't be reached (refused, down, too slow), the Keeper now says so instead of "I couldn't find that", and still offers the site-search link. A failed site index is retried on the next question.
* Safety: on such sites the Keeper's answers are marked private, so shared caches don't keep them. What the Keeper returns is unchanged: published, unprotected pages only, minus the pages left out of its search, whoever is logged in.

= 1.0.0-beta.6 =
* New: animated cottages ("scene packs"). An animated resident looks out of the cottage window and blinks. Clicked, it climbs out, waddles a few short steps toward the page, greets the visitor with a small hop (first opening per visit) and waits outside while the help panel is open, then walks home and climbs back in when the panel closes.
* Help comes first: the panel opens about a quarter of a second after the click, whatever the animation is doing. With reduced motion turned on in the visitor's device, the resident simply appears beside the cottage.
* New settings on the Cottage & resident tab: size (Small, Medium, Large, with Small on phones), animation speed (0.75× to 1.5×), mirroring the cottage on the left side, face position and size in the window, and a live preview.
* New pack format version 2 for animated cottages and residents: data only, strictly checked (every number, name, rectangle and image). At most 12 images per pack, one file each (PNG or WebP), up to 2048 pixels a side and 16 million pixels in all. Classic packs are unchanged.
* Only the chosen cottage and resident are downloaded. If any of their pictures fails to load, the classic cottage and Keeper take over.
* The animation runs only while something moves; at rest, nothing runs but a blink timer.

= 1.0.0-beta.5 =
* The Answers tab now warns when an answer links to a page you've left out of the Keeper's search. Such links still show, because you added them yourself, and the setting now says so.
* Creator kit: PACK-FORMAT.md says plainly that 12 frames (8 walking, 4 blinking) is the standard layout and that other counts also work.

= 1.0.0-beta.4 =
* Fix: on a new site, the first save on the General or Cottage & resident tab was lost.
* Fix: sites in other alphabets (Cyrillic, Greek, Arabic, Hebrew, Japanese, Chinese and others) can now use their own words in keywords and questions. A question with no letters at all no longer runs an empty search.
* Fix: the starting "About" answer no longer answers every question containing the word "about".
* Fix: a suggestion button always gives its own answer, and an answer that is only for a button no longer needs keywords. If an answer can't be saved, the settings page now says so.
* Fix: easier-to-read colours for the footer note, notes, the Go button, the search hint and the focus outline.
* Fix: the screen-reader label now reads "Send The Keeper home" instead of "Send the The Keeper home".
* Fix: importing answers reports how many were really added when the 60-answer limit is reached.
* Fix: uninstalling also removes the topic cache.
* Fix: a house and a resident with the same id no longer share a folder, so adding or removing one can't damage the other. Packs are now kept in uploads/cottage-keeper/packs/houses/ and /characters/. Packs added before beta.4 keep working where they are; uploading one again moves it.
* Fix: replacing a pack writes the new pictures first, so a failed upload leaves the old pack working.
* Fix: with more than eight packs installed, the [cottage_keeper] shortcode can still use any of them.
* New: "Leave out of the Keeper's search" on the General tab keeps chosen pages and posts out of suggestions, "What's new?", topic lists and the Keeper's search.
* New: the Keeper searches through its own route instead of WordPress's general search route, so it can skip the pages you've left out.

= 1.0.0-beta.3 =
* Fix: switching the house while the Keeper was outside could leave the character standing outside after the panel closed.

= 1.0.0-beta.2 =
* Topics: answers that list posts with chosen tags or categories, under a friendly name.
* Popular tags are suggested alongside pages and categories; tag pages can be picked as links.

= 1.0.0-beta =
First general release, based on the StormVisions Keeper.
