kennel 0.2.19 → 0.2.20
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/core/runtime.js +5 -5
- package/dist/package/preview.js +5 -5
- package/package.json +2 -2
package/dist/core/runtime.js
CHANGED
|
@@ -38267,8 +38267,8 @@ function createFolderApi({
|
|
|
38267
38267
|
}) {
|
|
38268
38268
|
let lockedRoot = restrictToRoot ? realpathSync2(root) : undefined;
|
|
38269
38269
|
const lockedTarget = lockedFile ? realpathSync2(lockedFile) : undefined;
|
|
38270
|
-
|
|
38271
|
-
|
|
38270
|
+
let basePlugins;
|
|
38271
|
+
let baseExternalApiHandlers;
|
|
38272
38272
|
const assetFiles = new Map;
|
|
38273
38273
|
let projectSearchCache;
|
|
38274
38274
|
const projectDiscovery = createProjectDiscovery();
|
|
@@ -38633,7 +38633,7 @@ function createFolderApi({
|
|
|
38633
38633
|
throw new Error("Unknown plugin");
|
|
38634
38634
|
const folder = folderPath(url.searchParams.get("path"), root, lockedRoot);
|
|
38635
38635
|
const pluginConfig = await folderPluginRegistryConfig(folder);
|
|
38636
|
-
const plugins = configuredFolderServerRegistry(await basePlugins, pluginConfig);
|
|
38636
|
+
const plugins = configuredFolderServerRegistry(await (basePlugins ??= folderServerRegistryAsync()), pluginConfig);
|
|
38637
38637
|
const plugin = plugins.get(pluginId);
|
|
38638
38638
|
if (!plugin)
|
|
38639
38639
|
throw new Error("Unknown plugin");
|
|
@@ -38685,7 +38685,7 @@ function createFolderApi({
|
|
|
38685
38685
|
}
|
|
38686
38686
|
return;
|
|
38687
38687
|
}
|
|
38688
|
-
for (const handler of await baseExternalApiHandlers) {
|
|
38688
|
+
for (const handler of await (baseExternalApiHandlers ??= externalApiHandlers())) {
|
|
38689
38689
|
if (await handler(request, response, {
|
|
38690
38690
|
authorizeFolder: (value) => folderPath(value, root, lockedRoot),
|
|
38691
38691
|
readOnly: remote,
|
|
@@ -38805,7 +38805,7 @@ function createFolderApi({
|
|
|
38805
38805
|
}
|
|
38806
38806
|
if (part === "plugins") {
|
|
38807
38807
|
const pluginConfig = await folderPluginRegistryConfig(folder);
|
|
38808
|
-
const registry = await basePlugins;
|
|
38808
|
+
const registry = await (basePlugins ??= folderServerRegistryAsync());
|
|
38809
38809
|
const plugins = configuredFolderServerRegistry(registry, pluginConfig);
|
|
38810
38810
|
const configWarnings = pluginConfigWarnings(registry, pluginConfig);
|
|
38811
38811
|
sendContract(response, url, {
|
package/dist/package/preview.js
CHANGED
|
@@ -39369,8 +39369,8 @@ function createFolderApi({
|
|
|
39369
39369
|
}) {
|
|
39370
39370
|
let lockedRoot = restrictToRoot ? realpathSync2(root) : undefined;
|
|
39371
39371
|
const lockedTarget = lockedFile ? realpathSync2(lockedFile) : undefined;
|
|
39372
|
-
|
|
39373
|
-
|
|
39372
|
+
let basePlugins;
|
|
39373
|
+
let baseExternalApiHandlers;
|
|
39374
39374
|
const assetFiles = new Map;
|
|
39375
39375
|
let projectSearchCache;
|
|
39376
39376
|
const projectDiscovery = createProjectDiscovery();
|
|
@@ -39735,7 +39735,7 @@ function createFolderApi({
|
|
|
39735
39735
|
throw new Error("Unknown plugin");
|
|
39736
39736
|
const folder = folderPath(url.searchParams.get("path"), root, lockedRoot);
|
|
39737
39737
|
const pluginConfig = await folderPluginRegistryConfig(folder);
|
|
39738
|
-
const plugins = configuredFolderServerRegistry(await basePlugins, pluginConfig);
|
|
39738
|
+
const plugins = configuredFolderServerRegistry(await (basePlugins ??= folderServerRegistryAsync()), pluginConfig);
|
|
39739
39739
|
const plugin = plugins.get(pluginId);
|
|
39740
39740
|
if (!plugin)
|
|
39741
39741
|
throw new Error("Unknown plugin");
|
|
@@ -39787,7 +39787,7 @@ function createFolderApi({
|
|
|
39787
39787
|
}
|
|
39788
39788
|
return;
|
|
39789
39789
|
}
|
|
39790
|
-
for (const handler of await baseExternalApiHandlers) {
|
|
39790
|
+
for (const handler of await (baseExternalApiHandlers ??= externalApiHandlers())) {
|
|
39791
39791
|
if (await handler(request, response, {
|
|
39792
39792
|
authorizeFolder: (value) => folderPath(value, root, lockedRoot),
|
|
39793
39793
|
readOnly: remote,
|
|
@@ -39907,7 +39907,7 @@ function createFolderApi({
|
|
|
39907
39907
|
}
|
|
39908
39908
|
if (part === "plugins") {
|
|
39909
39909
|
const pluginConfig = await folderPluginRegistryConfig(folder);
|
|
39910
|
-
const registry = await basePlugins;
|
|
39910
|
+
const registry = await (basePlugins ??= folderServerRegistryAsync());
|
|
39911
39911
|
const plugins = configuredFolderServerRegistry(registry, pluginConfig);
|
|
39912
39912
|
const configWarnings = pluginConfigWarnings(registry, pluginConfig);
|
|
39913
39913
|
sendContract(response, url, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kennel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Open-source pop-up previews for AI output: markdown, HTML artifacts, email, images, code, tables, notes, and calendars, from the terminal or your agent session.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"esbuild": "^0.27.0",
|
|
68
68
|
"kennel-knowledge": "https://registry.npmjs.org/%40raggle-ai%2fkennel-knowledge/-/kennel-knowledge-0.1.0.tgz",
|
|
69
69
|
"kennel-mcp": "https://registry.npmjs.org/%40raggle-ai%2fkennel-mcp/-/kennel-mcp-0.1.8.tgz",
|
|
70
|
-
"kennel-plugins": "0.1.
|
|
70
|
+
"kennel-plugins": "0.1.8",
|
|
71
71
|
"koffi": "^3.3.1",
|
|
72
72
|
"lucide-react": "^0.562.0",
|
|
73
73
|
"pi-acp": "0.0.33",
|