kennel 0.2.2 → 0.2.3
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.
|
@@ -286,8 +286,8 @@ export async function validateExternalPlugin(inputUrl, existing = []) {
|
|
|
286
286
|
throw new Error(`External plugin id collides with core plugin: ${id}`);
|
|
287
287
|
if (existing.some((plugin) => plugin.id === id))
|
|
288
288
|
throw new Error(`External plugin id is already installed: ${id}`);
|
|
289
|
-
const trigger = stringField(metadata.trigger, "trigger file");
|
|
290
|
-
if (trigger.includes("/") || trigger.includes("\\") || trigger === "." || trigger === "..")
|
|
289
|
+
const trigger = metadata.trigger === undefined ? undefined : stringField(metadata.trigger, "trigger file");
|
|
290
|
+
if (trigger && (trigger.includes("/") || trigger.includes("\\") || trigger === "." || trigger === ".."))
|
|
291
291
|
throw new Error(`Invalid trigger file: ${trigger}`);
|
|
292
292
|
const exportsValue = pkg.exports;
|
|
293
293
|
const client = safeRelativeFile(root, packageExportPath(exportsValue, "./client"), "./client package export");
|
|
@@ -301,7 +301,7 @@ export async function validateExternalPlugin(inputUrl, existing = []) {
|
|
|
301
301
|
commit,
|
|
302
302
|
packageName,
|
|
303
303
|
id,
|
|
304
|
-
trigger,
|
|
304
|
+
...(trigger ? { trigger } : {}),
|
|
305
305
|
entries: {
|
|
306
306
|
client,
|
|
307
307
|
clientSymbol: stringField(metadata.exports.clientSymbol, "client export symbol"),
|
package/dist/plugins/external.js
CHANGED
|
@@ -286,8 +286,8 @@ export async function validateExternalPlugin(inputUrl, existing = []) {
|
|
|
286
286
|
throw new Error(`External plugin id collides with core plugin: ${id}`);
|
|
287
287
|
if (existing.some((plugin) => plugin.id === id))
|
|
288
288
|
throw new Error(`External plugin id is already installed: ${id}`);
|
|
289
|
-
const trigger = stringField(metadata.trigger, "trigger file");
|
|
290
|
-
if (trigger.includes("/") || trigger.includes("\\") || trigger === "." || trigger === "..")
|
|
289
|
+
const trigger = metadata.trigger === undefined ? undefined : stringField(metadata.trigger, "trigger file");
|
|
290
|
+
if (trigger && (trigger.includes("/") || trigger.includes("\\") || trigger === "." || trigger === ".."))
|
|
291
291
|
throw new Error(`Invalid trigger file: ${trigger}`);
|
|
292
292
|
const exportsValue = pkg.exports;
|
|
293
293
|
const client = safeRelativeFile(root, packageExportPath(exportsValue, "./client"), "./client package export");
|
|
@@ -301,7 +301,7 @@ export async function validateExternalPlugin(inputUrl, existing = []) {
|
|
|
301
301
|
commit,
|
|
302
302
|
packageName,
|
|
303
303
|
id,
|
|
304
|
-
trigger,
|
|
304
|
+
...(trigger ? { trigger } : {}),
|
|
305
305
|
entries: {
|
|
306
306
|
client,
|
|
307
307
|
clientSymbol: stringField(metadata.exports.clientSymbol, "client export symbol"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kennel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
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",
|