@canonmsg/core 0.7.3 → 0.7.4

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/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { AGENT_CAPABILITIES, } from './types.js';
1
+ export { AGENT_CAPABILITIES, CLAUDE_PERMISSION_MODE_OPTIONS, } from './types.js';
2
2
  export { resolveCanonBaseUrl } from './base-url.js';
3
3
  export { DEFAULT_BASE_URL, DEFAULT_STREAM_URL, DEFAULT_RTDB_URL, FIREBASE_WEB_API_KEY } from './constants.js';
4
- export type { AgentCapabilities, AgentClientType, AgentRuntime, MediaAttachment, MediaAttachmentKind, ModelOption, SessionConfig, WorkspaceOption, } from './types.js';
4
+ export type { AgentCapabilities, AgentClientType, AgentRuntime, MediaAttachment, MediaAttachmentKind, ModelOption, PermissionModeOption, SessionConfig, WorkspaceOption, } from './types.js';
5
5
  export { EXECUTION_ENVIRONMENT_MODES, isExecutionEnvironmentMode, } from './execution-environment-mode.js';
6
6
  export type { ExecutionEnvironmentMode } from './execution-environment-mode.js';
7
7
  export type { CanonResolvedWorkSession, CanonWorkSession, CanonWorkSessionContext, CanonWorkSessionConversationRole, CanonWorkSessionDisclosureMode, CanonWorkSessionParticipant, CanonWorkSessionStatus, CreateWorkSessionOptions, SendLinkedMessageOptions, SendLinkedMessageResult, UpdateWorkSessionConversationOptions, WorkSessionPromptRenderOptions, } from './work-session.js';
package/dist/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- export { AGENT_CAPABILITIES, } from './types.js';
1
+ export { AGENT_CAPABILITIES, CLAUDE_PERMISSION_MODE_OPTIONS, } from './types.js';
2
2
  export { resolveCanonBaseUrl } from './base-url.js';
3
3
  export { DEFAULT_BASE_URL, DEFAULT_STREAM_URL, DEFAULT_RTDB_URL, FIREBASE_WEB_API_KEY } from './constants.js';
4
4
  export { EXECUTION_ENVIRONMENT_MODES, isExecutionEnvironmentMode, } from './execution-environment-mode.js';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { AGENT_CAPABILITIES, } from './types.js';
2
- export type { AgentCapabilities, AgentClientType, CanonMessage, CanonConversation, CanonMessagesPage, AgentContext, MediaAttachment, MediaAttachmentKind, MessageCreatedPayload, TypingPayload, PresencePayload, SendMessageOptions, CreateConversationOptions, RegistrationInput, RegistrationResult, RegistrationStatus, StreamingStatus, SetStreamingOptions, SessionControl, SessionState, SessionConfig, AgentRuntime, ModelOption, WorkspaceOption, } from './types.js';
1
+ export { AGENT_CAPABILITIES, CLAUDE_PERMISSION_MODE_OPTIONS, } from './types.js';
2
+ export type { AgentCapabilities, AgentClientType, CanonMessage, CanonConversation, CanonMessagesPage, AgentContext, MediaAttachment, MediaAttachmentKind, MessageCreatedPayload, TypingPayload, PresencePayload, SendMessageOptions, CreateConversationOptions, RegistrationInput, RegistrationResult, RegistrationStatus, StreamingStatus, SetStreamingOptions, SessionControl, SessionState, SessionConfig, AgentRuntime, ModelOption, PermissionModeOption, WorkspaceOption, } from './types.js';
3
3
  export type { CanonResolvedWorkSession, CanonWorkSession, CanonWorkSessionContext, CanonWorkSessionConversationRole, CreateWorkSessionOptions, CanonWorkSessionDisclosureMode, CanonWorkSessionParticipant, CanonWorkSessionStatus, SendLinkedMessageOptions, SendLinkedMessageResult, UpdateWorkSessionConversationOptions, WorkSessionPromptRenderOptions, } from './work-session.js';
4
4
  export { buildWorkSessionPromptLines, buildWorkSessionsPromptLines, mergeWorkSessionContexts, } from './work-session.js';
5
5
  export { CanonClient, CanonApiError } from './client.js';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Types
2
- export { AGENT_CAPABILITIES, } from './types.js';
2
+ export { AGENT_CAPABILITIES, CLAUDE_PERMISSION_MODE_OPTIONS, } from './types.js';
3
3
  export { buildWorkSessionPromptLines, buildWorkSessionsPromptLines, mergeWorkSessionContexts, } from './work-session.js';
4
4
  // Client
5
5
  export { CanonClient, CanonApiError } from './client.js';
package/dist/types.d.ts CHANGED
@@ -230,6 +230,22 @@ export interface PermissionModeOption {
230
230
  value: string;
231
231
  label: string;
232
232
  }
233
+ export declare const CLAUDE_PERMISSION_MODE_OPTIONS: readonly [{
234
+ readonly value: "default";
235
+ readonly label: "Default";
236
+ }, {
237
+ readonly value: "acceptEdits";
238
+ readonly label: "Auto-edit";
239
+ }, {
240
+ readonly value: "plan";
241
+ readonly label: "Plan";
242
+ }, {
243
+ readonly value: "bypassPermissions";
244
+ readonly label: "Bypass";
245
+ }, {
246
+ readonly value: "auto";
247
+ readonly label: "Auto";
248
+ }];
233
249
  export interface AgentRuntime {
234
250
  clientType?: AgentClientType;
235
251
  hostMode?: boolean;
package/dist/types.js CHANGED
@@ -32,3 +32,10 @@ export const AGENT_CAPABILITIES = {
32
32
  'openclaw': { ...DEFAULT_CAPABILITIES },
33
33
  'generic': { ...DEFAULT_CAPABILITIES },
34
34
  };
35
+ export const CLAUDE_PERMISSION_MODE_OPTIONS = [
36
+ { value: 'default', label: 'Default' },
37
+ { value: 'acceptEdits', label: 'Auto-edit' },
38
+ { value: 'plan', label: 'Plan' },
39
+ { value: 'bypassPermissions', label: 'Bypass' },
40
+ { value: 'auto', label: 'Auto' },
41
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/core",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Canon core — shared types, REST client, SSE stream, and registration for Canon messaging",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",