@caelo-cms/shared 0.10.43 → 0.10.44
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/cap-failures.js +1 -1
- package/dist/document-language.d.ts +1 -1
- package/dist/document-language.js +1 -1
- package/dist/preview-compose.js +1 -1
- package/dist/subagents.d.ts +1 -1
- package/dist/subagents.js +1 -1
- package/dist/version.d.ts +3 -3
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/src/cap-failures.ts +1 -1
- package/src/document-language.ts +1 -1
- package/src/preview-compose.ts +1 -1
- package/src/subagents.ts +1 -1
- package/src/version.ts +2 -2
package/dist/cap-failures.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
const LOOKUP_FAIL_THRESHOLD = 3;
|
|
19
19
|
const counters = new Map();
|
|
20
|
-
/** Total fail-closed trips since process start — surfaced in /
|
|
20
|
+
/** Total fail-closed trips since process start — surfaced in /settings/costs. */
|
|
21
21
|
let totalTrips = 0;
|
|
22
22
|
export function recordCapLookupSuccess(key) {
|
|
23
23
|
counters.delete(key);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* contribution point (the `international-site` plugin knows each
|
|
15
15
|
* page's locale — core does not, since epic #380), else
|
|
16
16
|
* 2. the site's stored language (`site_defaults.site_language`, set
|
|
17
|
-
* by the AI via `set_site_identity` or by the Owner at /
|
|
17
|
+
* by the AI via `set_site_identity` or by the Owner at /settings/seo).
|
|
18
18
|
* The stored language has no default (migration 0232, CLAUDE.md §2): NULL
|
|
19
19
|
* means nobody chose one yet. Nothing here substitutes a language for it —
|
|
20
20
|
* the preview renders `<html>` without `lang` and flags
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* contribution point (the `international-site` plugin knows each
|
|
16
16
|
* page's locale — core does not, since epic #380), else
|
|
17
17
|
* 2. the site's stored language (`site_defaults.site_language`, set
|
|
18
|
-
* by the AI via `set_site_identity` or by the Owner at /
|
|
18
|
+
* by the AI via `set_site_identity` or by the Owner at /settings/seo).
|
|
19
19
|
* The stored language has no default (migration 0232, CLAUDE.md §2): NULL
|
|
20
20
|
* means nobody chose one yet. Nothing here substitutes a language for it —
|
|
21
21
|
* the preview renders `<html>` without `lang` and flags
|
package/dist/preview-compose.js
CHANGED
|
@@ -453,7 +453,7 @@ export function composePageWithLayout(input) {
|
|
|
453
453
|
// caller, not silently emit a body-less page.
|
|
454
454
|
if (!listSlotNames(input.layoutHtml).includes("content")) {
|
|
455
455
|
const slug = input.layoutSlug ?? "(unknown)";
|
|
456
|
-
throw new ComposeError("layout-missing-content", `layout "${slug}" is missing the required \`<caelo-slot name="content">\` slot — fix via /
|
|
456
|
+
throw new ComposeError("layout-missing-content", `layout "${slug}" is missing the required \`<caelo-slot name="content">\` slot — fix via /settings/layouts`, input.layoutSlug);
|
|
457
457
|
}
|
|
458
458
|
// CSS / JS aggregation order: layout (ground) → template (overrides
|
|
459
459
|
// layout) → modules (highest specificity). The array's source order
|
package/dist/subagents.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export declare const EXPECTED_RETURN_SHAPES: readonly ExpectedReturnShape[];
|
|
|
49
49
|
* The tier VOCABULARY is deliberately abstract — tool results and
|
|
50
50
|
* editor-facing text never name the underlying model (CLAUDE.md §2:
|
|
51
51
|
* provider brand never surfaces in the editor chat UI); concrete model
|
|
52
|
-
* ids appear only on Owner surfaces (
|
|
52
|
+
* ids appear only on Owner surfaces (Settings panel, cost dashboard).
|
|
53
53
|
*/
|
|
54
54
|
export declare const subagentModelTier: z.ZodEnum<{
|
|
55
55
|
small: "small";
|
package/dist/subagents.js
CHANGED
|
@@ -44,7 +44,7 @@ export const EXPECTED_RETURN_SHAPES = expectedReturnShape.options;
|
|
|
44
44
|
* The tier VOCABULARY is deliberately abstract — tool results and
|
|
45
45
|
* editor-facing text never name the underlying model (CLAUDE.md §2:
|
|
46
46
|
* provider brand never surfaces in the editor chat UI); concrete model
|
|
47
|
-
* ids appear only on Owner surfaces (
|
|
47
|
+
* ids appear only on Owner surfaces (Settings panel, cost dashboard).
|
|
48
48
|
*/
|
|
49
49
|
export const subagentModelTier = z.enum(["inherit", "mid", "small"]);
|
|
50
50
|
/** Single source of truth for the tier enum (same #251 drift-guard pattern
|
package/dist/version.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* 5. Pushes — GitHub Actions takes over for the publish step.
|
|
10
10
|
*
|
|
11
11
|
* Read by:
|
|
12
|
-
* - admin's /
|
|
12
|
+
* - admin's /settings index page (header badge + about-modal),
|
|
13
13
|
* - cms-provision CLI's `version` subcommand,
|
|
14
14
|
* - User-Agent header on plugin-host's outbound HTTP calls,
|
|
15
15
|
* - Tier-1 manifest signing (the version is hashed into the
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Format: SemVer 2.0.0. Pre-1.0 minor bumps are breaking; post-1.0
|
|
20
20
|
* follow standard SemVer.
|
|
21
21
|
*/
|
|
22
|
-
export declare const CAELO_VERSION = "0.10.
|
|
22
|
+
export declare const CAELO_VERSION = "0.10.44";
|
|
23
23
|
/**
|
|
24
24
|
* Deprecated alias for back-compat — early P17 work spelled this
|
|
25
25
|
* `CALEO_VERSION` (typo of "Caelo"). New code should import
|
|
@@ -31,7 +31,7 @@ export declare const CAELO_VERSION = "0.10.43";
|
|
|
31
31
|
*
|
|
32
32
|
* @deprecated use CAELO_VERSION
|
|
33
33
|
*/
|
|
34
|
-
export declare const CALEO_VERSION = "0.10.
|
|
34
|
+
export declare const CALEO_VERSION = "0.10.44";
|
|
35
35
|
/**
|
|
36
36
|
* Parsed shape — major/minor/patch + optional pre-release tag.
|
|
37
37
|
* Stable interface for callers that need to feature-gate (rare —
|
package/dist/version.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* 5. Pushes — GitHub Actions takes over for the publish step.
|
|
11
11
|
*
|
|
12
12
|
* Read by:
|
|
13
|
-
* - admin's /
|
|
13
|
+
* - admin's /settings index page (header badge + about-modal),
|
|
14
14
|
* - cms-provision CLI's `version` subcommand,
|
|
15
15
|
* - User-Agent header on plugin-host's outbound HTTP calls,
|
|
16
16
|
* - Tier-1 manifest signing (the version is hashed into the
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* Format: SemVer 2.0.0. Pre-1.0 minor bumps are breaking; post-1.0
|
|
21
21
|
* follow standard SemVer.
|
|
22
22
|
*/
|
|
23
|
-
export const CAELO_VERSION = "0.10.
|
|
23
|
+
export const CAELO_VERSION = "0.10.44";
|
|
24
24
|
/**
|
|
25
25
|
* Deprecated alias for back-compat — early P17 work spelled this
|
|
26
26
|
* `CALEO_VERSION` (typo of "Caelo"). New code should import
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelo-cms/shared",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.44",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"description": "Shared Zod schemas + types + the two-pass HTML composer used by every Caelo CMS workspace package. Stable enough for plugin authors and embedders to depend on directly.",
|
package/src/cap-failures.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
const LOOKUP_FAIL_THRESHOLD = 3;
|
|
21
21
|
const counters = new Map<string, number>();
|
|
22
22
|
|
|
23
|
-
/** Total fail-closed trips since process start — surfaced in /
|
|
23
|
+
/** Total fail-closed trips since process start — surfaced in /settings/costs. */
|
|
24
24
|
let totalTrips = 0;
|
|
25
25
|
|
|
26
26
|
export function recordCapLookupSuccess(key: string): void {
|
package/src/document-language.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* contribution point (the `international-site` plugin knows each
|
|
17
17
|
* page's locale — core does not, since epic #380), else
|
|
18
18
|
* 2. the site's stored language (`site_defaults.site_language`, set
|
|
19
|
-
* by the AI via `set_site_identity` or by the Owner at /
|
|
19
|
+
* by the AI via `set_site_identity` or by the Owner at /settings/seo).
|
|
20
20
|
* The stored language has no default (migration 0232, CLAUDE.md §2): NULL
|
|
21
21
|
* means nobody chose one yet. Nothing here substitutes a language for it —
|
|
22
22
|
* the preview renders `<html>` without `lang` and flags
|
package/src/preview-compose.ts
CHANGED
|
@@ -733,7 +733,7 @@ export function composePageWithLayout(input: ComposeWithLayoutInput): ComposeOut
|
|
|
733
733
|
const slug = input.layoutSlug ?? "(unknown)";
|
|
734
734
|
throw new ComposeError(
|
|
735
735
|
"layout-missing-content",
|
|
736
|
-
`layout "${slug}" is missing the required \`<caelo-slot name="content">\` slot — fix via /
|
|
736
|
+
`layout "${slug}" is missing the required \`<caelo-slot name="content">\` slot — fix via /settings/layouts`,
|
|
737
737
|
input.layoutSlug,
|
|
738
738
|
);
|
|
739
739
|
}
|
package/src/subagents.ts
CHANGED
|
@@ -50,7 +50,7 @@ export const EXPECTED_RETURN_SHAPES: readonly ExpectedReturnShape[] = expectedRe
|
|
|
50
50
|
* The tier VOCABULARY is deliberately abstract — tool results and
|
|
51
51
|
* editor-facing text never name the underlying model (CLAUDE.md §2:
|
|
52
52
|
* provider brand never surfaces in the editor chat UI); concrete model
|
|
53
|
-
* ids appear only on Owner surfaces (
|
|
53
|
+
* ids appear only on Owner surfaces (Settings panel, cost dashboard).
|
|
54
54
|
*/
|
|
55
55
|
export const subagentModelTier = z.enum(["inherit", "mid", "small"]);
|
|
56
56
|
export type SubagentModelTier = z.infer<typeof subagentModelTier>;
|
package/src/version.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* 5. Pushes — GitHub Actions takes over for the publish step.
|
|
12
12
|
*
|
|
13
13
|
* Read by:
|
|
14
|
-
* - admin's /
|
|
14
|
+
* - admin's /settings index page (header badge + about-modal),
|
|
15
15
|
* - cms-provision CLI's `version` subcommand,
|
|
16
16
|
* - User-Agent header on plugin-host's outbound HTTP calls,
|
|
17
17
|
* - Tier-1 manifest signing (the version is hashed into the
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* follow standard SemVer.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export const CAELO_VERSION = "0.10.
|
|
25
|
+
export const CAELO_VERSION = "0.10.44";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Deprecated alias for back-compat — early P17 work spelled this
|