@deepseek-ai/dsh-permission-presets 0.2.1-alpha.2 → 0.2.1-alpha.3

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,32 +1,29 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
4
6
  let _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value
5
7
  const _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema = () => (_deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value ??= z.object({
6
8
  'options': z.array(z.object({
7
- 'value': z.string(),
8
- 'name': z.string(),
9
- 'description': z.string().optional(),
10
- })),
9
+ 'value': z.string().describe('Stable option value: a configured preset key, live `auto`, or derived `custom`.'),
10
+ 'name': z.string().describe('The display label.'),
11
+ 'description': z.string().optional().describe('One user-facing sentence on what the value means; omitted when not configured.'),
12
+ })).describe('Every currently selectable preset, in contribution order.'),
11
13
  'defaultOptions': z.array(z.object({
12
- 'value': z.string(),
13
- 'name': z.string(),
14
- 'description': z.string().optional(),
15
- })),
16
- 'defaultPreset': z.string(),
14
+ 'value': z.string().describe('Stable option value: a configured preset key, live `auto`, or derived `custom`.'),
15
+ 'name': z.string().describe('The display label.'),
16
+ 'description': z.string().optional().describe('One user-facing sentence on what the value means; omitted when not configured.'),
17
+ })).describe('Configured presets eligible as defaults for future sessions.'),
18
+ 'defaultPreset': z.string().describe('Effective default when the Config field is omitted.'),
17
19
  }))
18
20
 
