@caelo-cms/shared 0.12.5 → 0.12.6-rc.1
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/untrusted-tool-result.d.ts +7 -6
- package/dist/untrusted-tool-result.d.ts.map +1 -1
- package/dist/untrusted-tool-result.js +7 -6
- package/dist/untrusted-tool-result.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/untrusted-tool-result.ts +7 -6
- package/src/version.ts +1 -1
|
@@ -25,14 +25,15 @@ export declare function isUntrustedToolResult(content: string): boolean;
|
|
|
25
25
|
* anything that is not such a wrapper.
|
|
26
26
|
*/
|
|
27
27
|
export declare function untrustedToolResultValue(content: string): unknown;
|
|
28
|
-
/** The element that marks content
|
|
28
|
+
/** The element that marks content read from another website (#1360, #1566). */
|
|
29
29
|
export declare const SITE_DATA_TAG = "site-data";
|
|
30
30
|
/**
|
|
31
|
-
* Mark `text` as
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* attempt to instruct the AI. Inline, so the tool's own guidance
|
|
35
|
-
* stays Caelo's; the static system prompt says what the element
|
|
31
|
+
* Mark `text` as read from another website, for the admin AI: a page a tool
|
|
32
|
+
* inspected, queried or mapped live (#1566), and a site import's pages,
|
|
33
|
+
* titles, URLs and what its crawl reported about them (#1360). Any of it may
|
|
34
|
+
* be an attempt to instruct the AI. Inline, so the tool's own guidance
|
|
35
|
+
* around it stays Caelo's; the static system prompt says what the element
|
|
36
|
+
* means. A
|
|
36
37
|
* closing tag inside the text is escaped, so crawled text cannot end the
|
|
37
38
|
* element early and go on as if it were outside it; everything else stays
|
|
38
39
|
* as it is, so the HTML and Markdown the AI rebuilds from stay readable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"untrusted-tool-result.d.ts","sourceRoot":"","sources":["../src/untrusted-tool-result.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,uCAAuC;AACvC,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAU1D;AAED,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAUjE;AAED
|
|
1
|
+
{"version":3,"file":"untrusted-tool-result.d.ts","sourceRoot":"","sources":["../src/untrusted-tool-result.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,uCAAuC;AACvC,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAU1D;AAED,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAUjE;AAED,+EAA+E;AAC/E,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C"}
|
|
@@ -46,14 +46,15 @@ export function untrustedToolResultValue(content) {
|
|
|
46
46
|
}
|
|
47
47
|
return JSON.parse(lines[2]);
|
|
48
48
|
}
|
|
49
|
-
/** The element that marks content
|
|
49
|
+
/** The element that marks content read from another website (#1360, #1566). */
|
|
50
50
|
export const SITE_DATA_TAG = "site-data";
|
|
51
51
|
/**
|
|
52
|
-
* Mark `text` as
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* attempt to instruct the AI. Inline, so the tool's own guidance
|
|
56
|
-
* stays Caelo's; the static system prompt says what the element
|
|
52
|
+
* Mark `text` as read from another website, for the admin AI: a page a tool
|
|
53
|
+
* inspected, queried or mapped live (#1566), and a site import's pages,
|
|
54
|
+
* titles, URLs and what its crawl reported about them (#1360). Any of it may
|
|
55
|
+
* be an attempt to instruct the AI. Inline, so the tool's own guidance
|
|
56
|
+
* around it stays Caelo's; the static system prompt says what the element
|
|
57
|
+
* means. A
|
|
57
58
|
* closing tag inside the text is escaped, so crawled text cannot end the
|
|
58
59
|
* element early and go on as if it were outside it; everything else stays
|
|
59
60
|
* as it is, so the HTML and Markdown the AI rebuilds from stay readable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"untrusted-tool-result.js","sourceRoot":"","sources":["../src/untrusted-tool-result.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;GAQG;AAEH,uCAAuC;AACvC,MAAM,CAAC,MAAM,yBAAyB,GAAG,uBAAuB,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC;SAC3C,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC;SAC1B,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC9B,OAAO;QACL,IAAI,yBAAyB,GAAG;QAChC,6NAA6N;QAC7N,IAAI;QACJ,KAAK,yBAAyB,GAAG;KAClC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,mEAAmE;AACnE,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,yBAAyB,KAAK,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,OAAe;IACtD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,IACE,KAAK,CAA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C,CAAC,CAAC,KAAK,KAAK,yBAAyB,GAAG,EAC9C,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAW,CAAC,CAAC;AACxC,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,IAAI,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC,KAAK,aAAa,GAAG,CAAC;AAC9F,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -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.12.
|
|
22
|
+
export declare const CAELO_VERSION = "0.12.6-rc.1";
|
|
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.12.5";
|
|
|
31
31
|
*
|
|
32
32
|
* @deprecated use CAELO_VERSION
|
|
33
33
|
*/
|
|
34
|
-
export declare const CALEO_VERSION = "0.12.
|
|
34
|
+
export declare const CALEO_VERSION = "0.12.6-rc.1";
|
|
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.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,GAAG,GAAE,MAAsB,GAAG,YAAY,CAYtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAkBvE"}
|
package/dist/version.js
CHANGED
|
@@ -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.12.
|
|
23
|
+
export const CAELO_VERSION = "0.12.6-rc.1";
|
|
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/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":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AAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3B,KAAK,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAU,EAAE,CAAC;QACrD,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC;IACD,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,UAAU;QAAE,OAAO,KAAK,CAAC;IAChD,IAAI,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAC/C,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU;QAAE,OAAO,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;IACrE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelo-cms/shared",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6-rc.1",
|
|
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.",
|
|
@@ -54,15 +54,16 @@ export function untrustedToolResultValue(content: string): unknown {
|
|
|
54
54
|
return JSON.parse(lines[2] as string);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
/** The element that marks content
|
|
57
|
+
/** The element that marks content read from another website (#1360, #1566). */
|
|
58
58
|
export const SITE_DATA_TAG = "site-data";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Mark `text` as
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* attempt to instruct the AI. Inline, so the tool's own guidance
|
|
65
|
-
* stays Caelo's; the static system prompt says what the element
|
|
61
|
+
* Mark `text` as read from another website, for the admin AI: a page a tool
|
|
62
|
+
* inspected, queried or mapped live (#1566), and a site import's pages,
|
|
63
|
+
* titles, URLs and what its crawl reported about them (#1360). Any of it may
|
|
64
|
+
* be an attempt to instruct the AI. Inline, so the tool's own guidance
|
|
65
|
+
* around it stays Caelo's; the static system prompt says what the element
|
|
66
|
+
* means. A
|
|
66
67
|
* closing tag inside the text is escaped, so crawled text cannot end the
|
|
67
68
|
* element early and go on as if it were outside it; everything else stays
|
|
68
69
|
* as it is, so the HTML and Markdown the AI rebuilds from stay readable.
|