@nikcli-ai/sdk 1.396.0 → 1.397.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.
@@ -448,6 +448,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
448
448
  };
449
449
  permission: {
450
450
  list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").PermissionListOutput>>;
451
+ blocked: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").PermissionBlockedOutput>>;
451
452
  reply: (input: WithDirectory<import("./client.js").PermissionReplyInput>, options?: CallOptions) => Promise<Result<boolean>>;
452
453
  respond: (input: WithDirectory<import("./client.js").SessionPermissionRespondInput>, options?: CallOptions) => Promise<Result<boolean>>;
453
454
  };
@@ -1,4 +1,4 @@
1
- import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, DiscordSetupInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubWorkflowsInput, MobileGithubWorkflowsOutput, MobileGithubWorkflowRunsInput, MobileGithubWorkflowRunJobsInput, MobileGithubWorkflowRunJobsOutput, MobileGithubWorkflowRunRerunInput, MobileGithubWorkflowRunCancelInput, MobileGithubWorkflowDispatchInput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, MobileSessionTodoInput, MobileSessionTodoOutput, MobileTeleportUploadBeginOutput, MobileTeleportUploadChunkInput, MobileTeleportUploadChunkOutput, MobileTeleportInInput, MobileTeleportOutInput, MobileWorktreeCreateInput, MobileWorktreeRemoveInput, MobileWorktreeResetInput, MobileGitDiffInput, MobileGitDiffOutput, MobileGitCommitsInput, MobileGitCommitsOutput, MobileGitBranchesOutput, MobileGitCommitInput, MobileGitCommitOutput, MobileGitCheckoutInput, MobileGitStageInput, MobileGitUnstageInput, MobileGitDiscardInput, MobileGitPushInput, MobileGitPushOutput, MobileGitPullOutput, MobileLoopListOutput, MobileLoopCreateInput, MobileLoopTemplatesOutput, MobileLoopGenerateInput, MobileLoopRunsRecentInput, MobileLoopRunsRecentOutput, MobileLoopGetInput, MobileLoopGetOutput, MobileLoopDeleteInput, MobileLoopUpdateInput, MobileLoopRunsInput, MobileLoopRunsOutput, MobileLoopRunInput, MobileLoopAbortInput, MobileLoopToggleInput, MobileLoopPauseInput, MobileLoopResumeInput, MobileRoutineListOutput, MobileRoutineCreateInput, MobileRoutineGetInput, MobileRoutineDeleteInput, MobileRoutineUpdateInput, MobileRoutineRunInput, MobileRoutinePauseInput, MobileRoutineResumeInput, MobileRoutineTriggerInput, MobilePtyListOutput, MobilePtyCreateInput, MobilePtyGetInput, MobilePtyUpdateInput, MobilePtyRemoveInput, MobileMissionListOutput, MobileMissionCreateInput, MobileMissionTemplatesOutput, MobileMissionGenerateInput, MobileMissionExecsRecentInput, MobileMissionExecsRecentOutput, MobileMissionGetInput, MobileMissionGetOutput, MobileMissionUpdateInput, MobileMissionDeleteInput, MobileMissionExecsInput, MobileMissionExecsOutput, MobileMissionStartInput, MobileMissionPauseInput, MobileMissionCancelInput, MobileMissionFeatureMutateInput, MobileEventsOutput, MobileBrainStatusOutput, MobileBrainTriggerInput, MobileBrainTriggerOutput, MobileChatBotListOutput, MobileChatBotStartInput, MobileChatBotStartOutput, MobileChatBotStopInput, MobileChatBotStopOutput, MobileObservabilityGetOutput, MobileObservabilitySetInput, MobileObservabilitySetOutput, MobileLspStatusOutput, MobileFusionListOutput, MobileFusionSetInput, MobileFusionSetOutput, MobileHostBrowserOutput, MobileHostComputerOutput, MobileHostHerdrGetOutput, MobileHostHerdrSetInput, MobileHostHerdrSetOutput, MobileHostIslandOutput, MobileHostDevtoolsOutput, MobileHostLanStartInput, ProjectListOutput, ProjectUpdateInput, ProjectDirectoryListInput, ProjectDirectoryListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, ProviderApiInput, ProviderRemoveAuthInput, ProviderOauthAuthorizeInput, ProviderOauthAuthorizeOutput, ProviderOauthCallbackInput, QuestionListOutput, QuestionReplyInput, QuestionRejectInput, PermissionListOutput, PermissionReplyInput, PtyCreateInput, PtyGetInput, PtyUpdateInput, PtyRemoveInput, LoopGenerateInput, LoopRecentRunsInput, LoopGetInput, LoopUpsertInput, LoopUpdateInput, LoopRemoveInput, LoopToggleInput, LoopRunInput, LoopAbortInput, LoopPauseInput, LoopResumeInput, LoopRunsInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionUpdateInput, SessionForkInput, SessionAbortInput, SessionRevertInput, SessionUnrevertInput, SessionShareInput, SessionUnshareInput, SessionSummarizeInput, SessionCommandInput, SessionShellInput, SessionPermissionRespondInput, SessionChildrenInput, SessionTodoInput, SessionDiffInput, SessionMessagesInput, SessionPendingInput, SessionPendingSteerInput, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionBackgroundResumeInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, AccountCompleteInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, AuthSetInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, ShareShortOutput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput } from "./types.js";
1
+ import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, DiscordSetupInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubWorkflowsInput, MobileGithubWorkflowsOutput, MobileGithubWorkflowRunsInput, MobileGithubWorkflowRunJobsInput, MobileGithubWorkflowRunJobsOutput, MobileGithubWorkflowRunRerunInput, MobileGithubWorkflowRunCancelInput, MobileGithubWorkflowDispatchInput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, MobileSessionTodoInput, MobileSessionTodoOutput, MobileTeleportUploadBeginOutput, MobileTeleportUploadChunkInput, MobileTeleportUploadChunkOutput, MobileTeleportInInput, MobileTeleportOutInput, MobileWorktreeCreateInput, MobileWorktreeRemoveInput, MobileWorktreeResetInput, MobileGitDiffInput, MobileGitDiffOutput, MobileGitCommitsInput, MobileGitCommitsOutput, MobileGitBranchesOutput, MobileGitCommitInput, MobileGitCommitOutput, MobileGitCheckoutInput, MobileGitStageInput, MobileGitUnstageInput, MobileGitDiscardInput, MobileGitPushInput, MobileGitPushOutput, MobileGitPullOutput, MobileLoopListOutput, MobileLoopCreateInput, MobileLoopTemplatesOutput, MobileLoopGenerateInput, MobileLoopRunsRecentInput, MobileLoopRunsRecentOutput, MobileLoopGetInput, MobileLoopGetOutput, MobileLoopDeleteInput, MobileLoopUpdateInput, MobileLoopRunsInput, MobileLoopRunsOutput, MobileLoopRunInput, MobileLoopAbortInput, MobileLoopToggleInput, MobileLoopPauseInput, MobileLoopResumeInput, MobileRoutineListOutput, MobileRoutineCreateInput, MobileRoutineGetInput, MobileRoutineDeleteInput, MobileRoutineUpdateInput, MobileRoutineRunInput, MobileRoutinePauseInput, MobileRoutineResumeInput, MobileRoutineTriggerInput, MobilePtyListOutput, MobilePtyCreateInput, MobilePtyGetInput, MobilePtyUpdateInput, MobilePtyRemoveInput, MobileMissionListOutput, MobileMissionCreateInput, MobileMissionTemplatesOutput, MobileMissionGenerateInput, MobileMissionExecsRecentInput, MobileMissionExecsRecentOutput, MobileMissionGetInput, MobileMissionGetOutput, MobileMissionUpdateInput, MobileMissionDeleteInput, MobileMissionExecsInput, MobileMissionExecsOutput, MobileMissionStartInput, MobileMissionPauseInput, MobileMissionCancelInput, MobileMissionFeatureMutateInput, MobileEventsOutput, MobileBrainStatusOutput, MobileBrainTriggerInput, MobileBrainTriggerOutput, MobileChatBotListOutput, MobileChatBotStartInput, MobileChatBotStartOutput, MobileChatBotStopInput, MobileChatBotStopOutput, MobileObservabilityGetOutput, MobileObservabilitySetInput, MobileObservabilitySetOutput, MobileLspStatusOutput, MobileFusionListOutput, MobileFusionSetInput, MobileFusionSetOutput, MobileHostBrowserOutput, MobileHostComputerOutput, MobileHostHerdrGetOutput, MobileHostHerdrSetInput, MobileHostHerdrSetOutput, MobileHostIslandOutput, MobileHostDevtoolsOutput, MobileHostLanStartInput, ProjectListOutput, ProjectUpdateInput, ProjectDirectoryListInput, ProjectDirectoryListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, ProviderApiInput, ProviderRemoveAuthInput, ProviderOauthAuthorizeInput, ProviderOauthAuthorizeOutput, ProviderOauthCallbackInput, QuestionListOutput, QuestionReplyInput, QuestionRejectInput, PermissionListOutput, PermissionBlockedOutput, PermissionReplyInput, PtyCreateInput, PtyGetInput, PtyUpdateInput, PtyRemoveInput, LoopGenerateInput, LoopRecentRunsInput, LoopGetInput, LoopUpsertInput, LoopUpdateInput, LoopRemoveInput, LoopToggleInput, LoopRunInput, LoopAbortInput, LoopPauseInput, LoopResumeInput, LoopRunsInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionUpdateInput, SessionForkInput, SessionAbortInput, SessionRevertInput, SessionUnrevertInput, SessionShareInput, SessionUnshareInput, SessionSummarizeInput, SessionCommandInput, SessionShellInput, SessionPermissionRespondInput, SessionChildrenInput, SessionTodoInput, SessionDiffInput, SessionMessagesInput, SessionPendingInput, SessionPendingSteerInput, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionBackgroundResumeInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, AccountCompleteInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, AuthSetInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, ShareShortOutput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput } from "./types.js";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -277,6 +277,7 @@ export declare function make(options: ClientOptions): {
277
277
  };