19
- export const TYPERT = {
21
+ const $remote = createTypertRemoteInfo({
20
22
  package: '@deepseek-ai/dsh-permission-presets',
21
- face: 'host',
22
- schemas: [
23
- ],
24
- invocations: [
25
- {
26
- id: '@deepseek-ai/dsh-permission-presets#permissionPresets/catalog',
23
+ methods: {
24
+ 'permissionPresets/catalog': {
27
25
  service: 'permissionPresets',
28
- namespace: 'permissionPresets',
29
- method: 'catalog',
26
+ description: 'Read the complete process-level catalog exposed to current-session UI.',
30
27
  invocation: { kind: 'direct' },
31
28
  parameters: [
32
29
  ],
@@ -34,10 +31,20 @@ export const TYPERT = {
34
31
  mode: 'strict',
35
32
  typeSymbol: '@deepseek-ai/dsh-permission-presets/client#PermissionCatalog',
36
33
  create: _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema,
34
+ description: 'every currently selectable preset in contribution order.',
35
+ jsonSchema: {"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"Stable option value: a configured preset key, live `auto`, or derived `custom`."},"name":{"type":"string","description":"The display label."},"description":{"type":"string","description":"One user-facing sentence on what the value means; omitted when not configured."}},"required":["value","name"],"additionalProperties":true},"description":"Every currently selectable preset, in contribution order."},"defaultOptions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"Stable option value: a configured preset key, live `auto`, or derived `custom`."},"name":{"type":"string","description":"The display label."},"description":{"type":"string","description":"One user-facing sentence on what the value means; omitted when not configured."}},"required":["value","name"],"additionalProperties":true},"description":"Configured presets eligible as defaults for future sessions."},"defaultPreset":{"type":"string","description":"Effective default when the Config field is omitted."}},"required":["options","defaultOptions","defaultPreset"],"additionalProperties":true},
37
36
  },
38
37
  sourceLocation: {"file":"packages/interaction/permission-presets/src/index.ts","line":293,"column":3},
39
38
  },
39
+ },
40
+ }, z)
41
+
42
+ export const TYPERT = {
43
+ package: '@deepseek-ai/dsh-permission-presets',
44
+ face: 'host',
45
+ schemas: [
40
46
  ],
47
+ get invocations() { return $remote.descriptors },
41
48
  model: {
42
49
  "services": [
43
50
  {
@@ -118,6 +125,10 @@ export const TYPERT = {
118
125
  "name": "AgentMessageSource",
119
126
  "declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
120
127
  },
128
+ {
129
+ "name": "AllowedModelRoute",
130
+ "declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
131
+ },
121
132
  {
122
133
  "name": "ApprovalOutcome",
123
134
  "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
@@ -302,6 +313,30 @@ export const TYPERT = {
302
313
  "name": "InboxTarget",
303
314
  "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
304
315
  },
316
+ {
317
+ "name": "JobId",
318
+ "declaration": "export type JobId = Branded<'JobId'>;"
319
+ },
320
+ {
321
+ "name": "JobOutcome",
322
+ "declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
323
+ },
324
+ {
325
+ "name": "JobRegisteredData",
326
+ "declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
327
+ },
328
+ {
329
+ "name": "JobSettleCause",
330
+ "declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
331
+ },
332
+ {
333
+ "name": "JobSettledData",
334
+ "declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
335
+ },
336
+ {
337
+ "name": "JobToolCall",
338
+ "declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
339
+ },
305
340
  {
306
341
  "name": "JsonValue",
307
342
  "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
@@ -392,7 +427,7 @@ export const TYPERT = {
392
427
  },
393
428
  {
394
429
  "name": "MessageSourceMap",
395
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n}"
430
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
396
431
  },
397
432
  {
398
433
  "name": "ModelMessageSource",
@@ -426,6 +461,14 @@ export const TYPERT = {
426
461
  "name": "PresetSpec",
427
462
  "declaration": "export interface PresetSpec {\n sandbox: SandboxMode;\n approval: ApprovalPolicy;\n name?: string;\n description?: string;\n}"
428
463
  },
464
+ {
465
+ "name": "Principal",
466
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
467
+ },
468
+ {
469
+ "name": "PrincipalMap",
470
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
471
+ },
429
472
  {
430
473
  "name": "ProviderRequestId",
431
474
  "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
@@ -496,7 +539,7 @@ export const TYPERT = {
496
539
  },
497
540
  {
498
541
  "name": "SessionEventMap",
499
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'schedule/change': ScheduleChange;\n}"
542
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
500
543
  },
501
544
  {
502
545
  "name": "SessionEventType",
@@ -594,6 +637,42 @@ export const TYPERT = {
594
637
  "name": "SystemPromptUpdate",
595
638
  "declaration": "export type SystemPromptUpdate = 'in-history';"
596
639
  },
640
+ {
641
+ "name": "TeamId",
642
+ "declaration": "export type TeamId = Branded<'TeamId'>;"
643
+ },
644
+ {
645
+ "name": "TeamMemberPhase",
646
+ "declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
647
+ },
648
+ {
649
+ "name": "TeamMemberSnapshot",
650
+ "declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
651
+ },
652
+ {
653
+ "name": "TeamMessageId",
654
+ "declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
655
+ },
656
+ {
657
+ "name": "TeamMessageSnapshot",
658
+ "declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
659
+ },
660
+ {
661
+ "name": "TeamMessageSource",
662
+ "declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
663
+ },
664
+ {
665
+ "name": "TeamTaskId",
666
+ "declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
667
+ },
668
+ {
669
+ "name": "TeamTaskSnapshot",
670
+ "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
671
+ },
672
+ {
673
+ "name": "TeamTaskStatus",
674
+ "declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
675
+ },
597
676
  {
598
677
  "name": "TextBlock",
599
678
  "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
@@ -657,6 +736,18 @@ export const TYPERT = {
657
736
  {
658
737
  "name": "UserMessage",
659
738
  "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
739
+ },
740
+ {
741
+ "name": "WebhookDeliveryId",
742
+ "declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
743
+ },
744
+ {
745
+ "name": "WebhookRuleId",
746
+ "declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
747
+ },
748
+ {
749
+ "name": "WebhookSourceId",
750
+ "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
660
751
  }
661
752
  ]
662
753
  }
@@ -1,7 +1,8 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
2
  import type {
3
3
  RemoteResult,
4
- TypertRemoteContribution,
4
+ TypertRemoteInfo,
5
+ TypertRemoteMethod,
5
6
  } from '@deepseek-ai/dsh-typert-protocol'
6
7
  import type { PermissionCatalog } from '@deepseek-ai/dsh-permission-presets/client'
7
8
 
@@ -17,6 +18,8 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
17
18
  }
18
19
  }
19
20
 
20
- export declare const TYPERT_REMOTE: TypertRemoteContribution
21
+ export declare const TYPERT_REMOTE: TypertRemoteInfo<{
22
+ readonly 'permissionPresets/catalog': TypertRemoteMethod<{ }, PermissionCatalog>
23
+ }>
21
24
  export default TYPERT_REMOTE
22
25
  //# sourceMappingURL=typert.remote-client.d.ts.map
@@ -1,29 +1,29 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
4
6
  let _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value
5
7
  const _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema = () => (_deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value ??= z.object({
6
8
  'options': z.array(z.object({
7
- 'value': z.string(),
8
- 'name': z.string(),
9
- 'description': z.string().optional(),
10
- })),
9
+ 'value': z.string().describe('Stable option value: a configured preset key, live `auto`, or derived `custom`.'),
10
+ 'name': z.string().describe('The display label.'),
11
+ 'description': z.string().optional().describe('One user-facing sentence on what the value means; omitted when not configured.'),
12
+ })).describe('Every currently selectable preset, in contribution order.'),
11
13
  'defaultOptions': z.array(z.object({
12
- 'value': z.string(),
13
- 'name': z.string(),
14
- 'description': z.string().optional(),
15
- })),
16
- 'defaultPreset': z.string(),
14
+ 'value': z.string().describe('Stable option value: a configured preset key, live `auto`, or derived `custom`.'),
15
+ 'name': z.string().describe('The display label.'),
16
+ 'description': z.string().optional().describe('One user-facing sentence on what the value means; omitted when not configured.'),
17
+ })).describe('Configured presets eligible as defaults for future sessions.'),
18
+ 'defaultPreset': z.string().describe('Effective default when the Config field is omitted.'),
17
19
  }))
