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.
Files changed (52) hide show
  1. package/dist/cli/src/plugins/external.js +2 -2
  2. package/dist/cli/src/site/server-plugins.d.ts +2 -2
  3. package/dist/core/api-client.js +576 -10317
  4. package/dist/core/core-folders.js +2313 -12088
  5. package/dist/core/runtime.js +7899 -17525
  6. package/dist/package/preview.js +9838 -19692
  7. package/dist/plugins/external.js +2 -2
  8. package/dist/site/server-plugins.d.ts +2 -2
  9. package/dist/site/server-plugins.js +9 -9
  10. package/kernel/apps/web/package.json +1 -1
  11. package/kernel/apps/web/src/external-plugins.ts +1 -1
  12. package/kernel/apps/web/src/folder-filter-icons.tsx +1 -1
  13. package/kernel/apps/web/src/folder-plugin-view.tsx +1 -1
  14. package/kernel/apps/web/src/plugins.ts +1 -1
  15. package/kernel/apps/web/vite.config.ts +1 -1
  16. package/kernel/packages/agents/package.json +1 -1
  17. package/kernel/packages/agents/src/agent-card.tsx +1 -1
  18. package/kernel/packages/agents/src/client.tsx +1 -1
  19. package/kernel/packages/agents/src/manifest.ts +1 -1
  20. package/kernel/packages/agents/src/server.ts +1 -1
  21. package/kernel/packages/agents/src/viewer.tsx +1 -1
  22. package/kernel/packages/api/package.json +1 -1
  23. package/kernel/packages/api/src/server/acp-live-plugin.ts +1 -1
  24. package/kernel/packages/api/src/server/api/create-agent-file.ts +2 -2
  25. package/kernel/packages/api/src/server/api/document-edit.ts +2 -2
  26. package/kernel/packages/api/src/server/api/open-path.ts +2 -2
  27. package/kernel/packages/api/src/server/folder-metadata-plugin.ts +4 -4
  28. package/kernel/packages/api/src/server/plugins.ts +3 -3
  29. package/kernel/packages/api/src/shared/viewer-route.ts +1 -1
  30. package/kernel/packages/api/test/core.test.ts +1 -1
  31. package/kernel/packages/notes/package.json +1 -1
  32. package/kernel/packages/notes/src/client.tsx +1 -1
  33. package/kernel/packages/notes/src/manifest.ts +1 -1
  34. package/kernel/packages/notes/src/server.ts +1 -1
  35. package/kernel/packages/plugins/SKILL.md +39 -0
  36. package/kernel/packages/{folder-plugin → plugins}/package.json +64 -10
  37. package/kernel/packages/plugins/src/index.ts +52 -0
  38. package/kernel/packages/plugins/src/page.ts +17 -0
  39. package/kernel/packages/{folder-plugin → plugins}/tsconfig.json +5 -1
  40. package/kernel/packages/plugins/tsup.config.ts +25 -0
  41. package/kernel/packages/ui/src/components/content-issues.tsx +1 -1
  42. package/kernel/packages/ui/tsconfig.json +1 -1
  43. package/package.json +2 -3
  44. package/kernel/packages/folder-plugin/src/index.ts +0 -15
  45. /package/kernel/packages/{folder-plugin → plugins}/eslint.config.js +0 -0
  46. /package/kernel/packages/{folder-plugin → plugins}/src/client.ts +0 -0
  47. /package/kernel/packages/{folder-plugin → plugins}/src/endpoint.ts +0 -0
  48. /package/kernel/packages/{folder-plugin → plugins}/src/server.ts +0 -0
  49. /package/kernel/packages/{folder-plugin → plugins}/src/subpath.ts +0 -0
  50. /package/kernel/packages/{folder-plugin → plugins}/src/types.ts +0 -0
  51. /package/kernel/packages/{folder-plugin → plugins}/src/validation.ts +0 -0
  52. /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
- "@raggle-ai/folder-plugin": "packages/folder-plugin/src",
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 "@raggle-ai/folder-plugin/client";\n${cssImports}\n${clientImports}\nexport const externalFolderPlugins: FolderPluginClient[] = [\n${clientItems}\n];\n`);
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 "@raggle-ai/folder-plugin/server";
12
- export type { FolderPluginContext, FolderPluginData, FolderPluginDetection, FolderPluginServer, } from "@raggle-ai/folder-plugin/server";
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