astroidjs 0.16.0 → 0.18.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.
@@ -1,5 +1,5 @@
1
1
  import type { AstroidConfig } from "../config.js";
2
- export type AstroidEditorRouteName = "ai" | "health" | "realtime" | "vitals" | "overview" | "seoFix" | "versions" | "search" | "pages" | "save" | "settings" | "media" | "editors" | "form" | "inquiries" | "seed";
2
+ export type AstroidEditorRouteName = "ai" | "health" | "realtime" | "vitals" | "status" | "overview" | "seoFix" | "versions" | "search" | "pages" | "save" | "settings" | "media" | "editors" | "form" | "inquiries" | "seed";
3
3
  export interface AstroidEditorRoute {
4
4
  /** Stable key for this route. */
5
5
  name: AstroidEditorRouteName;
@@ -82,6 +82,11 @@ export function astroidEditorRoutePlan(config) {
82
82
  factory: "vitalsRoute",
83
83
  note: "Public CWV ingestion (POST /api/louise/vitals). NOT session-gated—these are anonymous visitor beacons—but same-origin only, and it accepts-and-drops without the dataset binding. Always 204.",
84
84
  });
85
+ routes.push({
86
+ name: "status",
87
+ factory: "statusRoute",
88
+ note: "Public status for an outside probe (GET/HEAD /api/louise/status): 200 when every check passes, 503 when any fails. A publicRoute under ADR 0012, so the gate lets an anonymous probe through, and it answers booleans and ages, never error text. Owns its own path, so it collides with nothing.",
89
+ });
85
90
  routes.push({
86
91
  name: "health",
87
92
  factory: "healthRoute",
@@ -90,7 +95,7 @@ export function astroidEditorRoutePlan(config) {
90
95
  routes.push({
91
96
  name: "ai",
92
97
  factory: "aiRoute",
93
- note: "Editor AI assists—rewrite/expand/shorten a selection, suggest SEO for a page. Owns /api/louise/ai/*, so it collides with nothing. POST-only and editor-gated, since each call spends AI budget.",
98
+ note: "Editor AI assists—rewrite a selection (tighten, rephrase, simplify, or fix), suggest SEO for a page. Owns /api/louise/ai/*, so it collides with nothing. POST-only and editor-gated, since each call spends AI budget.",
94
99
  });
95
100
  if (capturesInquiries(config)) {
96
101
  routes.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astroidjs",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Astroid — an opinionated meta-framework over Louise Toolkit and Astro for building editable, multi-editor sites on Cloudflare Workers.",
5
5
  "keywords": [
6
6
  "astro",
@@ -64,14 +64,14 @@
64
64
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
65
65
  "@vitest/coverage-v8": "4.1.11",
66
66
  "astro": "^7.2.9",
67
- "louise-toolkit": "^0.33.0",
67
+ "louise-toolkit": "^0.36.0",
68
68
  "solid-js": "^1.9.15",
69
69
  "typescript": "^6.0.3",
70
70
  "vitest": "^4.1.11"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "astro": "^7.0.9",
74
- "louise-toolkit": "^0.33.0",
74
+ "louise-toolkit": "^0.36.0",
75
75
  "solid-js": "^1.9.0"
76
76
  },
77
77
  "peerDependenciesMeta": {