kennel 0.2.5 → 0.2.6
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/cli/src/plugins/external.js +2 -2
- package/dist/cli/src/site/server-plugins.d.ts +2 -2
- package/dist/core/api-client.js +576 -10317
- package/dist/core/core-folders.js +2313 -12088
- package/dist/core/runtime.js +7899 -17525
- package/dist/package/preview.js +9838 -19692
- package/dist/plugins/external.js +2 -2
- package/dist/site/server-plugins.d.ts +2 -2
- package/dist/site/server-plugins.js +9 -9
- package/kernel/apps/web/package.json +1 -1
- package/kernel/apps/web/src/external-plugins.ts +1 -1
- package/kernel/apps/web/src/folder-filter-icons.tsx +1 -1
- package/kernel/apps/web/src/folder-plugin-view.tsx +1 -1
- package/kernel/apps/web/src/plugins.ts +1 -1
- package/kernel/apps/web/vite.config.ts +1 -1
- package/kernel/packages/agents/package.json +1 -1
- package/kernel/packages/agents/src/agent-card.tsx +1 -1
- package/kernel/packages/agents/src/client.tsx +1 -1
- package/kernel/packages/agents/src/manifest.ts +1 -1
- package/kernel/packages/agents/src/server.ts +1 -1
- package/kernel/packages/agents/src/viewer.tsx +1 -1
- package/kernel/packages/api/package.json +1 -1
- package/kernel/packages/api/src/server/acp-live-plugin.ts +1 -1
- package/kernel/packages/api/src/server/api/create-agent-file.ts +2 -2
- package/kernel/packages/api/src/server/api/document-edit.ts +2 -2
- package/kernel/packages/api/src/server/api/open-path.ts +2 -2
- package/kernel/packages/api/src/server/folder-metadata-plugin.ts +4 -4
- package/kernel/packages/api/src/server/plugins.ts +3 -3
- package/kernel/packages/api/src/shared/viewer-route.ts +1 -1
- package/kernel/packages/api/test/core.test.ts +1 -1
- package/kernel/packages/notes/package.json +1 -1
- package/kernel/packages/notes/src/client.tsx +1 -1
- package/kernel/packages/notes/src/manifest.ts +1 -1
- package/kernel/packages/notes/src/server.ts +1 -1
- package/kernel/packages/plugins/SKILL.md +39 -0
- package/kernel/packages/{folder-plugin → plugins}/package.json +64 -10
- package/kernel/packages/plugins/src/index.ts +52 -0
- package/kernel/packages/plugins/src/page.ts +17 -0
- package/kernel/packages/{folder-plugin → plugins}/tsconfig.json +5 -1
- package/kernel/packages/plugins/tsup.config.ts +25 -0
- package/kernel/packages/ui/src/components/content-issues.tsx +1 -1
- package/kernel/packages/ui/tsconfig.json +1 -1
- package/package.json +2 -3
- package/kernel/packages/folder-plugin/src/index.ts +0 -15
- /package/kernel/packages/{folder-plugin → plugins}/eslint.config.js +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/client.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/endpoint.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/server.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/subpath.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/types.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/src/validation.ts +0 -0
- /package/kernel/packages/{folder-plugin → plugins}/test/contract.test.mjs +0 -0
|
@@ -163,7 +163,7 @@ function internalSourceAliases(root = kernelSourceRoot()) {
|
|
|
163
163
|
const aliases = {};
|
|
164
164
|
for (const [name, path] of Object.entries({
|
|
165
165
|
"@raggle-ai/agents": "packages/agents/src",
|
|
166
|
-
"
|
|
166
|
+
"kennel-plugins": "packages/plugins/src",
|
|
167
167
|
"@raggle-ai/kennel-api": "packages/api/src",
|
|
168
168
|
"@raggle-ai/markdown": "packages/markdown/src",
|
|
169
169
|
"@raggle-ai/notes": "packages/notes/src",
|
|
@@ -448,7 +448,7 @@ export async function prepareExternalPluginModules(temp, target = temp, plugins
|
|
|
448
448
|
const cssImports = plugins.map((plugin) => plugin.entries.css ? `import ${JSON.stringify(plugin.entries.css)};` : "").filter(Boolean).join("\n");
|
|
449
449
|
const clientImports = plugins.map((plugin, index) => `import { ${plugin.entries.manifestSymbol} as manifest${index} } from ${JSON.stringify(plugin.entries.manifest)};`).join("\n");
|
|
450
450
|
const clientItems = plugins.map((plugin, index) => ` { ...manifest${index}, component: lazy(async () => ({ default: (await import(${JSON.stringify(plugin.entries.client)}))[${JSON.stringify(plugin.entries.clientSymbol)}].component })) }`).join(",\n");
|
|
451
|
-
await writeFile(clientModule, `import { lazy } from "react";\nimport type { FolderPluginClient } from "
|
|
451
|
+
await writeFile(clientModule, `import { lazy } from "react";\nimport type { FolderPluginClient } from "kennel-plugins/client";\n${cssImports}\n${clientImports}\nexport const externalFolderPlugins: FolderPluginClient[] = [\n${clientItems}\n];\n`);
|
|
452
452
|
const serverEntries = [];
|
|
453
453
|
const apiEntries = [];
|
|
454
454
|
for (const plugin of plugins) {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* plain-`node` CLI never imports the plugin packages' runtime sources, while
|
|
9
9
|
* staying type-checked against the one source of truth.
|
|
10
10
|
*/
|
|
11
|
-
import type { FolderPluginServer } from "
|
|
12
|
-
export type { FolderPluginContext, FolderPluginData, FolderPluginDetection, FolderPluginServer, } from "
|
|
11
|
+
import type { FolderPluginServer } from "kennel-plugins/server";
|
|
12
|
+
export type { FolderPluginContext, FolderPluginData, FolderPluginDetection, FolderPluginServer, } from "kennel-plugins/server";
|
|
13
13
|
/**
|
|
14
14
|
* Signal a server-side plugin failure (like a mail preview read error) so the
|
|
15
15
|
* host maps it to an HTTP 5xx instead of a not-found. All other thrown errors
|