278
278
  permission: {
279
279
  list: (requestOptions?: RequestOptions) => Promise<PermissionListOutput>;
280
+ blocked: (requestOptions?: RequestOptions) => Promise<PermissionBlockedOutput>;
280
281
  reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<boolean>;
281
282
  };
282
283
  pty: {
@@ -1646,6 +1646,7 @@ export function make(options) {
1646
1646
  },
1647
1647
  permission: {
1648
1648
  list: (requestOptions) => request({ method: "GET", path: `/permission`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
1649
+ blocked: (requestOptions) => request({ method: "GET", path: `/permission/blocked`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
1649
1650
  reply: (input, requestOptions) => request({
1650
1651
  method: "POST",
1651
1652
  path: `/permission/${encodeURIComponent(input.requestID)}/reply`,
@@ -876,6 +876,7 @@ export declare const makeCompat: (raw: Raw, helpers: CompatHelpers) => {
876
876
  };
877
877
  permission: {
878
878
  list: (options?: import("../compat.js").CallOptions, overrides?: import("../compat.js").CallOptions) => Promise<import("../compat.js").Result<import("./types.js").PermissionListOutput>>;
879
+ blocked: (options?: import("../compat.js").CallOptions, overrides?: import("../compat.js").CallOptions) => Promise<import("../compat.js").Result<import("./types.js").PermissionBlockedOutput>>;
879
880
  reply: (input: import("./types.js").PermissionReplyInput & {
880
881
  readonly directory?: string;
881
882
  readonly workspace?: string;
@@ -305,6 +305,7 @@ export const makeCompat = (raw, helpers) => {
305
305
  path: { get: result0(raw["top-level"]["path"]) },
306
306
  permission: {
307
307
  list: result0(raw["permission"]["list"]),
308
+ blocked: result0(raw["permission"]["blocked"]),
308
309
  reply: result(raw["permission"]["reply"]),
309
310
  respond: result(raw["session"]["permissionRespond"]),
310
311
  },
@@ -43,6 +43,7 @@ export type Agent = {
43
43
  pattern: string;
44
44
  action: "allow" | "deny" | "ask";
45
45
  }>;
46
+ permissionMode?: "default" | "auto" | undefined;
46
47
  model?: {
47
48
  modelID: string;
48
49
  providerID: string;
@@ -389,6 +390,7 @@ export type ReferenceConfig = {
389
390
  description?: string | undefined;
390
391
  };
391
392
  export type PermissionActionConfig = "ask" | "allow" | "deny";
393
+ export type PermissionModeConfig = "default" | "auto";
392
394
  export type ProviderConfig = {
393
395
  api?: string | undefined;
394
396
  name?: string | undefined;
@@ -535,6 +537,15 @@ export type ConnectorLinear = {
535
537
  enabled?: boolean | undefined;
536
538
  };
537
539
  export type LayoutConfig = "auto" | "stretch";
540
+ export type AutoModeConfig = {
541
+ environment?: Array<string> | undefined;
542
+ allow?: Array<string> | undefined;
543
+ soft_deny?: Array<string> | undefined;
544
+ hard_deny?: Array<string> | undefined;
545
+ classify_all_shell?: boolean | undefined;
546
+ model?: string | undefined;
547
+ disable?: boolean | undefined;
548
+ };
538
549
  export type PolicyStatementConfig = {
539
550
  effect: "allow" | "deny";
540
551
  action: string;
@@ -1098,6 +1109,7 @@ export type ReferenceConfig1 = {
1098
1109
  path: string;
1099
1110
  description?: string | undefined;
1100
1111
  };
1112
+ export type PermissionModeConfig1 = "default" | "auto";
1101
1113
  export type ProviderConfig1 = {
1102
1114
  api?: string | undefined;
1103
1115
  name?: string | undefined;
@@ -1244,6 +1256,15 @@ export type ConnectorLinear1 = {
1244
1256
  enabled?: boolean | undefined;
1245
1257
  };
1246
1258
  export type LayoutConfig1 = "auto" | "stretch";
1259
+ export type AutoModeConfig1 = {
1260
+ environment?: Array<string> | undefined;
1261
+ allow?: Array<string> | undefined;
1262
+ soft_deny?: Array<string> | undefined;
1263
+ hard_deny?: Array<string> | undefined;
1264
+ classify_all_shell?: boolean | undefined;
1265
+ model?: string | undefined;
1266
+ disable?: boolean | undefined;
1267
+ };
1247
1268
  export type PolicyStatementConfig1 = {
1248
1269
  effect: "allow" | "deny";
1249
1270
  action: string;
@@ -2387,6 +2408,19 @@ export type PermissionRequest1 = {
2387
2408
  callID: string;
2388
2409
  } | undefined;
2389
2410
  };
2411
+ export type PermissionBlocked = {
2412
+ id: string;
2413
+ sessionID: string;
2414
+ permission: string;
2415
+ patterns: Array<string>;
2416
+ rule: string;
2417
+ reason: string;
2418
+ time: number;
2419
+ tool?: {
2420
+ messageID: string;
2421
+ callID: string;
2422
+ } | undefined;
2423
+ };
2390
2424
  export type Pty1 = {
2391
2425
  id: string;
2392
2426
  title: string;
@@ -2745,6 +2779,19 @@ export type EventPermissionReplied = {
2745
2779
  reply: "once" | "always" | "reject";
2746
2780
  };
2747
2781
  };
2782
+ export type PermissionBlocked1 = {
2783
+ id: string;
2784
+ sessionID: string;
2785
+ permission: string;
2786
+ patterns: Array<string>;
2787
+ rule: string;
2788
+ reason: string;
2789
+ time: number;
2790
+ tool?: {
2791
+ messageID: string;
2792
+ callID: string;
2793
+ } | undefined;
2794
+ };
2748
2795
  export type QuestionOption2 = {
2749
2796
  label: string;
2750
2797
  description: string;
@@ -3995,6 +4042,10 @@ export type EventPermissionAsked = {
3995
4042
  type: "permission.asked";
3996
4043
  properties: PermissionRequest2;
3997
4044
  };
4045
+ export type EventPermissionBlocked = {
4046
+ type: "permission.blocked";
4047
+ properties: PermissionBlocked1;
4048
+ };
3998
4049
  export type QuestionInfo2 = {
3999
4050
  question: string;
4000
4051
  header: string;
@@ -4760,6 +4811,7 @@ export type AgentConfig = {
4760
4811
  order?: number | undefined;
4761
4812
  maxSteps?: number | undefined;
4762
4813
  permission?: PermissionConfig | undefined;
4814
+ permission_mode?: PermissionModeConfig | undefined;
4763
4815
  advisor?: string | undefined;
4764
4816
  advisor_max_uses?: number | undefined;
4765
4817
  } & {
@@ -4786,6 +4838,7 @@ export type AgentConfig1 = {
4786
4838
  order?: number | undefined;
4787
4839
  maxSteps?: number | undefined;
4788
4840
  permission?: PermissionConfig | undefined;
4841
+ permission_mode?: PermissionModeConfig1 | undefined;
4789
4842
  advisor?: string | undefined;
4790
4843
  advisor_max_uses?: number | undefined;
4791
4844
  } & {
@@ -5006,6 +5059,8 @@ export type Config = {
5006
5059
  instructions?: Array<string> | undefined;
5007
5060
  layout?: LayoutConfig | undefined;
5008
5061
  permission?: PermissionConfig | undefined;
5062
+ permission_mode?: PermissionModeConfig | undefined;
5063
+ auto_mode?: AutoModeConfig | undefined;
5009
5064
  tools?: {
5010
5065
  [x: string]: boolean;
5011
5066
  } | undefined;
@@ -5281,6 +5336,8 @@ export type MobileConfigInfo = {
5281
5336
  instructions?: Array<string> | undefined;
5282
5337
  layout?: LayoutConfig1 | undefined;
5283
5338
  permission?: PermissionConfig | undefined;
5339
+ permission_mode?: PermissionModeConfig1 | undefined;
5340
+ auto_mode?: AutoModeConfig1 | undefined;
5284
5341
  tools?: {
5285
5342
  [x: string]: boolean;
5286
5343
  } | undefined;
@@ -5544,8 +5601,8 @@ export type EventMessagePartUpdated = {
5544
5601
  delta?: string;
5545
5602
  };
5546
5603
  };
5547
- export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
5548
- export type Event1 = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
5604
+ export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventPermissionBlocked | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
5605
+ export type Event1 = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventPermissionBlocked | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
5549
5606
  export type GlobalEvent = {
5550
5607
  directory: string;
5551
5608
  payload: Event1;
@@ -7615,6 +7672,7 @@ export type ConfigUpdateInput = {
7615
7672
  readonly [x: string]: "ask" | "allow" | "deny";
7616
7673
  }) | undefined;
7617
7674
  } | undefined;
7675
+ readonly permission_mode?: ("default" | "auto") | undefined;
7618
7676
  readonly advisor?: string | undefined;
7619
7677
  readonly advisor_max_uses?: number | undefined;
7620
7678
  } & {
@@ -7645,6 +7703,7 @@ export type ConfigUpdateInput = {
7645
7703
  readonly [x: string]: "ask" | "allow" | "deny";
7646
7704
  }) | undefined;
7647
7705
  } | undefined;
7706
+ readonly permission_mode?: ("default" | "auto") | undefined;
7648
7707
  readonly advisor?: string | undefined;
7649
7708
  readonly advisor_max_uses?: number | undefined;
7650
7709
  } & {
@@ -7676,6 +7735,7 @@ export type ConfigUpdateInput = {
7676
7735
  readonly [x: string]: "ask" | "allow" | "deny";
7677
7736
  }) | undefined;
7678
7737
  } | undefined;
7738
+ readonly permission_mode?: ("default" | "auto") | undefined;
7679
7739
  readonly advisor?: string | undefined;
7680
7740
  readonly advisor_max_uses?: number | undefined;
7681
7741
  } & {
@@ -7708,6 +7768,7 @@ export type ConfigUpdateInput = {
7708
7768
  readonly [x: string]: "ask" | "allow" | "deny";
7709
7769
  }) | undefined;
7710
7770
  } | undefined;
7771
+ readonly permission_mode?: ("default" | "auto") | undefined;
7711
7772
  readonly advisor?: string | undefined;
7712
7773
  readonly advisor_max_uses?: number | undefined;
7713
7774
  } & {
@@ -7738,6 +7799,7 @@ export type ConfigUpdateInput = {
7738
7799
  readonly [x: string]: "ask" | "allow" | "deny";
7739
7800
  }) | undefined;
7740
7801
  } | undefined;
7802
+ readonly permission_mode?: ("default" | "auto") | undefined;
7741
7803
  readonly advisor?: string | undefined;
7742
7804
  readonly advisor_max_uses?: number | undefined;
7743
7805
  } & {
@@ -7768,6 +7830,7 @@ export type ConfigUpdateInput = {
7768
7830
  readonly [x: string]: "ask" | "allow" | "deny";
7769
7831
  }) | undefined;
7770
7832
  } | undefined;
7833
+ readonly permission_mode?: ("default" | "auto") | undefined;
7771
7834
  readonly advisor?: string | undefined;
7772
7835
  readonly advisor_max_uses?: number | undefined;
7773
7836
  } & {
@@ -7798,6 +7861,7 @@ export type ConfigUpdateInput = {
7798
7861
  readonly [x: string]: "ask" | "allow" | "deny";
7799
7862
  }) | undefined;
7800
7863
  } | undefined;
7864
+ readonly permission_mode?: ("default" | "auto") | undefined;
7801
7865
  readonly advisor?: string | undefined;
7802
7866
  readonly advisor_max_uses?: number | undefined;
7803
7867
  } & {
@@ -7828,6 +7892,7 @@ export type ConfigUpdateInput = {
7828
7892
  readonly [x: string]: "ask" | "allow" | "deny";
7829
7893
  }) | undefined;
7830
7894
  } | undefined;
7895
+ readonly permission_mode?: ("default" | "auto") | undefined;
7831
7896
  readonly advisor?: string | undefined;
7832
7897
  readonly advisor_max_uses?: number | undefined;
7833
7898
  } & {
@@ -7858,6 +7923,7 @@ export type ConfigUpdateInput = {
7858
7923
  readonly [x: string]: "ask" | "allow" | "deny";
7859
7924
  }) | undefined;
7860
7925
  } | undefined;
7926
+ readonly permission_mode?: ("default" | "auto") | undefined;
7861
7927
  readonly advisor?: string | undefined;
7862
7928
  readonly advisor_max_uses?: number | undefined;
7863
7929
  } & {
@@ -7888,6 +7954,7 @@ export type ConfigUpdateInput = {
7888
7954
  readonly [x: string]: "ask" | "allow" | "deny";
7889
7955
  }) | undefined;
7890
7956
  } | undefined;
7957
+ readonly permission_mode?: ("default" | "auto") | undefined;
7891
7958
  readonly advisor?: string | undefined;
7892
7959
  readonly advisor_max_uses?: number | undefined;
7893
7960
  } & {
@@ -7918,6 +7985,7 @@ export type ConfigUpdateInput = {
7918
7985
  readonly [x: string]: "ask" | "allow" | "deny";
7919
7986
  }) | undefined;
7920
7987
  } | undefined;