18
20
 
19
- export const TYPERT_REMOTE = {
21
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
20
22
  package: '@deepseek-ai/dsh-permission-presets',
21
- descriptors: [
22
- {
23
- id: '@deepseek-ai/dsh-permission-presets#permissionPresets/catalog',
23
+ methods: {
24
+ 'permissionPresets/catalog': {
24
25
  service: 'permissionPresets',
25
- namespace: 'permissionPresets',
26
- method: 'catalog',
26
+ description: 'Read the complete process-level catalog exposed to current-session UI.',
27
27
  invocation: { kind: 'direct' },
28
28
  parameters: [
29
29
  ],
@@ -31,10 +31,12 @@ export const TYPERT_REMOTE = {
31
31
  mode: 'strict',
32
32
  typeSymbol: '@deepseek-ai/dsh-permission-presets/client#PermissionCatalog',
33
33
  create: _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema,
34
+ description: 'every currently selectable preset in contribution order.',
35
+ jsonSchema: {"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"Stable option value: a configured preset key, live `auto`, or derived `custom`."},"name":{"type":"string","description":"The display label."},"description":{"type":"string","description":"One user-facing sentence on what the value means; omitted when not configured."}},"required":["value","name"],"additionalProperties":true},"description":"Every currently selectable preset, in contribution order."},"defaultOptions":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"Stable option value: a configured preset key, live `auto`, or derived `custom`."},"name":{"type":"string","description":"The display label."},"description":{"type":"string","description":"One user-facing sentence on what the value means; omitted when not configured."}},"required":["value","name"],"additionalProperties":true},"description":"Configured presets eligible as defaults for future sessions."},"defaultPreset":{"type":"string","description":"Effective default when the Config field is omitted."}},"required":["options","defaultOptions","defaultPreset"],"additionalProperties":true},
34
36
  },
35
37
  sourceLocation: {"file":"packages/interaction/permission-presets/src/index.ts","line":293,"column":3},
36
38
  },
37
- ],
38
- }
39
+ },
40
+ }, z)
39
41
 
40
42
  export default TYPERT_REMOTE
package/locale/en.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "meta": {
3
+ "title": "permission-presets"
4
+ }
5
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "权限模式服务",
4
+ "description": "管理用户选择的权限模式,统一对应的沙箱和审批策略。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-permission-presets",
3
3
  "description": "User-facing permission presets (ctx.permissionPresets) for the DeepSeek Harness: one product-level Permissions select bundling the sandbox-mode and approval-policy knobs, written through to their own session events",
4
- "version": "0.2.1-alpha.2",
4
+ "version": "0.2.1-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -35,9 +35,11 @@
35
35
  "default": "./lib/typert.remote-client.js"
36
36
  },
37
37
  "./src/*": "./src/*",
38
- "./package.json": "./package.json"
38
+ "./package.json": "./package.json",
39
+ "./locale/*.json": "./locale/*.json"
39
40
  },
40
41
  "files": [
42
+ "locale/*.json",
41
43
  "lib/index.js",
42
44
  "lib/types/**/*.js",
43
45
  "lib/types/**/*.d.ts",
@@ -48,30 +50,30 @@
48
50
  ],
49
51
  "license": "MIT",
50
52
  "peerDependencies": {
51
- "@deepseek-ai/dsh-shell": "0.2.1-alpha.2",
52
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.2",
53
- "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.2",
54
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.2",
55
- "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
56
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2",
57
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.2",
58
- "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.2",
59
- "@deepseek-ai/cordis": "~4.0.5-alpha.1"
53
+ "@deepseek-ai/dsh-shell": "0.2.1-alpha.3",
54
+ "@deepseek-ai/dsh-commands": "0.2.1-alpha.3",
55
+ "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.3",
56
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.3",
57
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
58
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.3",
59
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.3",
60
+ "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.3",
61
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2"
60
62
  },
61
63
  "dependencies": {
62
- "@deepseek-ai/schemastery": "~3.18.5-alpha.1",
63
- "zod": "^4.4.3"
64
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.2",
65
+ "zod": "4.4.3"
64
66
  },
65
67
  "devDependencies": {
66
- "@deepseek-ai/dsh-shell": "0.2.1-alpha.2",
67
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.2",
68
- "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.2",
69
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.2",
70
- "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
71
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.2",
72
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.2",
73
- "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.2",
74
- "@deepseek-ai/cordis": "~4.0.5-alpha.1",
75
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.2"
68
+ "@deepseek-ai/dsh-shell": "0.2.1-alpha.3",
69
+ "@deepseek-ai/dsh-commands": "0.2.1-alpha.3",
70
+ "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.3",
71
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.3",
72
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
73
+ "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.3",
74
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.3",
75
+ "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.3",
76
+ "@deepseek-ai/cordis": "~4.0.5-alpha.2",
77
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.3"
76
78
  }
77
79
  }