@kontextmind/kxm 0.7.96 → 0.7.97
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/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +22 -0
- package/docs/concepts/trust-model.md +3 -2
- package/docs/glossary.md +1 -1
- package/docs/guides/peer-messaging.md +2 -2
- package/docs/guides/pi-workers.md +1 -1
- package/docs/guides/webhook-workflows.md +53 -18
- package/docs/operations/deploy.md +1 -1
- package/docs/operations/troubleshooting.md +3 -2
- package/docs/reference/cli-reference.md +6 -6
- package/docs/reference/configuration.md +2 -2
- package/docs/reference/http-api.md +6 -6
- package/docs/reference/tools.md +1 -1
- package/docs/reference/workflow-definitions.md +2 -2
- package/docs/start/quickstart-pi.md +1 -1
- package/examples/workflow-signal.ts +4 -5
- package/package.json +1 -1
- package/plugins/kxm/.claude-plugin/plugin.json +1 -1
- package/plugins/kxm/dist/claude-hook.js +11 -1
- package/plugins/kxm/dist/cli.js +159 -74
- package/plugins/kxm/dist/client.js +3 -1
- package/plugins/kxm/dist/core.js +11 -1
- package/plugins/kxm/dist/extension.js +45 -13
- package/plugins/kxm/dist/mcp-server.js +20 -4
- package/plugins/kxm/dist/runtime-supervisor.js +1 -3
- package/plugins/kxm/dist/runtime.js +17 -3
- package/plugins/kxm/dist/server.js +115 -20
- package/plugins/kxm/package.json +1 -1
- package/plugins/kxm/src/cli/workflows.ts +12 -7
- package/plugins/kxm/src/cli.ts +19 -5
- package/plugins/kxm/src/client.ts +4 -0
- package/plugins/kxm/src/commands.ts +23 -1
- package/plugins/kxm/src/extension.ts +20 -14
- package/plugins/kxm/src/github-watch.ts +8 -5
- package/plugins/kxm/src/hub-env.ts +19 -1
- package/plugins/kxm/src/hub.ts +105 -21
- package/plugins/kxm/src/improve-sources.ts +2 -7
- package/plugins/kxm/src/mcp-server.ts +9 -2
- package/plugins/kxm/src/runtime-store.ts +23 -0
- package/plugins/kxm/src/workflow.ts +70 -1
- package/scripts/smoke-multi-pi.mjs +5 -1
|
@@ -423,10 +423,14 @@ export async function runRealSmoke(options = {}) {
|
|
|
423
423
|
stage = "workflow-journal-checkpoint";
|
|
424
424
|
const resumedOperator = values["durable-restart-resume"];
|
|
425
425
|
const payload = JSON.stringify({ event: "smoke.requested" });
|
|
426
|
+
// KXM webhook contract (workflowWebhookSignedMaterial in plugins/kxm/src/workflow.ts).
|
|
427
|
+
const deliveryId = `smoke-${randomUUID()}`;
|
|
428
|
+
const timestamp = String(Math.floor(Date.now() / 1_000));
|
|
429
|
+
const signedMaterial = ["kxm-webhook-v1", "start", timestamp, deliveryId, "real-pi-smoke", "", ""].join("\n") + "\n" + payload;
|
|
426
430
|
const started = await api(baseUrl, "/v1/webhooks/real-pi-smoke", {
|
|
427
431
|
method: "POST",
|
|
428
432
|
authToken,
|
|
429
|
-
headers: { "x-
|
|
433
|
+
headers: { "x-kxm-delivery-id": deliveryId, "x-kxm-timestamp": timestamp, "x-kxm-signature": `sha256=${createHmac("sha256", webhookSecret).update(signedMaterial).digest("hex")}` },
|
|
430
434
|
body: payload,
|
|
431
435
|
});
|
|
432
436
|
await api(baseUrl, `/v1/workflows/${encodeURIComponent(started.run.id)}/journal`, {
|