@happyvertical/smrt-core 0.57.23 → 0.57.24
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/README.md +6 -1
- package/dist/manifest/static-manifest.js +1 -1
- package/dist/manifest/static-manifest.js.map +1 -1
- package/dist/manifest/store.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/vite-plugin/asset-url-compatibility.d.ts.map +1 -1
- package/dist/vite-plugin/asset-url-compatibility.js +5 -4
- package/dist/vite-plugin/asset-url-compatibility.js.map +1 -1
- package/package.json +4 -4
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-core",
|
|
6
|
-
"packageVersion": "0.57.
|
|
6
|
+
"packageVersion": "0.57.24",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "fed1e908c48bb7ae417a7db377909fc093c4294a26e133ad73469edcb7889ae7",
|
|
11
|
+
"packageJson": "9d408ff7478b1668f9a191a4ca0f1cc86a5bbbafb8d398874f5536c5a778d1a4",
|
|
12
12
|
"agents": "3a78a0babd2884ac22e4b376a3c9618037ab818ad4bdd762751f82fa53c21d04",
|
|
13
13
|
"moduleDoc:agents/object-runtime.md": "fd2748649e820c2fe5960fa4a44c5f3e2a5afa57da89925e8b4cb3b53d67a07b",
|
|
14
14
|
"moduleDoc:agents/revision-guard.md": "f6ea32a6860964c98aba14b93587f40b33c8f7d0deccb2c54d21bff45db3da42",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-url-compatibility.d.ts","sourceRoot":"","sources":["../../src/vite-plugin/asset-url-compatibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"asset-url-compatibility.d.ts","sourceRoot":"","sources":["../../src/vite-plugin/asset-url-compatibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CA0ClD"}
|
|
@@ -7,17 +7,18 @@ var unsafeAssetFilter = /new\s+URL.+import\.meta\.url/s;
|
|
|
7
7
|
* Install once in root plugins; existing worker plugin factories are preserved.
|
|
8
8
|
*/
|
|
9
9
|
function smrtAssetUrlCompatibility() {
|
|
10
|
+
let supportedVite = false;
|
|
10
11
|
const createPlugin = (includeWorkers) => ({
|
|
11
12
|
name: "smrt-asset-url-compatibility",
|
|
12
13
|
...includeWorkers ? { async config(config) {
|
|
13
14
|
const { version } = await import("vite");
|
|
14
|
-
|
|
15
|
+
supportedVite = version.startsWith("7.");
|
|
16
|
+
if (!supportedVite) return;
|
|
15
17
|
const existing = config.worker?.plugins;
|
|
16
18
|
return { worker: { plugins: (...args) => [existing?.(...args) ?? [], createPlugin(false)] } };
|
|
17
19
|
} } : {},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (!version.startsWith("7.")) return;
|
|
20
|
+
configResolved(config) {
|
|
21
|
+
if (!supportedVite) return;
|
|
21
22
|
for (const plugin of config.plugins) {
|
|
22
23
|
if (plugin.name !== "vite:asset-import-meta-url") continue;
|
|
23
24
|
const transform = plugin.transform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-url-compatibility.js","names":[],"sources":["../../src/vite-plugin/asset-url-compatibility.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst unsafeAssetFilter = /new\\s+URL.+import\\.meta\\.url/s;\n\n/**\n * Keep Vite 7 asset URL transforms safe for large browser/Planner workers.\n * Only the known backtracking prefilter changes; Vite still owns asset parsing,\n * resolution and rewriting. Vite 8 and unrecognized filter shapes are untouched.\n * Install once in root plugins; existing worker plugin factories are preserved.\n */\nexport function smrtAssetUrlCompatibility(): Plugin {\n const createPlugin = (includeWorkers: boolean): Plugin => ({\n name: 'smrt-asset-url-compatibility',\n ...(includeWorkers\n ? ({\n async config(config) {\n const { version } = await import('vite');\n
|
|
1
|
+
{"version":3,"file":"asset-url-compatibility.js","names":[],"sources":["../../src/vite-plugin/asset-url-compatibility.ts"],"sourcesContent":["import type { Plugin } from 'vite';\n\nconst unsafeAssetFilter = /new\\s+URL.+import\\.meta\\.url/s;\n\n/**\n * Keep Vite 7 asset URL transforms safe for large browser/Planner workers.\n * Only the known backtracking prefilter changes; Vite still owns asset parsing,\n * resolution and rewriting. Vite 8 and unrecognized filter shapes are untouched.\n * Install once in root plugins; existing worker plugin factories are preserved.\n */\nexport function smrtAssetUrlCompatibility(): Plugin {\n let supportedVite = false;\n const createPlugin = (includeWorkers: boolean): Plugin => ({\n name: 'smrt-asset-url-compatibility',\n ...(includeWorkers\n ? ({\n async config(config) {\n const { version } = await import('vite');\n supportedVite = version.startsWith('7.');\n if (!supportedVite) return;\n const existing = config.worker?.plugins;\n return {\n worker: {\n plugins: (...args) => [\n existing?.(...args) ?? [],\n createPlugin(false),\n ],\n },\n };\n },\n } satisfies Partial<Plugin>)\n : {}),\n configResolved(config) {\n if (!supportedVite) return;\n for (const plugin of config.plugins) {\n if (plugin.name !== 'vite:asset-import-meta-url') continue;\n const transform = plugin.transform;\n if (!transform || typeof transform !== 'object') continue;\n const filter = transform.filter;\n const code = filter?.code;\n if (\n filter &&\n code instanceof RegExp &&\n code.source === unsafeAssetFilter.source &&\n code.flags === unsafeAssetFilter.flags\n ) {\n filter.code = 'import.meta.url';\n }\n }\n },\n });\n return createPlugin(true);\n}\n"],"mappings":";AAEA,IAAM,oBAAoB;;;;;;;AAQ1B,SAAgB,4BAAoC;CAClD,IAAI,gBAAgB;CACpB,MAAM,gBAAgB,oBAAqC;EACzD,MAAM;EACN,GAAI,iBACC,EACC,MAAM,OAAO,QAAQ;GACnB,MAAM,EAAE,YAAY,MAAM,OAAO;GACjC,gBAAgB,QAAQ,WAAW,IAAI;GACvC,IAAI,CAAC,eAAe;GACpB,MAAM,WAAW,OAAO,QAAQ;GAChC,OAAO,EACL,QAAQ,EACN,UAAU,GAAG,SAAS,CACpB,WAAW,GAAG,IAAI,KAAK,CAAC,GACxB,aAAa,KAAK,CACpB,EACF,EACF;EACF,EACF,IACA,CAAC;EACL,eAAe,QAAQ;GACrB,IAAI,CAAC,eAAe;GACpB,KAAK,MAAM,UAAU,OAAO,SAAS;IACnC,IAAI,OAAO,SAAS,8BAA8B;IAClD,MAAM,YAAY,OAAO;IACzB,IAAI,CAAC,aAAa,OAAO,cAAc,UAAU;IACjD,MAAM,SAAS,UAAU;IACzB,MAAM,OAAO,QAAQ;IACrB,IACE,UACA,gBAAgB,UAChB,KAAK,WAAW,kBAAkB,UAClC,KAAK,UAAU,kBAAkB,OAEjC,OAAO,OAAO;GAElB;EACF;CACF;CACA,OAAO,aAAa,IAAI;AAC1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-core",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.24",
|
|
4
4
|
"description": "Core AI agent framework with standardized collections, object-relational mapping, and code generators",
|
|
5
5
|
"author": "HappyVertical",
|
|
6
6
|
"type": "module",
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
"@happyvertical/files": "^0.106.0",
|
|
200
200
|
"@happyvertical/json": "^0.106.0",
|
|
201
201
|
"@happyvertical/logger": "^0.106.0",
|
|
202
|
-
"@happyvertical/smrt-config": "0.57.
|
|
203
|
-
"@happyvertical/smrt-scanner": "0.57.
|
|
204
|
-
"@happyvertical/smrt-types": "0.57.
|
|
202
|
+
"@happyvertical/smrt-config": "0.57.24",
|
|
203
|
+
"@happyvertical/smrt-scanner": "0.57.24",
|
|
204
|
+
"@happyvertical/smrt-types": "0.57.24",
|
|
205
205
|
"@happyvertical/sql": "^0.106.0",
|
|
206
206
|
"@happyvertical/utils": "^0.106.0",
|
|
207
207
|
"@noble/hashes": "^2.4.0",
|