@nikcli-ai/sdk 1.284.0 → 1.285.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.
@@ -351,6 +351,14 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
351
351
  postConfigProfilesActivateName: (input: WithDirectory<import("./client.js").ConfigManagementProfileActivateInput>, options?: CallOptions) => Promise<Result<import("./client.js").SuccessFlag>>;
352
352
  postUserLogin: (input: WithDirectory<import("./client.js").UsersLoginInput>, options?: CallOptions) => Promise<Result<import("./client.js").UserSession>>;
353
353
  postUserRegister: (input: WithDirectory<import("./client.js").UsersRegisterInput>, options?: CallOptions) => Promise<Result<import("./client.js").UserSession>>;
354
+ profile: {
355
+ clear: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProfileDeleted>>;
356
+ clearHabits: (input?: (import("./client.js").ProfileClearHabitsInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfileDeleted>>;
357
+ get: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProfileInfoOrNull>>;
358
+ habits: (input?: (import("./client.js").ProfileHabitsInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfileHabits>>;
359
+ patch: (input: WithDirectory<import("./client.js").ProfilePatchInput>, options?: CallOptions) => Promise<Result<import("./client.js").ProfileInfo>>;
360
+ preview: (input?: (import("./client.js").ProfilePreviewInput & Selector) | undefined, options?: CallOptions) => Promise<Result<import("./client.js").ProfilePreview>>;
361
+ };
354
362
  project: {
355
363
  current: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").Project>>;
356
364
  list: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").ProjectListOutput>>;
@@ -454,6 +462,7 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
454
462
  tui: {
455
463
  appendPrompt: (input: WithDirectory<import("./client.js").TuiAppendPromptInput>, options?: CallOptions) => Promise<Result<boolean>>;
456
464
  clearPrompt: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<boolean>>;
465
+ config: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").TuiConfig>>;
457
466
  control: {
458
467
  next: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").TuiControlRequest>>;
459
468
  response: (input: WithDirectory<import("./client.js").TuiControlResponseInput>, options?: CallOptions) => Promise<Result<boolean>>;
@@ -376,6 +376,14 @@ export function compat(raw, defaults = {}) {
376
376
  postConfigProfilesActivateName: result(raw["config-management"].profileActivate),
377
377
  postUserLogin: result(raw.users.login),
378
378
  postUserRegister: result(raw.users.register),
379
+ profile: {
380
+ clear: result0(raw.profile.clear),
381
+ clearHabits: result(raw.profile.clearHabits),
382
+ get: result0(raw.profile.get),
383
+ habits: result(raw.profile.habits),
384
+ patch: result(raw.profile.patch),
385
+ preview: result(raw.profile.preview),
386
+ },
379
387
  project: {
380
388
  current: result0(raw.project.current),
381
389
  list: result0(raw.project.list),
@@ -477,6 +485,7 @@ export function compat(raw, defaults = {}) {
477
485
  tui: {
478
486
  appendPrompt: result(raw.tui.appendPrompt),
479
487
  clearPrompt: result0(raw.tui.clearPrompt),
488
+ config: result0(raw.tui.config),
480
489
  control: {
481
490
  next: result0(raw.tui.controlNext),
482
491
  response: result(raw.tui.controlResponse),
@@ -1,4 +1,4 @@
1
- import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, 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, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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, 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, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, 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, 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, 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, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, 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, 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, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, 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, 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;
@@ -39,6 +39,14 @@ export declare function make(options: ClientOptions): {
39
39
  status: (requestOptions?: RequestOptions) => Promise<import("./types.js").BrainStatus>;
40
40
  trigger: (input?: BrainTriggerInput, requestOptions?: RequestOptions) => Promise<import("./types.js").BrainResult>;
41
41
  };
42
+ profile: {
43
+ get: (requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileInfoOrNull>;
44
+ patch: (input: ProfilePatchInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileInfo>;
45
+ clear: (requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileDeleted>;
46
+ habits: (input?: ProfileHabitsInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileHabits>;
47
+ preview: (input?: ProfilePreviewInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfilePreview>;
48
+ clearHabits: (input?: ProfileClearHabitsInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ProfileDeleted>;
49
+ };
42
50
  config: {
43
51
  get: (requestOptions?: RequestOptions) => Promise<import("./types.js").Config>;
44
52
  update: (input: ConfigUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").Config>;
@@ -306,6 +314,7 @@ export declare function make(options: ClientOptions): {
306
314
  showToast: (input: TuiShowToastInput, requestOptions?: RequestOptions) => Promise<boolean>;
307
315
  publish: (input: TuiPublishInput, requestOptions?: RequestOptions) => Promise<boolean>;
308
316
  selectSession: (input: TuiSelectSessionInput, requestOptions?: RequestOptions) => Promise<boolean>;
317
+ config: (requestOptions?: RequestOptions) => Promise<import("./types.js").TuiConfig>;
309
318
  controlNext: (requestOptions?: RequestOptions) => Promise<import("./types.js").TuiControlRequest>;
310
319
  controlResponse: (input: TuiControlResponseInput, requestOptions?: RequestOptions) => Promise<boolean>;
311
320
  };
@@ -223,6 +223,42 @@ export function make(options) {
223
223
  empty: false,
224
224
  }, requestOptions),
225
225
  },
226
+ profile: {
227
+ get: (requestOptions) => request({ method: "GET", path: `/profile`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
228
+ patch: (input, requestOptions) => request({
229
+ method: "PATCH",
230
+ path: `/profile`,
231
+ body: input["payload"],
232
+ successStatus: 200,
233
+ declaredStatuses: [],
234
+ empty: false,
235
+ }, requestOptions),
236
+ clear: (requestOptions) => request({ method: "DELETE", path: `/profile`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
237
+ habits: (input, requestOptions) => request({
238
+ method: "GET",
239
+ path: `/profile/habits`,
240
+ query: { worktree: input?.["worktree"] },
241
+ successStatus: 200,
242
+ declaredStatuses: [],
243
+ empty: false,
244
+ }, requestOptions),
245
+ preview: (input, requestOptions) => request({
246
+ method: "GET",
247
+ path: `/profile/preview`,
248
+ query: { worktree: input?.["worktree"] },
249
+ successStatus: 200,
250
+ declaredStatuses: [],
251
+ empty: false,
252
+ }, requestOptions),
253
+ clearHabits: (input, requestOptions) => request({
254
+ method: "DELETE",
255
+ path: `/profile/habits`,
256
+ query: { worktree: input?.["worktree"] },
257
+ successStatus: 200,
258
+ declaredStatuses: [],
259
+ empty: false,
260
+ }, requestOptions),
261
+ },
226
262
  config: {
227
263
  get: (requestOptions) => request({ method: "GET", path: `/config`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
228
264
  update: (input, requestOptions) => request({
@@ -1787,6 +1823,7 @@ export function make(options) {
1787
1823
  declaredStatuses: [400, 404],
1788
1824
  empty: false,
1789
1825
  }, requestOptions),
1826
+ config: (requestOptions) => request({ method: "GET", path: `/tui/config`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
1790
1827
  controlNext: (requestOptions) => request({ method: "GET", path: `/tui/control/next`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
1791
1828
  controlResponse: (input, requestOptions) => request({
1792
1829
  method: "POST",
@@ -168,6 +168,40 @@ export type BrainResult = {
168
168
  error?: string | undefined;
169
169
  sessionID?: string | undefined;
170
170
  };
171
+ export type ProfileInfo = {
172
+ version: number;
173
+ key: string;
174
+ name?: string | undefined;
175
+ role?: string | undefined;
176
+ about?: string | undefined;
177
+ stack?: Array<string> | undefined;
178
+ expertise?: Array<string> | undefined;
179
+ learning?: Array<string> | undefined;
180
+ skills?: Array<string> | undefined;
181
+ tools?: {
182
+ preferred?: Array<string> | undefined;
183
+ avoid?: Array<string> | undefined;
184
+ } | undefined;
185
+ conventions?: Array<string> | undefined;
186
+ communication?: {
187
+ verbosity?: "concise" | "balanced" | "detailed" | undefined;
188
+ language?: string | undefined;
189
+ explain?: boolean | undefined;
190
+ } | undefined;
191
+ custom?: string | undefined;
192
+ habits?: boolean | undefined;
193
+ updatedAt: number;
194
+ };
195
+ export type ProfileDeleted = {
196
+ deleted: boolean;
197
+ };
198
+ export type ProfileHabits = {
199
+ content: string;
200
+ };
201
+ export type ProfilePreview = {
202
+ lines: Array<string>;
203
+ habitsFile: string;
204
+ };
171
205
  export type KeybindsConfig = {
172
206
  leader?: string | undefined;
173
207
  app_exit?: string | undefined;
@@ -757,10 +791,11 @@ export type MissionExec = {
757
791
  export type MissionBooleanResult = boolean;
758
792
  export type MobileAuthTokenPublic = {
759
793
  id: string;
760
- name?: string | undefined;
761
- scope?: string | undefined;
762
- createdAt?: number | undefined;
794
+ name: string;
795
+ createdAt: number;
796
+ lastUsedAt?: number | undefined;
763
797
  expiresAt?: number | undefined;
798
+ scope?: string | undefined;
764
799
  };
765
800
  export type MobileProject = any;
766
801
  export type MobileCommand = {
@@ -1528,6 +1563,9 @@ export type SyncConfigSetResponse = {
1528
1563
  error?: string | undefined;
1529
1564
  };
1530
1565
  export type TuiBooleanResult = boolean;
1566
+ export type PluginOptionsConfig = {
1567
+ [x: string]: any;
1568
+ };
1531
1569
  export type TuiControlRequest = {
1532
1570
  path: string;
1533
1571
  body: any;
@@ -1696,6 +1734,15 @@ export type EventSessionPendingPromoted = {
1696
1734
  messageIDs: Array<string>;
1697
1735
  };
1698
1736
  };
1737
+ export type EventSessionInstructionsUpdated = {
1738
+ type: "session.instructions.updated";
1739
+ properties: {
1740
+ sessionID: string;
1741
+ delta: {
1742
+ [x: string]: string | "removed";
1743
+ };
1744
+ };
1745
+ };
1699
1746
  export type EventTuiPromptAppend = {
1700
1747
  type: "tui.prompt.append";
1701
1748
  properties: {
@@ -2197,6 +2244,7 @@ export type AnalyticsData = {
2197
2244
  to: string;
2198
2245
  generatedAt: number;
2199
2246
  } | null;
2247
+ export type ProfileInfoOrNull = ProfileInfo | null;
2200
2248
  export type AdsConfig = {
2201
2249
  enabled?: boolean | undefined;
2202
2250
  ratio?: number | undefined;
@@ -2542,6 +2590,7 @@ export type SyncStatsOutput2 = {
2542
2590
  lastChange: number;
2543
2591
  events: Array<SyncStatsEvent>;
2544
2592
  };
2593
+ export type PluginSpecConfig = string | [string, PluginOptionsConfig];
2545
2594
  export type Workspace1 = {
2546
2595
  id: string;
2547
2596
  name: string;
@@ -2663,6 +2712,146 @@ export type QuestionRequest = {
2663
2712
  callID: string;
2664
2713
  } | undefined;
2665
2714
  };
2715
+ export type TuiConfig = {
2716
+ $schema?: string | undefined;
2717
+ theme?: string | undefined;
2718
+ keybinds?: {
2719
+ leader?: string | undefined;
2720
+ app_exit?: string | undefined;
2721
+ editor_open?: string | undefined;
2722
+ theme_list?: string | undefined;
2723
+ sidebar_toggle?: string | undefined;
2724
+ scrollbar_toggle?: string | undefined;
2725
+ username_toggle?: string | undefined;
2726
+ status_view?: string | undefined;
2727
+ sync_view?: string | undefined;
2728
+ session_export?: string | undefined;
2729
+ session_new?: string | undefined;
2730
+ session_list?: string | undefined;
2731
+ session_timeline?: string | undefined;
2732
+ session_fork?: string | undefined;
2733
+ session_rename?: string | undefined;
2734
+ session_delete?: string | undefined;
2735
+ session_pin_toggle?: string | undefined;
2736
+ session_scope_toggle?: string | undefined;
2737
+ session_tab_back?: string | undefined;
2738
+ session_tab_forward?: string | undefined;
2739
+ session_quick_switch_1?: string | undefined;
2740
+ session_quick_switch_2?: string | undefined;
2741
+ session_quick_switch_3?: string | undefined;
2742
+ session_quick_switch_4?: string | undefined;
2743
+ session_quick_switch_5?: string | undefined;
2744
+ session_quick_switch_6?: string | undefined;
2745
+ session_quick_switch_7?: string | undefined;
2746
+ session_quick_switch_8?: string | undefined;
2747
+ session_quick_switch_9?: string | undefined;
2748
+ stash_delete?: string | undefined;
2749
+ model_provider_list?: string | undefined;
2750
+ model_favorite_toggle?: string | undefined;
2751
+ session_share?: string | undefined;
2752
+ session_unshare?: string | undefined;
2753
+ session_interrupt?: string | undefined;
2754
+ session_codebro_open?: string | undefined;
2755
+ subtask_background?: string | undefined;
2756
+ subtask_picker?: string | undefined;
2757
+ session_compact?: string | undefined;
2758
+ messages_page_up?: string | undefined;
2759
+ messages_page_down?: string | undefined;
2760
+ messages_line_up?: string | undefined;
2761
+ messages_line_down?: string | undefined;
2762
+ messages_half_page_up?: string | undefined;
2763
+ messages_half_page_down?: string | undefined;
2764
+ messages_first?: string | undefined;
2765
+ messages_last?: string | undefined;
2766
+ messages_next?: string | undefined;
2767
+ messages_previous?: string | undefined;
2768
+ messages_last_user?: string | undefined;
2769
+ messages_copy?: string | undefined;
2770
+ messages_undo?: string | undefined;
2771
+ messages_redo?: string | undefined;
2772
+ messages_toggle_conceal?: string | undefined;
2773
+ tool_details?: string | undefined;
2774
+ model_list?: string | undefined;
2775
+ model_cycle_recent?: string | undefined;
2776
+ model_cycle_recent_reverse?: string | undefined;
2777
+ model_cycle_favorite?: string | undefined;
2778
+ model_cycle_favorite_reverse?: string | undefined;
2779
+ command_list?: string | undefined;
2780
+ agent_list?: string | undefined;
2781
+ agent_cycle?: string | undefined;
2782
+ agent_cycle_reverse?: string | undefined;
2783
+ permission_mode?: string | undefined;
2784
+ variant_cycle?: string | undefined;
2785
+ input_clear?: string | undefined;
2786
+ input_paste?: string | undefined;
2787
+ input_submit?: string | undefined;
2788
+ input_newline?: string | undefined;
2789
+ input_move_left?: string | undefined;
2790
+ input_move_right?: string | undefined;
2791
+ input_move_up?: string | undefined;
2792
+ input_move_down?: string | undefined;
2793
+ input_select_left?: string | undefined;
2794
+ input_select_right?: string | undefined;
2795
+ input_select_up?: string | undefined;
2796
+ input_select_down?: string | undefined;
2797
+ input_line_home?: string | undefined;
2798
+ input_line_end?: string | undefined;
2799
+ input_select_line_home?: string | undefined;
2800
+ input_select_line_end?: string | undefined;
2801
+ input_visual_line_home?: string | undefined;
2802
+ input_visual_line_end?: string | undefined;
2803
+ input_select_visual_line_home?: string | undefined;
2804
+ input_select_visual_line_end?: string | undefined;
2805
+ input_buffer_home?: string | undefined;
2806
+ input_buffer_end?: string | undefined;
2807
+ input_select_buffer_home?: string | undefined;
2808
+ input_select_buffer_end?: string | undefined;
2809
+ input_delete_line?: string | undefined;
2810
+ input_delete_to_line_end?: string | undefined;
2811
+ input_delete_to_line_start?: string | undefined;
2812
+ input_backspace?: string | undefined;
2813
+ input_delete?: string | undefined;
2814
+ input_undo?: string | undefined;
2815
+ input_redo?: string | undefined;
2816
+ input_word_forward?: string | undefined;
2817
+ input_word_backward?: string | undefined;
2818
+ input_select_word_forward?: string | undefined;
2819
+ input_select_word_backward?: string | undefined;
2820
+ input_delete_word_forward?: string | undefined;
2821
+ input_delete_word_backward?: string | undefined;
2822
+ history_previous?: string | undefined;
2823
+ history_next?: string | undefined;
2824
+ session_child_cycle?: string | undefined;
2825
+ session_child_cycle_reverse?: string | undefined;
2826
+ session_parent?: string | undefined;
2827
+ session_child_close?: string | undefined;
2828
+ terminal_suspend?: string | undefined;
2829
+ terminal_title_toggle?: string | undefined;
2830
+ tips_toggle?: string | undefined;
2831
+ voice_record?: string | undefined;
2832
+ app_support?: string | undefined;
2833
+ } | undefined;
2834
+ plugin?: Array<PluginSpecConfig> | undefined;
2835
+ plugin_enabled?: {
2836
+ [x: string]: boolean;
2837
+ } | undefined;
2838
+ scroll_speed?: number | undefined;
2839
+ scroll_acceleration?: {
2840
+ enabled: boolean;
2841
+ } | undefined;
2842
+ diff_style?: "auto" | "stacked" | undefined;
2843
+ mouse?: boolean | undefined;
2844
+ sound?: boolean | undefined;
2845
+ bg_pulse?: boolean | undefined;
2846
+ turn_tokens?: boolean | undefined;
2847
+ plugin_meta?: {
2848
+ [x: string]: {
2849
+ scope: "global" | "local";
2850
+ source: string;
2851
+ };
2852
+ } | undefined;
2853
+ [x: string]: any;
2854
+ };
2666
2855
  export type OptionalWorkspace = Workspace1 | null;
2667
2856
  export type QuestionRequest1 = {
2668
2857
  id: string;
@@ -3209,7 +3398,7 @@ export type EventMessagePartUpdated = {
3209
3398
  delta?: string | undefined;
3210
3399
  };
3211
3400
  };
3212
- export type Event = EventProjectUpdated | EventProjectDirectoriesUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
3401
+ export type Event = EventProjectUpdated | EventProjectDirectoriesUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventFileWatcherUpdated | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
3213
3402
  export type GlobalEvent = {
3214
3403
  directory: string;
3215
3404
  payload: Event;
@@ -3454,6 +3643,32 @@ export type BrainTriggerInput = {
3454
3643
  }["force"];
3455
3644
  };
3456
3645
  export type BrainTriggerOutput = BrainResult;
3646
+ export type ProfileGetOutput = ProfileInfoOrNull;
3647
+ export type ProfilePatchInput = {
3648
+ readonly payload: {
3649
+ readonly [x: string]: unknown;
3650
+ };
3651
+ };
3652
+ export type ProfilePatchOutput = ProfileInfo;
3653
+ export type ProfileClearOutput = ProfileDeleted;
3654
+ export type ProfileHabitsInput = {
3655
+ readonly worktree?: {
3656
+ readonly worktree?: string | undefined;
3657
+ }["worktree"];
3658
+ };
3659
+ export type ProfileHabitsOutput = ProfileHabits;
3660
+ export type ProfilePreviewInput = {
3661
+ readonly worktree?: {
3662
+ readonly worktree?: string | undefined;
3663
+ }["worktree"];
3664
+ };
3665
+ export type ProfilePreviewOutput = ProfilePreview;
3666
+ export type ProfileClearHabitsInput = {
3667
+ readonly worktree?: {
3668
+ readonly worktree?: string | undefined;
3669
+ }["worktree"];
3670
+ };
3671
+ export type ProfileClearHabitsOutput = ProfileDeleted;
3457
3672
  export type ConfigGetOutput = Config;
3458
3673
  export type ConfigUpdateInput = {
3459
3674
  readonly payload: {
@@ -9607,6 +9822,7 @@ export type TuiSelectSessionInput = {
9607
9822
  readonly payload: unknown;
9608
9823
  };
9609
9824
  export type TuiSelectSessionOutput = TuiBooleanResult;
9825
+ export type TuiConfigOutput = TuiConfig;
9610
9826
  export type TuiControlNextOutput = TuiControlRequest;
9611
9827
  export type TuiControlResponseInput = {
9612
9828
  readonly payload: unknown;
package/dist/server.d.ts CHANGED
@@ -762,6 +762,26 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
762
762
  readonly directory?: string;
763
763
  readonly workspace?: string;
764
764
  }, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").UserSession>>;
765
+ profile: {
766
+ clear: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileDeleted>>;
767
+ clearHabits: (input?: (import("./httpapi/client.js").ProfileClearHabitsInput & {
768
+ readonly directory?: string;
769
+ readonly workspace?: string;
770
+ }) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileDeleted>>;
771
+ get: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileInfoOrNull>>;
772
+ habits: (input?: (import("./httpapi/client.js").ProfileHabitsInput & {
773
+ readonly directory?: string;
774
+ readonly workspace?: string;
775
+ }) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileHabits>>;
776
+ patch: (input: import("./httpapi/client.js").ProfilePatchInput & {
777
+ readonly directory?: string;
778
+ readonly workspace?: string;
779
+ }, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfileInfo>>;
780
+ preview: (input?: (import("./httpapi/client.js").ProfilePreviewInput & {
781
+ readonly directory?: string;
782
+ readonly workspace?: string;
783
+ }) | undefined, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProfilePreview>>;
784
+ };
765
785
  project: {
766
786
  current: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").Project>>;
767
787
  list: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ProjectListOutput>>;
@@ -1030,6 +1050,7 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
1030
1050
  readonly workspace?: string;
1031
1051
  }, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<boolean>>;
1032
1052
  clearPrompt: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<boolean>>;
1053
+ config: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").TuiConfig>>;
1033
1054
  control: {
1034
1055
  next: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").TuiControlRequest>>;
1035
1056
  response: (input: import("./httpapi/client.js").TuiControlResponseInput & {
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.284.0",
4
+ "version": "1.285.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {