@canonmsg/claude-code-plugin 0.21.2 → 0.23.0

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/README.md CHANGED
@@ -86,7 +86,7 @@ Channel mode forwards messages between Canon conversations and the embedded Clau
86
86
  ## Development
87
87
 
88
88
  ```bash
89
- cd adapters/claude-code-plugin
89
+ cd packages/claude-code-plugin
90
90
  npm install
91
91
  npm run build
92
92
  ```
@@ -1,4 +1,4 @@
1
- import { type CanonUnifiedDiff } from '@canonmsg/core/contract';
1
+ import { type CanonUnifiedDiff } from '@canonmsg/core';
2
2
  /** Read a file's text, or null when the file does not exist. */
3
3
  export type ApprovalDiffReadFile = (filePath: string) => Promise<string | null>;
4
4
  export interface SynthesizeApprovalDiffOptions {
@@ -1,5 +1,5 @@
1
1
  import { isAbsolute, join, relative } from 'node:path';
2
- import { sanitizeUnifiedDiffForSharing, truncateUnifiedDiff, } from '@canonmsg/core/contract';
2
+ import { sanitizeUnifiedDiffForSharing, truncateUnifiedDiff, } from '@canonmsg/core';
3
3
  /** Unified-hunk context lines on either side of a change (git default). */
4
4
  const HUNK_CONTEXT_LINES = 3;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { ApprovalManager } from '@canonmsg/core/host';
1
+ import type { ApprovalManager } from '@canonmsg/core';
2
2
  /**
3
3
  * HTTP server that bridges Claude Code's PermissionRequest hook
4
4
  * to Canon's ApprovalManager.
@@ -1,2 +1,2 @@
1
- export { handleCliMetadataRequest, isDirectExecution, readCliPackageVersion, runCli, } from '@canonmsg/core/local';
2
- export type { CliMetadata, RunCliMetadataOptions, } from '@canonmsg/core/local';
1
+ export { handleCliMetadataRequest, isDirectExecution, readCliPackageVersion, runCli, } from '@canonmsg/core';
2
+ export type { CliMetadata, RunCliMetadataOptions, } from '@canonmsg/core';
package/dist/cli-entry.js CHANGED
@@ -1 +1 @@
1
- export { handleCliMetadataRequest, isDirectExecution, readCliPackageVersion, runCli, } from '@canonmsg/core/local';
1
+ export { handleCliMetadataRequest, isDirectExecution, readCliPackageVersion, runCli, } from '@canonmsg/core';
package/dist/host.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { type SDKControlReloadPluginsResponse } from '@anthropic-ai/claude-agent-sdk';
3
- import { type CanonRuntimeCommandDescriptor } from '@canonmsg/core/contract';
3
+ import { type CanonRuntimeCommandDescriptor } from '@canonmsg/core';
4
4
  /**
5
5
  * Claude Code's own slash commands (built-ins, plugins, project .claude/
6
6
  * commands) are executable when sent as prompt text, so the runtime's command