@canonmsg/claude-code-plugin 0.14.0 → 0.14.2

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.
Files changed (2) hide show
  1. package/dist/host.js +98 -0
  2. package/package.json +3 -3
package/dist/host.js CHANGED
@@ -71,6 +71,103 @@ let runtimeMetadata = {
71
71
  };
72
72
  let runtimeMetadataRefresh = null;
73
73
  function buildClaudeRuntimeDescriptor(input) {
74
+ const commands = [
75
+ {
76
+ id: 'plan',
77
+ label: 'Plan first',
78
+ description: 'Switch Claude into Plan mode. Text after /plan is kept as a ready prompt while the mode applies.',
79
+ aliases: ['plan'],
80
+ category: 'plan',
81
+ placements: ['composer_slash', 'command_palette'],
82
+ availability: ['always'],
83
+ trailingTextBehavior: 'send_as_prompt',
84
+ dispatch: {
85
+ kind: 'control',
86
+ controlId: 'permissionMode',
87
+ value: 'plan',
88
+ },
89
+ },
90
+ {
91
+ id: 'runtime-status',
92
+ label: 'Runtime status',
93
+ description: 'Open Claude runtime details, including account, project, and policy status.',
94
+ primitive: 'runtime.status',
95
+ aliases: ['status'],
96
+ category: 'details',
97
+ placements: ['composer_slash', 'command_palette'],
98
+ availability: ['always'],
99
+ dispatch: { kind: 'open_details', target: 'status' },
100
+ },
101
+ {
102
+ id: 'mcp-inventory',
103
+ label: 'MCP servers',
104
+ description: 'Open the Claude MCP inventory published by the host.',
105
+ aliases: ['mcp'],
106
+ category: 'details',
107
+ placements: ['composer_slash', 'command_palette'],
108
+ availability: ['always'],
109
+ dispatch: { kind: 'open_details', target: 'mcp' },
110
+ },
111
+ {
112
+ id: 'plugin-inventory',
113
+ label: 'Plugins',
114
+ description: 'Open the Claude plugin and command inventory published by the host.',
115
+ aliases: ['plugins'],
116
+ category: 'details',
117
+ placements: ['composer_slash', 'command_palette'],
118
+ availability: ['always'],
119
+ dispatch: { kind: 'open_details', target: 'plugins' },
120
+ },
121
+ {
122
+ id: 'model-details',
123
+ label: 'Model control',
124
+ description: 'Open runtime details and use the live Model control.',
125
+ aliases: ['model'],
126
+ category: 'details',
127
+ placements: ['composer_slash', 'command_palette'],
128
+ availability: ['always'],
129
+ dispatch: { kind: 'open_details', target: 'model' },
130
+ },
131
+ {
132
+ id: 'permission-details',
133
+ label: 'Permission mode',
134
+ description: 'Open runtime details and use the live Permission mode control.',
135
+ aliases: ['permission'],
136
+ category: 'details',
137
+ placements: ['composer_slash', 'command_palette'],
138
+ availability: ['always'],
139
+ dispatch: { kind: 'open_details', target: 'permissionMode' },
140
+ },
141
+ {
142
+ id: 'effort-details',
143
+ label: 'Thinking level',
144
+ description: 'Set Claude effort using /effort or /think.',
145
+ primitive: 'runtime.reasoning.set',
146
+ aliases: ['effort', 'think'],
147
+ category: 'runtime',
148
+ placements: ['composer_slash', 'command_palette'],
149
+ availability: ['always'],
150
+ args: [{
151
+ id: 'level',
152
+ label: 'Level',
153
+ kind: 'enum',
154
+ required: true,
155
+ choices: [
156
+ { value: 'low', label: 'Low' },
157
+ { value: 'medium', label: 'Medium' },
158
+ { value: 'high', label: 'High' },
159
+ ],
160
+ }],
161
+ dispatch: {
162
+ kind: 'control',
163
+ controlId: 'effort',
164
+ },
165
+ },
166
+ {
167
+ ...RUNTIME_NEW_SESSION_ACTION,
168
+ primitive: 'session.new',
169
+ },
170
+ ];
74
171
  return buildFirstPartyCodingRuntimeDescriptor({
75
172
  clientType: 'claude-code',
76
173
  models: input.models,
@@ -81,6 +178,7 @@ function buildClaudeRuntimeDescriptor(input) {
81
178
  defaultPermissionMode: 'default',
82
179
  streamingTextMode: 'delta',
83
180
  admissionActions: HOST_ADMISSION_ACTIONS_DISABLED,
181
+ commands,
84
182
  actions: [
85
183
  {
86
184
  id: 'plan',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/claude-code-plugin",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
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",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@anthropic-ai/claude-agent-sdk": "^0.2.101",
34
- "@canonmsg/agent-sdk": "^1.3.0",
35
- "@canonmsg/core": "^0.17.0",
34
+ "@canonmsg/agent-sdk": "^1.4.0",
35
+ "@canonmsg/core": "^0.18.0",
36
36
  "@modelcontextprotocol/sdk": "^1.12.0"
37
37
  },
38
38
  "engines": {