7988
+ readonly permission_mode?: ("default" | "auto") | undefined;
7921
7989
  readonly advisor?: string | undefined;
7922
7990
  readonly advisor_max_uses?: number | undefined;
7923
7991
  } & {
@@ -7949,6 +8017,7 @@ export type ConfigUpdateInput = {
7949
8017
  readonly [x: string]: "ask" | "allow" | "deny";
7950
8018
  }) | undefined;
7951
8019
  } | undefined;
8020
+ readonly permission_mode?: ("default" | "auto") | undefined;
7952
8021
  readonly advisor?: string | undefined;
7953
8022
  readonly advisor_max_uses?: number | undefined;
7954
8023
  } & {
@@ -8150,6 +8219,16 @@ export type ConfigUpdateInput = {
8150
8219
  readonly [x: string]: "ask" | "allow" | "deny";
8151
8220
  }) | undefined;
8152
8221
  } | undefined;
8222
+ readonly permission_mode?: ("default" | "auto") | undefined;
8223
+ readonly auto_mode?: {
8224
+ readonly environment?: ReadonlyArray<string> | undefined;
8225
+ readonly allow?: ReadonlyArray<string> | undefined;
8226
+ readonly soft_deny?: ReadonlyArray<string> | undefined;
8227
+ readonly hard_deny?: ReadonlyArray<string> | undefined;
8228
+ readonly classify_all_shell?: boolean | undefined;
8229
+ readonly model?: string | undefined;
8230
+ readonly disable?: boolean | undefined;
8231
+ } | undefined;
8153
8232
  readonly tools?: {
8154
8233
  readonly [x: string]: boolean;
8155
8234
  } | undefined;
@@ -9592,6 +9671,7 @@ export type QuestionRejectInput = {
9592
9671
  };
9593
9672
  export type QuestionRejectOutput = boolean;
9594
9673
  export type PermissionListOutput = Array<PermissionRequest1>;
9674
+ export type PermissionBlockedOutput = Array<PermissionBlocked>;
9595
9675
  export type PermissionReplyInput = {
9596
9676
  readonly requestID: {
9597
9677
  readonly requestID: string;
package/dist/server.d.ts CHANGED
@@ -897,6 +897,7 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
897
897
  };
898
898
  permission: {
899
899
  list: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").PermissionListOutput>>;
900
+ blocked: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").PermissionBlockedOutput>>;
900
901
  reply: (input: import("./httpapi/client.js").PermissionReplyInput & {
901
902
  readonly directory?: string;
902
903
  readonly workspace?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.396.0",
4
+ "version": "1.397.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {