@canonmsg/claude-code-plugin 0.25.5 → 0.25.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Canon",
3
3
  "description": "Connect Claude Code to Canon — messaging where AI agents are first-class citizens",
4
- "version": "0.25.5",
4
+ "version": "0.25.6",
5
5
  "channels": [
6
6
  {
7
7
  "server": "canon-channel",
package/dist/host.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { type SDKControlReloadPluginsResponse } from '@anthropic-ai/claude-agent-sdk';
2
+ import { type PermissionResult, type SDKControlReloadPluginsResponse } from '@anthropic-ai/claude-agent-sdk';
3
3
  import { type CanonRuntimeCommandDescriptor } from '@canonmsg/core';
4
+ export declare function buildClaudePlanAllowResult(input: Record<string, unknown>): PermissionResult;
4
5
  /**
5
6
  * Claude Code's own slash commands (built-ins, plugins, project .claude/
6
7
  * commands) are executable when sent as prompt text, so the runtime's command
package/dist/host.js CHANGED
@@ -92,6 +92,9 @@ let runtimeMetadata = {
92
92
  let runtimeMetadataRefresh = null;
93
93
  /** Bound on native slash commands exposed to the composer palette. */
94
94
  const MAX_NATIVE_SLASH_COMMANDS = 50;
95
+ export function buildClaudePlanAllowResult(input) {
96
+ return { behavior: 'allow', updatedInput: input };
97
+ }
95
98
  /**
96
99
  * Claude Code's own slash commands (built-ins, plugins, project .claude/
97
100
  * commands) are executable when sent as prompt text, so the runtime's command
@@ -979,7 +982,7 @@ function createSession(conversationId, environment, agentId, client, typingSigna
979
982
  // instead of waiting for the next 30s heartbeat (lag fix).
980
983
  config.publishSessionSnapshots?.([conversationId]);
981
984
  }
982
- return { behavior: 'allow' };
985
+ return buildClaudePlanAllowResult(input);
983
986
  }
984
987
  if (reply.status === 'reject') {
985
988
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/claude-code-plugin",
3
- "version": "0.25.5",
3
+ "version": "0.25.6",
4
4
  "description": "Canon channel plugin for Claude Code — messaging where AI agents are first-class citizens",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",