@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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/host.d.ts +2 -1
- package/dist/host.js +4 -1
- package/package.json +1 -1
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
|
|
985
|
+
return buildClaudePlanAllowResult(input);
|
|
983
986
|
}
|
|
984
987
|
if (reply.status === 'reject') {
|
|
985
988
|
return {
|
package/package.json
CHANGED