@botharness/core 1.4.1 → 1.5.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.
package/dist/index.d.mts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { ToolCallKind, ToolCallView, ToolExecution } from "@deepseek-ai/dsh-tools";
2
2
  import { parseArgs } from "node:util";
3
3
  import { DatabaseSync } from "node:sqlite";
4
- import { IncomingMessage } from "node:http";
5
- import { Duplex } from "node:stream";
6
4
  import { BlockAssembler, ContextFormed, ToolCallId } from "@deepseek-ai/dsh-llm";
7
5
  import { Session, SessionId } from "@deepseek-ai/dsh-session";
8
6
  import { Scoped } from "@deepseek-ai/dsh-scope";
@@ -1428,7 +1426,7 @@ interface ImCommandServices {
1428
1426
  compact(botSlug: string): Promise<ManualCompactionResult>;
1429
1427
  }
1430
1428
  //#endregion
1431
- //#region node_modules/.pnpm/@deepseek-ai+dsh-brand@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-brand/lib/types/index.d.ts
1429
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-brand@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-brand/lib/types/index.d.ts
1432
1430
  /**
1433
1431
  * Duplicate-install-safe nominal primitive helpers.
1434
1432
  *
@@ -1448,7 +1446,7 @@ type Branded<B extends string> = string & {
1448
1446
  readonly [BRAND$1]: B;
1449
1447
  };
1450
1448
  //#endregion
1451
- //#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-credentials/lib/types/types.d.ts
1449
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-credentials/lib/types/types.d.ts
1452
1450
  /** Nominal reference to one credential: a POSIX-style environment-variable name. */
1453
1451
  type CredentialRef = Branded<'CredentialRef'>;
1454
1452
  /**
@@ -1532,7 +1530,7 @@ declare module '@deepseek-ai/cordis' {
1532
1530
  }
1533
1531
  }
1534
1532
  //#endregion
1535
- //#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-credentials/lib/types/index.d.ts
1533
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-credentials/lib/types/index.d.ts
1536
1534
  /** One resolved credential value and the source layer that supplied it. */
1537
1535
  interface ResolvedCredential {
1538
1536
  /** The non-empty secret value. */
@@ -1815,6 +1813,20 @@ type MemoryCloneResult = {
1815
1813
  ok: false;
1816
1814
  code: MemoryCloneFailureCode;
1817
1815
  };
1816
+ type MemoryRepositoryPreview = {
1817
+ ok: true;
1818
+ gitUrl: string;
1819
+ commit: string;
1820
+ httpsFallback?: HttpsFallback;
1821
+ } | {
1822
+ ok: false;
1823
+ code: MemoryCloneFailureCode;
1824
+ };
1825
+ declare function previewMemoryRepository(input: {
1826
+ url: string;
1827
+ timeoutMs?: number;
1828
+ log?: (message: string) => void;
1829
+ }): Promise<MemoryRepositoryPreview>;
1818
1830
  //#endregion
1819
1831
  //#region packages/core/src/memory/soul.d.ts
1820
1832
  interface StandingLimits {
@@ -2300,7 +2312,7 @@ type CreatePersonaBotResult = {
2300
2312
  httpsFallback?: HttpsFallback;
2301
2313
  } | {
2302
2314
  ok: false;
2303
- reason: 'invalid-slug' | 'duplicate' | 'invalid-input' | 'invalid-memory-dir' | 'git-not-found' | 'invalid-git-url' | 'git-clone-failed' | 'git-clone-timeout' | 'invalid-zip' | 'memory-unavailable';
2315
+ reason: 'invalid-slug' | 'duplicate' | 'invalid-input' | 'invalid-memory-dir' | 'git-not-found' | 'invalid-git-url' | 'git-clone-failed' | 'git-clone-timeout' | 'git-source-changed' | 'invalid-zip' | 'memory-unavailable';
2304
2316
  detail?: string;
2305
2317
  };
2306
2318
  interface PersonaBotPatch {
@@ -2359,6 +2371,7 @@ interface PersonaBotRegistryOptions {
2359
2371
  }) => void;
2360
2372
  now?: () => Date;
2361
2373
  onDisplayNameChanged?: () => void;
2374
+ onAvatarChanged?: () => void;
2362
2375
  onAppearanceImported?: (record: PersonaBotRecord) => void;
2363
2376
  initializeMemory?: (memoryDir: string) => MemoryRepositoryInitialization;
2364
2377
  cloneMemory?: (destination: string, url: string) => Promise<MemoryCloneResult>;
@@ -2373,11 +2386,12 @@ interface PersonaBotRegistry {
2373
2386
  create(input: CreatePersonaBotInput): CreatePersonaBotResult;
2374
2387
  createFromGit(input: Omit<CreatePersonaBotInput, 'memoryDir'> & {
2375
2388
  gitUrl: string;
2376
- }): Promise<CreatePersonaBotResult>;
2389
+ expectedCommit?: string;
2390
+ }, authorize?: () => void): Promise<CreatePersonaBotResult>;
2377
2391
  createFromFiles(input: Omit<CreatePersonaBotInput, 'memoryDir' | 'persona'> & {
2378
2392
  files: readonly ZipEntry[];
2379
2393
  history?: Buffer;
2380
- }): Promise<CreatePersonaBotResult>;
2394
+ }, authorize?: () => void): Promise<CreatePersonaBotResult>;
2381
2395
  get(slug: string): PersonaBotRecord | undefined;
2382
2396
  getHistorical(slug: string): PersonaBotRecord | undefined;
2383
2397
  listHistorical(): PersonaBotRecord[];
@@ -2850,6 +2864,12 @@ type ChannelAttachmentRef = AttachmentMetadata & ({
2850
2864
  hash: string;
2851
2865
  fileId?: never;
2852
2866
  });
2867
+ interface ChannelClearedAttachment {
2868
+ name: string;
2869
+ mime: string;
2870
+ size: number;
2871
+ clearedAt: string;
2872
+ }
2853
2873
  //#endregion
2854
2874
  //#region packages/core/src/workspaces/tool-approval-actor.d.ts
2855
2875
  interface ToolApprovalActor {
@@ -3067,7 +3087,7 @@ type SetRequired<M extends SchemaMode, R extends boolean> = M extends 'volatile'
3067
3087
  type Schema$1<S = any, T = S, Mode extends SchemaMode = 'plain'> = Schemastery<S, T, Mode>;
3068
3088
  declare const Schema$1: Schemastery.Static;
3069
3089
  //#endregion
3070
- //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_e9f51fa89178a79dc57b68af9c667895/node_modules/@deepseek-ai/dsh-attachment/lib/types/error.d.ts
3090
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_0c81c651464e4dd8c3d9c24e55379b9c/node_modules/@deepseek-ai/dsh-attachment/lib/types/error.d.ts
3071
3091
  declare const ATTACHMENT_ERROR_CODES: readonly ["TOO_MANY_IMAGES", "IMAGES_TOO_LARGE", "UNSUPPORTED_IMAGE_TYPE", "INVALID_IMAGE_BASE64", "INVALID_IMAGE", "IMAGE_TYPE_MISMATCH", "IMAGE_TOO_LARGE", "IMAGE_TOO_MANY_PIXELS", "IMAGE_DIMENSION_TOO_LARGE", "INVALID_FILE_BASE64", "INVALID_ATTACHMENT_REF", "ATTACHMENT_CORRUPT", "ATTACHMENT_WRITE_FAILED", "ATTACHMENT_NOT_FOUND", "ATTACHMENT_READ_FAILED", "ATTACHMENT_PROJECTION_UNSUPPORTED", "ATTACHMENT_FILES_UNSUPPORTED"];
3072
3092
  /** Stable attachment failure codes used for protocol error routing. */
3073
3093
  type AttachmentErrorCode = typeof ATTACHMENT_ERROR_CODES[number];
@@ -3091,7 +3111,7 @@ declare class AttachmentError extends Error {
3091
3111
  constructor(message: string, code: AttachmentErrorCode, options?: ErrorOptions);
3092
3112
  }
3093
3113
  //#endregion
3094
- //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_e9f51fa89178a79dc57b68af9c667895/node_modules/@deepseek-ai/dsh-attachment/lib/types/brand.d.ts
3114
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_0c81c651464e4dd8c3d9c24e55379b9c/node_modules/@deepseek-ai/dsh-attachment/lib/types/brand.d.ts
3095
3115
  /** Opaque content-addressed identifier for one immutable attachment object. */
3096
3116
  type AttachmentId = Branded<'AttachmentId'>;
3097
3117
  /**
@@ -3109,7 +3129,7 @@ type ImageVariantId = Branded<'ImageVariantId'>;
3109
3129
  */
3110
3130
  declare function ImageVariantId(value: string): ImageVariantId;
3111
3131
  //#endregion
3112
- //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_e9f51fa89178a79dc57b68af9c667895/node_modules/@deepseek-ai/dsh-attachment/lib/types/types.d.ts
3132
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_0c81c651464e4dd8c3d9c24e55379b9c/node_modules/@deepseek-ai/dsh-attachment/lib/types/types.d.ts
3113
3133
  /** Raster image formats accepted by the version-one attachment path. */
3114
3134
  type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
3115
3135
  /** Durable, serializable reference to one immutable normalized image. */
@@ -3253,7 +3273,7 @@ interface RequestImageAttachment {
3253
3273
  hasAlpha: boolean;
3254
3274
  }
3255
3275
  //#endregion
3256
- //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_e9f51fa89178a79dc57b68af9c667895/node_modules/@deepseek-ai/dsh-attachment/lib/types/index.d.ts
3276
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-brand_0c81c651464e4dd8c3d9c24e55379b9c/node_modules/@deepseek-ai/dsh-attachment/lib/types/index.d.ts
3257
3277
  declare module '@deepseek-ai/cordis' {
3258
3278
  interface Context {
3259
3279
  attachments: AttachmentStore$1;
@@ -3374,7 +3394,7 @@ declare abstract class AttachmentStore$1 extends Service {
3374
3394
  readImageRequest(ref: ImageAttachmentRef, target: ImageRequestTarget, signal?: AbortSignal): Promise<RequestImageAttachment>;
3375
3395
  }
3376
3396
  //#endregion
3377
- //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/brand.d.ts
3397
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/brand.d.ts
3378
3398
  /** Stable identity carried by one message across inbox, log, and model-request boundaries. */
3379
3399
  type MessageId = Branded<'MessageId'>;
3380
3400
  /**
@@ -3395,7 +3415,7 @@ type ToolCallId$1 = Branded<'ToolCallId'>;
3395
3415
  */
3396
3416
  declare function ToolCallId$1(id: string): ToolCallId$1;
3397
3417
  //#endregion
3398
- //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts
3418
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts
3399
3419
  /** Provider/model identity and adapter-private replay data for an assistant message. */
3400
3420
  interface AssistantProviderMetadata {
3401
3421
  /** Provider route that produced the message. */
@@ -3455,7 +3475,7 @@ interface UserMessage extends MessageBase {
3455
3475
  readonly role: 'user';
3456
3476
  }
3457
3477
  //#endregion
3458
- //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts
3478
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts
3459
3479
  declare module '@deepseek-ai/cordis' {
3460
3480
  interface Events {
3461
3481
  /**
@@ -3562,7 +3582,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
3562
3582
  }
3563
3583
  }
3564
3584
  //#endregion
3565
- //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/owned-value.d.ts
3585
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/owned-value.d.ts
3566
3586
  /** Generic invocation-owned values returned by synchronous Client Context resolvers. */
3567
3587
  /** Shared identity across independently bundled Context providers and Gateway. */
3568
3588
  declare const TYPERT_OWNED_VALUE: unique symbol;
@@ -3572,7 +3592,7 @@ interface TypertOwnedValue<Value> extends Disposable {
3572
3592
  readonly value: Value;
3573
3593
  }
3574
3594
  //#endregion
3575
- //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/types.d.ts
3595
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/types.d.ts
3576
3596
  declare const LOOKUP_HOST: unique symbol;
3577
3597
  declare const LOOKUP_WIRE: unique symbol;
3578
3598
  declare const CONTEXT_WIRE: unique symbol;
@@ -4075,7 +4095,7 @@ declare module '@deepseek-ai/cordis' {
4075
4095
  }
4076
4096
  }
4077
4097
  //#endregion
4078
- //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.d.ts
4098
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.d.ts
4079
4099
  /** Options for an explicit Service-to-Gateway binding. */
4080
4100
  interface TypertGatewayBindingOptions {
4081
4101
  /** Wire namespace; defaults to the Cordis service key. */
@@ -4100,14 +4120,14 @@ declare abstract class TypertRemoteService<out T = never> extends Service<T> {
4100
4120
  protected constructor(ctx: Context, serviceKey: string, options?: TypertGatewayBindingOptions);
4101
4121
  }
4102
4122
  //#endregion
4103
- //#region node_modules/.pnpm/@deepseek-ai+dsh-util-values@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-util-values/lib/types/index.d.ts
4123
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-util-values@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-util-values/lib/types/index.d.ts
4104
4124
  /** Duplicate-install-safe JSON and immutable-value helpers. @module @deepseek-ai/dsh-util-values */
4105
4125
  /** A value that round-trips through JSON without loss. */
4106
4126
  type JsonValue = null | boolean | number | string | JsonValue[] | {
4107
4127
  [key: string]: JsonValue;
4108
4128
  };
4109
4129
  //#endregion
4110
- //#region node_modules/.pnpm/@deepseek-ai+dsh-session@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-scope@0._f72072f8db4331da4f9afb922400d5de/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts
4130
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-session@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-scope@0._bda3f588c471e2856bac008b536eda6e/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts
4111
4131
  /** Identifies one session in the store (and its persistence artifacts). */
4112
4132
  type SessionId$1 = Branded<'SessionId'>;
4113
4133
  /**
@@ -4129,7 +4149,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
4129
4149
  }
4130
4150
  }
4131
4151
  //#endregion
4132
- //#region node_modules/.pnpm/@deepseek-ai+dsh-agent@0.2.1-rc.2_ba922ad4037e40def714bb7e19d35103/node_modules/@deepseek-ai/dsh-agent/lib/types/types.d.ts
4152
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-agent@0.2.1-rc.3_02d0f40b432df75e85918e266882ca13/node_modules/@deepseek-ai/dsh-agent/lib/types/types.d.ts
4133
4153
  /** Public live-agent handle; the runtime face augments its live capabilities. */
4134
4154
  interface Agent$1 {
4135
4155
  /** Session-backed Agent identity. */
@@ -4194,7 +4214,7 @@ declare module '@deepseek-ai/dsh-session/types' {
4194
4214
  }
4195
4215
  }
4196
4216
  //#endregion
4197
- //#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-ag_96ddff33515666313dfdfd15c9e8b935/node_modules/@deepseek-ai/dsh-user-approval/lib/types/types.d.ts
4217
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-ag_78a518bdc67249c42c551c387e98e6e3/node_modules/@deepseek-ai/dsh-user-approval/lib/types/types.d.ts
4198
4218
  /**
4199
4219
  * Pairs one `approval/asked` audit event with its `approval/decided`.
4200
4220
  * Service-issued (one fresh id per {@link ApprovalService.request} call).
@@ -4269,7 +4289,7 @@ declare module '@deepseek-ai/cordis' {
4269
4289
  }
4270
4290
  }
4271
4291
  //#endregion
4272
- //#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-ag_96ddff33515666313dfdfd15c9e8b935/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.d.ts
4292
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-ag_78a518bdc67249c42c551c387e98e6e3/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.d.ts
4273
4293
  declare module '@deepseek-ai/dsh-llm' {
4274
4294
  interface MessageSourceMap {
4275
4295
  'user-approval': {
@@ -4775,6 +4795,7 @@ interface ToolApprovalRuleStore {
4775
4795
  list(botSlug: string): ToolApprovalRule[];
4776
4796
  match(input: Pick<ToolApprovalRule, 'botSlug' | 'role' | 'scopeKey' | 'toolName' | 'input'> & {
4777
4797
  externalDecision?: 'operation' | 'web-only' | 'each-use';
4798
+ explicitOnly?: boolean;
4778
4799
  }): ToolApprovalRule | undefined;
4779
4800
  createPending(input: Pick<ToolApprovalRule, 'botSlug' | 'role' | 'scopeKey' | 'kind' | 'toolName' | 'input' | 'externalCreator'>): ToolApprovalRule;
4780
4801
  activate(botSlug: string, id: string): void;
@@ -4905,7 +4926,8 @@ declare class ChannelToolApproval {
4905
4926
  warn(message: string): void;
4906
4927
  }, beginWait?: (sessionId: string, callId: string, signal: AbortSignal) => AssignmentApprovalWaitLease | undefined, askChannel?: (sessionId: string) => string | undefined, autoApproval?: ToolAutoApproval, fullAccess?: (sessionId: string) => boolean);
4907
4928
  track(execution: ToolExecution, externalDecision?: 'operation' | 'web-only' | 'each-use', rememberable?: boolean, device?: 'computer' | 'browser', botCreatePreview?: BotCreatePreview, options?: {
4908
- requireHumanReview?: boolean;
4929
+ requireExplicitApproval?: boolean;
4930
+ authorizationScope?: () => string;
4909
4931
  }): (() => void) | undefined;
4910
4932
  ask(request: {
4911
4933
  agent: Agent;
@@ -4915,6 +4937,8 @@ declare class ChannelToolApproval {
4915
4937
  }): Promise<ApprovalOutcome | undefined>;
4916
4938
  executionGuard(agent: Agent, callId: string): ((name: string, args: unknown) => boolean) | undefined;
4917
4939
  validAfterDecision(agent: Agent, callId: string): boolean;
4940
+ approvedExecutionGuard(agent: Agent, callId: string): ((name: string, args: unknown) => boolean) | undefined;
4941
+ usesStandingRule(agent: Agent, callId: string): boolean;
4918
4942
  cancelInvalid(): void;
4919
4943
  subscribe(listener: (notice: ToolApprovalNotice, status: 'pending' | ApprovalOutcome) => void): () => void;
4920
4944
  remembered(agent: Agent, callId: string): boolean;
@@ -4946,10 +4970,11 @@ declare class ChannelToolApproval {
4946
4970
  cwd: string;
4947
4971
  toolName: string;
4948
4972
  input: string;
4973
+ allOpaque: boolean;
4949
4974
  } | undefined;
4950
4975
  }
4951
4976
  //#endregion
4952
- //#region node_modules/.pnpm/@deepseek-ai+dsh-user-questions@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-a_a1e5f733835929918a8013be850961a8/node_modules/@deepseek-ai/dsh-user-questions/lib/types/types.d.ts
4977
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-user-questions@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-a_a0f21ca1f1fe3bd0d063c70d3543ac74/node_modules/@deepseek-ai/dsh-user-questions/lib/types/types.d.ts
4953
4978
  /** One selectable answer offered to the user. */
4954
4979
  interface AskUserQuestionOption {
4955
4980
  /** User-facing label. */
@@ -9284,6 +9309,7 @@ interface ChannelMessage {
9284
9309
  privateInputRequest?: PrivateInputCard;
9285
9310
  privateInputResolution?: PrivateInputResolution;
9286
9311
  attachments?: ChannelAttachmentRef[];
9312
+ clearedAttachments?: ChannelClearedAttachment[];
9287
9313
  bridgeMedia?: {
9288
9314
  voice?: Pick<MessagingVoice, 'transcript' | 'durationMs'>;
9289
9315
  items: {
@@ -10815,12 +10841,183 @@ interface BotCreationResult {
10815
10841
  record: PersonaBotRecord;
10816
10842
  channelId: string;
10817
10843
  receipt?: BotCreationReceipt;
10844
+ httpsFallback?: HttpsFallback;
10845
+ }
10846
+ interface BotImportInput {
10847
+ displayName: string;
10848
+ description?: string;
10849
+ roles?: string[];
10850
+ source: {
10851
+ kind: 'git';
10852
+ gitUrl: string;
10853
+ commit: string;
10854
+ } | {
10855
+ kind: 'archive';
10856
+ sha256: string;
10857
+ files: readonly ZipEntry[];
10858
+ history?: Buffer;
10859
+ };
10818
10860
  }
10861
+ type BotImportReference = Omit<BotImportInput, 'source'> & {
10862
+ source: {
10863
+ kind: 'git';
10864
+ gitUrl: string;
10865
+ commit: string;
10866
+ } | {
10867
+ kind: 'archive';
10868
+ sha256: string;
10869
+ };
10870
+ };
10819
10871
  interface BotCreationService {
10820
10872
  create(input: BotCreationInput, operationKey?: string): BotCreationResult;
10821
10873
  lookup(operationKey: string, input: BotCreationInput): BotCreationReceipt | undefined;
10874
+ lookupImport(operationKey: string, input: BotImportReference): BotCreationReceipt | undefined;
10875
+ importBot(input: BotImportInput, operationKey: string, authorize?: () => void): Promise<BotCreationResult>;
10876
+ }
10877
+ //#endregion
10878
+ //#region packages/core/src/bots/zip-upload.d.ts
10879
+ interface BotZipUploadIdentity {
10880
+ uploadKey: string;
10881
+ sha256: string;
10882
+ sizeBytes: number;
10883
+ }
10884
+ interface BotZipUploadStatus extends BotZipUploadIdentity {
10885
+ offset: number;
10886
+ chunkBytes: number;
10887
+ expiresAt: number;
10888
+ }
10889
+ interface BotZipUploads {
10890
+ begin(input: BotZipUploadIdentity): BotZipUploadStatus;
10891
+ chunk(input: BotZipUploadIdentity & {
10892
+ offset: number;
10893
+ dataBase64: string;
10894
+ }): BotZipUploadStatus;
10895
+ read(input: BotZipUploadIdentity): Buffer;
10822
10896
  }
10823
10897
  //#endregion
10898
+ //#region packages/core/src/marketplace/language.d.ts
10899
+ declare const MARKETPLACE_LANGUAGES: readonly ['zh', 'en'];
10900
+ type MarketplaceLanguage = (typeof MARKETPLACE_LANGUAGES)[number];
10901
+ //#endregion
10902
+ //#region packages/core/src/marketplace/descriptor.d.ts
10903
+ type BotDescriptorAvatar = {
10904
+ recipe: Record<string, unknown>;
10905
+ } | {
10906
+ image: string;
10907
+ };
10908
+ type BotDescriptorBanner = {
10909
+ recipe: {
10910
+ scene: string;
10911
+ seed: number;
10912
+ };
10913
+ } | {
10914
+ image: string;
10915
+ };
10916
+ type BotDescriptorPrimaryColor = {
10917
+ mode: 'automatic';
10918
+ fallback?: string;
10919
+ } | {
10920
+ mode: 'custom';
10921
+ color: string;
10922
+ fallback?: string;
10923
+ };
10924
+ interface BotDescriptorLocalization {
10925
+ name?: string;
10926
+ bio?: string;
10927
+ }
10928
+ interface BotDescriptor {
10929
+ name?: string;
10930
+ tags?: string[];
10931
+ bio?: string;
10932
+ avatar?: BotDescriptorAvatar;
10933
+ banner?: BotDescriptorBanner;
10934
+ primaryColor?: BotDescriptorPrimaryColor;
10935
+ i18n?: Partial<Record<MarketplaceLanguage, BotDescriptorLocalization>>;
10936
+ }
10937
+ //#endregion
10938
+ //#region packages/core/src/bots/imports.d.ts
10939
+ declare function createBotImports(creations: BotCreationService, options?: {
10940
+ previewGit?: typeof previewMemoryRepository;
10941
+ log?: (message: string) => void;
10942
+ }): {
10943
+ previewGit: (gitUrl: string) => Promise<{
10944
+ source: {
10945
+ kind: 'git';
10946
+ gitUrl: string;
10947
+ commit: string;
10948
+ httpsFallback?: HttpsFallback;
10949
+ };
10950
+ }>;
10951
+ previewArchive: (archive: Buffer) => {
10952
+ source: {
10953
+ kind: 'archive';
10954
+ sha256: string;
10955
+ };
10956
+ descriptor?: BotDescriptor;
10957
+ files: {
10958
+ path: string;
10959
+ size: number;
10960
+ }[];
10961
+ history: boolean;
10962
+ };
10963
+ gitInput: (input: {
10964
+ gitUrl: string;
10965
+ expectedCommit: string;
10966
+ displayName: string;
10967
+ description?: string;
10968
+ roles?: string[];
10969
+ }) => BotImportInput;
10970
+ archiveInput: (archive: Buffer, input: {
10971
+ expectedArchive: string;
10972
+ displayName?: string;
10973
+ description?: string;
10974
+ roles?: string[];
10975
+ }) => BotImportInput;
10976
+ lookup: (key: string, input: BotImportReference) => BotCreationReceipt | undefined;
10977
+ create: (key: string, input: BotImportInput, authorize?: () => void) => Promise<BotCreationResult>;
10978
+ };
10979
+ type BotImportsService = ReturnType<typeof createBotImports>;
10980
+ //#endregion
10981
+ //#region packages/core/src/bots/zip-import.d.ts
10982
+ interface BotZipImportReference {
10983
+ operationKey: string;
10984
+ sha256: string;
10985
+ displayName: string;
10986
+ description?: string;
10987
+ roles?: string[];
10988
+ }
10989
+ interface BotZipImportInput extends BotZipImportReference, BotZipUploadIdentity {}
10990
+ interface BotZipPreview {
10991
+ source: {
10992
+ kind: 'archive';
10993
+ sha256: string;
10994
+ };
10995
+ descriptor: {
10996
+ displayName: string;
10997
+ description?: string;
10998
+ roles?: string[];
10999
+ };
11000
+ fileCount: number;
11001
+ expandedBytes: number;
11002
+ history: boolean;
11003
+ }
11004
+ declare function createBotZipImport(options: {
11005
+ uploads: BotZipUploads;
11006
+ imports: BotImportsService;
11007
+ registry: PersonaBotRegistry;
11008
+ log?: (event: Record<string, string | number>) => void;
11009
+ }): {
11010
+ begin: (input: BotZipUploadIdentity) => BotZipUploadStatus;
11011
+ chunk(input: BotZipUploadIdentity & {
11012
+ offset: number;
11013
+ dataBase64: string;
11014
+ }): BotZipUploadStatus;
11015
+ preview(input: BotZipUploadIdentity): BotZipPreview;
11016
+ lookup(input: BotZipImportReference): BotCreationReceipt | undefined;
11017
+ create(input: BotZipImportInput, authorize?: () => void): Promise<BotCreationResult>;
11018
+ };
11019
+ type BotZipImportService = ReturnType<typeof createBotZipImport>;
11020
+ //#endregion
10824
11021
  //#region packages/core/src/workspaces/grants.d.ts
10825
11022
  interface WorkspaceGrant {
10826
11023
  id: string;
@@ -11058,6 +11255,38 @@ interface PurgePreview {
11058
11255
  tracking: 'recorded' | 'possible' | 'unavailable';
11059
11256
  }[];
11060
11257
  }
11258
+ type TextCleanupKeptReason = 'bot-working' | 'delivery-pending' | 'shared';
11259
+ interface TextCleanupScope {
11260
+ before: string;
11261
+ channelIds?: readonly string[] | undefined;
11262
+ }
11263
+ interface TextCleanupPreview {
11264
+ token: string;
11265
+ expiresAt: string;
11266
+ scope: {
11267
+ before: string;
11268
+ channelIds: string[];
11269
+ };
11270
+ messages: number;
11271
+ bytes: number;
11272
+ files: number;
11273
+ chats: {
11274
+ channelId: string;
11275
+ name: string;
11276
+ messages: number;
11277
+ }[];
11278
+ kept: {
11279
+ reason: TextCleanupKeptReason;
11280
+ messages: number;
11281
+ }[];
11282
+ memoryReferences: number;
11283
+ more: boolean;
11284
+ }
11285
+ interface TextCleanupResult {
11286
+ messages: number;
11287
+ freedBytes: number;
11288
+ cleanupPending?: number;
11289
+ }
11061
11290
  interface ContentPurge {
11062
11291
  redactions(): PurgedPlacement[];
11063
11292
  history(): ChannelHistoryItem[];
@@ -11070,6 +11299,8 @@ interface ContentPurge {
11070
11299
  accepted: number;
11071
11300
  cleanupPending?: number;
11072
11301
  };
11302
+ textPreview(scope: TextCleanupScope): TextCleanupPreview;
11303
+ textConfirm(scope: TextCleanupScope, token: string): TextCleanupResult;
11073
11304
  checkpoint(): PurgeCheckpoint;
11074
11305
  withCheckpoint<T>(exportSnapshot: (checkpoint: PurgeCheckpoint) => T): T;
11075
11306
  close(): void;
@@ -12662,9 +12893,6 @@ export declare function createDshBotAgentAdapter(options: DshBotAgentAdapterOpti
12662
12893
  acceptAssistantStream(sessionId: string, frame: AssistantStreamFrame): void;
12663
12894
  };
12664
12895
  //#endregion
12665
- //#region packages/core/src/devices/mount.d.ts
12666
- type DeviceWebUpgrade = (request: IncomingMessage, socket: Duplex, head: Buffer) => void;
12667
- //#endregion
12668
12896
  //#region packages/core/src/bots/deletion.d.ts
12669
12897
  interface MemoryOwnership {
12670
12898
  path: string;
@@ -12821,7 +13049,7 @@ interface ChannelLiveHub {
12821
13049
  close(): void;
12822
13050
  }
12823
13051
  //#endregion
12824
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/backend.d.ts
13052
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/backend.d.ts
12825
13053
  /**
12826
13054
  * One registered backend. A backend owns exactly one medium and shares its
12827
13055
  * lifecycle across all facets; facets are optional members — a backend that
@@ -12944,7 +13172,7 @@ interface KvUnit {
12944
13172
  close(): Promise<void>;
12945
13173
  }
12946
13174
  //#endregion
12947
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/registry.d.ts
13175
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/registry.d.ts
12948
13176
  /**
12949
13177
  * Mutable name → backend table. Multiple backends stay mounted side by side;
12950
13178
  * which backend serves which consumer is the consumer's configuration
@@ -12974,7 +13202,7 @@ declare class BackendRegistry {
12974
13202
  names(): string[];
12975
13203
  }
12976
13204
  //#endregion
12977
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/index.d.ts
13205
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/index.d.ts
12978
13206
  declare module '@deepseek-ai/cordis' {
12979
13207
  interface Context {
12980
13208
  storage: Storage;
@@ -13015,7 +13243,7 @@ declare class Storage extends Service {
13015
13243
  } ? D : never;
13016
13244
  }
13017
13245
  //#endregion
13018
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_c675f68f4f380b0e74182f41253ae401/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/spec.d.ts
13246
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/spec.d.ts
13019
13247
  /** Global singleton declaration: schema plus the value used before the first write. */
13020
13248
  interface DomainGlobalSpec<G> {
13021
13249
  /** Validates the stored global at the durable boundary. */
@@ -13078,7 +13306,7 @@ type TableKeyOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables']
13078
13306
  /** Value type of one declared table. */
13079
13307
  type TableValueOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables'][N] extends DomainTableSpec<string, infer V> ? V : never;
13080
13308
  //#endregion
13081
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_c675f68f4f380b0e74182f41253ae401/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/domain.d.ts
13309
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/domain.d.ts
13082
13310
  /** Handle on a domain's global singleton. */
13083
13311
  interface DomainGlobal<G> {
13084
13312
  /**
@@ -13232,7 +13460,7 @@ declare class DomainImpl {
13232
13460
  private assertReadable;
13233
13461
  }
13234
13462
  //#endregion
13235
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_c675f68f4f380b0e74182f41253ae401/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/events.d.ts
13463
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/events.d.ts
13236
13464
  /**
13237
13465
  * Change-event vocabulary of the domain data form. Every durable write emits
13238
13466
  * one event after the backend resolves durability, carrying the new snapshot
@@ -13277,7 +13505,7 @@ declare module '@deepseek-ai/cordis' {
13277
13505
  }
13278
13506
  }
13279
13507
  //#endregion
13280
- //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.2_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_c675f68f4f380b0e74182f41253ae401/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/index.d.ts
13508
+ //#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/index.d.ts
13281
13509
  declare module '@deepseek-ai/dsh-storage' {
13282
13510
  interface StorageForms {
13283
13511
  domain: DomainFacility;
@@ -13540,6 +13768,7 @@ interface HumanAttentionItem {
13540
13768
  }
13541
13769
  interface HumanAttentionPage {
13542
13770
  queryVersion?: 1;
13771
+ notificationVersion?: 1;
13543
13772
  items: HumanAttentionItem[];
13544
13773
  nextCursor?: string;
13545
13774
  }
@@ -13558,6 +13787,7 @@ interface HumanAttentionQuery {
13558
13787
  itemId?: string;
13559
13788
  includeDismissed?: boolean;
13560
13789
  snoozed?: boolean;
13790
+ dismissed?: boolean;
13561
13791
  category?: HumanAttentionCategory;
13562
13792
  kind?: HumanAttentionItem['kind'];
13563
13793
  sort?: HumanAttentionSort;
@@ -13573,7 +13803,10 @@ interface HumanAttentionQuery {
13573
13803
  channelId: string;
13574
13804
  unreadCount: number;
13575
13805
  }>;
13576
- dmReplies(limit: number): HumanAttentionItem[];
13806
+ dmReplies(limit: number, before?: {
13807
+ createdAt: string;
13808
+ sourceEventId: string;
13809
+ }): HumanAttentionItem[];
13577
13810
  durableAttention(): Array<{
13578
13811
  botSlug: string;
13579
13812
  waitingHumanCount: number;
@@ -13593,6 +13826,7 @@ interface HumanAttentionQuery {
13593
13826
  }
13594
13827
  interface HumanAttentionDecisions {
13595
13828
  dismiss(item: HumanAttentionItem): boolean;
13829
+ restore(item: HumanAttentionItem): boolean;
13596
13830
  snooze(item: HumanAttentionItem, until: string | null): boolean;
13597
13831
  ignoreAssignmentReport(sourceEventId: string): boolean;
13598
13832
  }
@@ -13736,12 +13970,12 @@ interface BotHarnessConfig {
13736
13970
  export declare const DEFAULT_CONFIG: BotHarnessConfig;
13737
13971
  export declare const Config: Schema$1<BotHarnessConfig>;
13738
13972
  interface BotHarnessCore {
13739
- deviceWebUpgrade?: DeviceWebUpgrade;
13740
13973
  profileRecovery: ProfileRecovery;
13741
13974
  rootDir: string;
13742
13975
  onboarding: BotOnboarding;
13743
13976
  tob: TobService;
13744
13977
  creations: BotCreationService;
13978
+ zipImports: BotZipImportService;
13745
13979
  channelManagement: ChannelManagementService;
13746
13980
  partLibrary: PartLibrary;
13747
13981
  operationalDatabase: OperationalDatabaseOwner;
@@ -14138,6 +14372,76 @@ interface TurnTrace {
14138
14372
  readonly noToolCalls: boolean;
14139
14373
  }
14140
14374
  //#endregion
14375
+ //#region packages/core/src/storage/media-cleanup.d.ts
14376
+ declare const STORAGE_MEDIA_KINDS: readonly ['image', 'video', 'audio', 'file'];
14377
+ type StorageMediaKind = (typeof STORAGE_MEDIA_KINDS)[number];
14378
+ interface StorageMediaTotal {
14379
+ kind: StorageMediaKind;
14380
+ count: number;
14381
+ bytes: number;
14382
+ }
14383
+ interface StorageChatUsage {
14384
+ channelId: string;
14385
+ name: string;
14386
+ type: ChannelRecord['type'];
14387
+ deleted?: true;
14388
+ messages: number;
14389
+ oldestAt?: string;
14390
+ mediaBytes: number;
14391
+ media: StorageMediaTotal[];
14392
+ }
14393
+ interface StorageUsage {
14394
+ measuredAt: string;
14395
+ totalBytes: number;
14396
+ parts: {
14397
+ kind: 'media' | 'messages' | 'memory' | 'other';
14398
+ bytes: number;
14399
+ }[];
14400
+ chats: StorageChatUsage[];
14401
+ }
14402
+ interface MediaCleanupScope {
14403
+ before: string;
14404
+ channelIds?: string[] | undefined;
14405
+ kinds?: StorageMediaKind[] | undefined;
14406
+ }
14407
+ interface CleanupScope {
14408
+ before: string;
14409
+ channelIds: string[];
14410
+ kinds: StorageMediaKind[];
14411
+ }
14412
+ interface MediaCleanupPreview {
14413
+ token: string;
14414
+ expiresAt: string;
14415
+ scope: CleanupScope;
14416
+ messages: number;
14417
+ files: number;
14418
+ bytes: number;
14419
+ freedBytes: number;
14420
+ kinds: StorageMediaTotal[];
14421
+ chats: {
14422
+ channelId: string;
14423
+ name: string;
14424
+ files: number;
14425
+ bytes: number;
14426
+ }[];
14427
+ kept: {
14428
+ reason: 'bot-working' | 'delivery-pending' | 'memory' | 'migration';
14429
+ files: number;
14430
+ }[];
14431
+ }
14432
+ interface MediaCleanupResult {
14433
+ messages: number;
14434
+ files: number;
14435
+ freedBytes: number;
14436
+ removedFiles: number;
14437
+ pendingFiles: number;
14438
+ }
14439
+ interface StorageCleanup {
14440
+ usage(): StorageUsage;
14441
+ preview(scope: MediaCleanupScope): MediaCleanupPreview;
14442
+ confirm(scope: MediaCleanupScope, token: string): MediaCleanupResult;
14443
+ }
14444
+ //#endregion
14141
14445
  //#region packages/core/src/marketplace/altcha.d.ts
14142
14446
  declare const ALTCHA_ALGORITHM = "SHA-256";
14143
14447
  interface AltchaChallenge {
@@ -14162,10 +14466,12 @@ interface MarketplaceEntry {
14162
14466
  displayName: string | null;
14163
14467
  roles: string[];
14164
14468
  description: string | null;
14469
+ descriptionGenerated: boolean;
14165
14470
  banner: MarketplaceBanner | null;
14166
14471
  topics: string[];
14167
14472
  stars: number;
14168
14473
  pushedAt: string;
14474
+ createdAt?: string;
14169
14475
  htmlUrl: string;
14170
14476
  cloneUrl: string;
14171
14477
  defaultBranch: string;
@@ -14178,12 +14484,13 @@ interface MarketplacePage {
14178
14484
  bots: MarketplaceEntry[];
14179
14485
  nextCursor?: string;
14180
14486
  }
14181
- type MarketplaceSort = 'updated' | 'stars';
14487
+ type MarketplaceSort = 'updated' | 'created' | 'stars';
14182
14488
  interface MarketplaceQuery {
14183
14489
  cursor?: string;
14184
14490
  sort?: MarketplaceSort;
14185
14491
  q?: string;
14186
14492
  topic?: string;
14493
+ lang?: MarketplaceLanguage;
14187
14494
  }
14188
14495
  interface MarketplaceTopic {
14189
14496
  topic: string;
@@ -14192,6 +14499,7 @@ interface MarketplaceTopic {
14192
14499
  interface MarketplaceDetail {
14193
14500
  bot: MarketplaceEntry;
14194
14501
  readme: string | null;
14502
+ readmeLanguage: MarketplaceLanguage | null;
14195
14503
  commitSha: string | null;
14196
14504
  }
14197
14505
  type MarketplaceResult<T> = {
@@ -14204,7 +14512,7 @@ type MarketplaceResult<T> = {
14204
14512
  interface MarketplaceClient {
14205
14513
  list(query: MarketplaceQuery): Promise<MarketplaceResult<MarketplacePage>>;
14206
14514
  topics(): Promise<MarketplaceResult<MarketplaceTopic[]>>;
14207
- detail(id: string): Promise<MarketplaceResult<MarketplaceDetail>>;
14515
+ detail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceResult<MarketplaceDetail>>;
14208
14516
  challenge(): Promise<MarketplaceResult<AltchaChallenge>>;
14209
14517
  submit(url: string, altcha: string): Promise<MarketplaceResult<{
14210
14518
  bot: MarketplaceEntry;
@@ -14313,6 +14621,7 @@ type ReleaseInstall = {
14313
14621
  current: string;
14314
14622
  installed: string;
14315
14623
  restartable: boolean;
14624
+ applied: boolean;
14316
14625
  } | {
14317
14626
  status: 'failed';
14318
14627
  reason: ReleaseInstallFailure;
@@ -14332,6 +14641,70 @@ interface ReleaseService {
14332
14641
  restart(beforeEffect?: (pendingVersion: string) => void): Promise<ReleaseRestart>;
14333
14642
  }
14334
14643
  //#endregion
14644
+ //#region packages/core/src/release/plugins.d.ts
14645
+ type PluginUpdate = {
14646
+ name: string;
14647
+ status: 'development';
14648
+ current: string;
14649
+ } | {
14650
+ name: string;
14651
+ status: 'unavailable';
14652
+ current: string;
14653
+ } | {
14654
+ name: string;
14655
+ status: 'current';
14656
+ current: string;
14657
+ latest: string;
14658
+ } | {
14659
+ name: string;
14660
+ status: 'blocked';
14661
+ current: string;
14662
+ latest: string;
14663
+ compatibility: ReleaseCompatibility;
14664
+ } | {
14665
+ name: string;
14666
+ status: 'available';
14667
+ current: string;
14668
+ latest: string;
14669
+ compatibility: ReleaseCompatibility;
14670
+ } | {
14671
+ name: string;
14672
+ status: 'restart-required';
14673
+ current: string;
14674
+ installed: string;
14675
+ };
14676
+ interface PluginUpdates {
14677
+ installable: boolean;
14678
+ restartable: boolean;
14679
+ plugins: PluginUpdate[];
14680
+ }
14681
+ type PluginInstall = {
14682
+ status: 'installed';
14683
+ name: string;
14684
+ current: string;
14685
+ installed: string;
14686
+ restartable: boolean;
14687
+ applied: boolean;
14688
+ } | {
14689
+ status: 'failed';
14690
+ name: string;
14691
+ reason: ReleaseInstallFailure | 'unknown-plugin';
14692
+ diagnostic?: string;
14693
+ logPath?: string;
14694
+ };
14695
+ type PluginRestart = {
14696
+ status: 'restarting';
14697
+ plugins: string[];
14698
+ } | {
14699
+ status: 'failed';
14700
+ reason: 'unavailable' | 'not-pending';
14701
+ };
14702
+ interface PluginUpdateService {
14703
+ list(force?: boolean): Promise<PluginUpdates>;
14704
+ install(name: string, version: string, beforeEffect?: () => void): Promise<PluginInstall>;
14705
+ restart(beforeEffect?: (pending: string[]) => void): Promise<PluginRestart>;
14706
+ }
14707
+ //#endregion
14335
14708
  //#region packages/core/src/bots/banner-http.d.ts
14336
14709
  type BotBannerSummary = Extract<BotBanner, {
14337
14710
  recipe: unknown;
@@ -14390,6 +14763,38 @@ interface ChannelActivityToday {
14390
14763
  channels: ChannelActivityRow[];
14391
14764
  }
14392
14765
  //#endregion
14766
+ //#region packages/core/src/data-reset/reset.d.ts
14767
+ type DataResetTargetKind = 'data' | 'im-settings' | 'local-tools';
14768
+ type DataResetKeptKind = 'credentials' | 'memory' | 'exports';
14769
+ interface DataResetTarget {
14770
+ kind: DataResetTargetKind;
14771
+ path: string;
14772
+ bytes: number;
14773
+ files: number;
14774
+ partial?: boolean;
14775
+ }
14776
+ interface DataResetPreview {
14777
+ token: string;
14778
+ expiresAt: string;
14779
+ bots: number;
14780
+ targets: DataResetTarget[];
14781
+ kept: {
14782
+ kind: DataResetKeptKind;
14783
+ path: string;
14784
+ }[];
14785
+ restartable: boolean;
14786
+ }
14787
+ type DataResetResult = {
14788
+ status: 'restarting';
14789
+ } | {
14790
+ status: 'restart-required';
14791
+ reason: 'restart-unavailable';
14792
+ };
14793
+ interface DataReset {
14794
+ preview(): DataResetPreview;
14795
+ confirm(token: string): DataResetResult;
14796
+ }
14797
+ //#endregion
14393
14798
  //#region packages/core/src/models/readiness.d.ts
14394
14799
  interface ModelRouteRepair {
14395
14800
  code: 'legacy-ambiguous' | 'legacy-missing' | 'route-unavailable';
@@ -14406,6 +14811,24 @@ interface ModelRouteReadiness {
14406
14811
  prepare(slug: string, role: 'orchestrator' | 'assignment', retainedRoute?: ModelRoute): Promise<void>;
14407
14812
  }
14408
14813
  //#endregion
14814
+ //#region packages/core/src/workspaces/folder-browse.d.ts
14815
+ interface BrowsedFolder {
14816
+ name: string;
14817
+ path: string;
14818
+ hidden: boolean;
14819
+ }
14820
+ interface FolderListing {
14821
+ path: string;
14822
+ home: string;
14823
+ crumbs: BrowsedFolder[];
14824
+ entries: BrowsedFolder[];
14825
+ truncated: boolean;
14826
+ roots: BrowsedFolder[];
14827
+ }
14828
+ interface FolderBrowser {
14829
+ list(path?: string): FolderListing;
14830
+ }
14831
+ //#endregion
14409
14832
  //#region packages/core/src/memory/managed-git.d.ts
14410
14833
  type GitSource = 'system' | 'managed';
14411
14834
  type GitInstallFailure = 'unsupported' | 'network' | 'checksum' | 'unpack' | 'unrunnable';
@@ -14776,13 +15199,39 @@ interface BridgeMethods {
14776
15199
  channelId?: string;
14777
15200
  receipt?: BotCreationReceipt;
14778
15201
  }>;
15202
+ botImportPreview(payload: unknown): Promise<BridgeResult<Awaited<ReturnType<BotImportsService['previewGit']>>>>;
15203
+ botImportLookup(payload: unknown): BridgeResult<{
15204
+ receipt: BotCreationReceipt | null;
15205
+ }>;
15206
+ zipUploadBegin(payload: unknown): BridgeResult<BotZipUploadStatus>;
15207
+ zipUploadChunk(payload: unknown): BridgeResult<BotZipUploadStatus>;
15208
+ zipUploadPreview(payload: unknown): BridgeResult<BotZipPreview>;
15209
+ zipImportLookup(payload: unknown): BridgeResult<{
15210
+ receipt: BotCreationReceipt | null;
15211
+ }>;
15212
+ zipImport(payload: unknown): Promise<BridgeResult<{
15213
+ bot: PersonaBotDetail;
15214
+ channelId: string;
15215
+ receipt?: BotCreationReceipt;
15216
+ }>>;
15217
+ createLookup(payload: unknown): BridgeResult<{
15218
+ receipt: BotCreationReceipt | null;
15219
+ }>;
14779
15220
  createFromGit(payload: unknown): Promise<BridgeResult<{
14780
15221
  bot: PersonaBotDetail;
14781
15222
  httpsFallback?: HttpsFallback;
15223
+ receipt?: BotCreationReceipt;
15224
+ channelId?: string;
14782
15225
  }>>;
14783
15226
  update(payload: unknown): BridgeResult<{
14784
15227
  bot: PersonaBotDetail;
14785
15228
  }>;
15229
+ dataResetPreview(): BridgeResult<{
15230
+ preview: DataResetPreview;
15231
+ }>;
15232
+ dataResetConfirm(payload: unknown): BridgeResult<{
15233
+ reset: DataResetResult;
15234
+ }>;
14786
15235
  deletionPreview(payload: unknown): BridgeResult<{
14787
15236
  preview: PersonaBotDeletionPreview;
14788
15237
  }>;
@@ -14864,6 +15313,11 @@ interface BridgeMethods {
14864
15313
  before?: string;
14865
15314
  }>;
14866
15315
  channelPurgePreview(payload: unknown): BridgeResult<PurgePreview>;
15316
+ storageUsage(payload?: unknown): BridgeResult<StorageUsage>;
15317
+ storageCleanupPreview(payload: unknown): BridgeResult<MediaCleanupPreview>;
15318
+ storageCleanupConfirm(payload: unknown): BridgeResult<MediaCleanupResult>;
15319
+ storageMessagesCleanupPreview(payload: unknown): BridgeResult<TextCleanupPreview>;
15320
+ storageMessagesCleanupConfirm(payload: unknown): BridgeResult<TextCleanupResult>;
14867
15321
  channelPurgeConfirm(payload: unknown): BridgeResult<{
14868
15322
  accepted: number;
14869
15323
  cleanupPending?: number;
@@ -14923,6 +15377,9 @@ interface BridgeMethods {
14923
15377
  humanAttentionDismiss(payload: unknown): BridgeResult<{
14924
15378
  accepted: boolean;
14925
15379
  }>;
15380
+ humanAttentionRestore(payload: unknown): BridgeResult<{
15381
+ accepted: boolean;
15382
+ }>;
14926
15383
  humanAttentionIgnore(payload: unknown): BridgeResult<{
14927
15384
  accepted: boolean;
14928
15385
  }>;
@@ -14952,6 +15409,7 @@ interface BridgeMethods {
14952
15409
  kind: 'directory';
14953
15410
  };
14954
15411
  }>;
15412
+ folderBrowse(payload: unknown): BridgeResult<FolderListing>;
14955
15413
  grants(payload: unknown): BridgeResult<{
14956
15414
  grants: WorkspaceGrant[];
14957
15415
  }>;
@@ -15221,6 +15679,9 @@ interface BridgeMethods {
15221
15679
  releaseUpdate(payload?: unknown): Promise<BridgeResult<ReleaseUpdate>>;
15222
15680
  releaseInstall(payload: unknown): Promise<BridgeResult<ReleaseInstall>>;
15223
15681
  releaseRestart(payload: unknown): Promise<BridgeResult<ReleaseRestart>>;
15682
+ pluginUpdates(payload?: unknown): Promise<BridgeResult<PluginUpdates>>;
15683
+ pluginInstall(payload: unknown): Promise<BridgeResult<PluginInstall>>;
15684
+ pluginRestart(payload: unknown): Promise<BridgeResult<PluginRestart>>;
15224
15685
  telemetryStatus(): BridgeResult<TelemetryStatus>;
15225
15686
  gitStatus(): BridgeResult<GitStatus>;
15226
15687
  gitInstall(): BridgeResult<GitStatus>;
@@ -15276,10 +15737,14 @@ interface BridgeMethodsDeps {
15276
15737
  warn?: (message: string) => void;
15277
15738
  registry: PersonaBotRegistry;
15278
15739
  creations?: BotCreationService;
15740
+ imports?: BotImportsService;
15741
+ zipImports?: BotZipImportService;
15279
15742
  channelManagement?: ChannelManagementService;
15280
15743
  approvalTemplates?: ApprovalTemplateLibrary;
15281
15744
  deletions?: PersonaBotDeletions;
15282
15745
  contentPurge?: ContentPurge;
15746
+ storage?: StorageCleanup;
15747
+ dataReset?: DataReset;
15283
15748
  attachments?: AttachmentStore;
15284
15749
  modelPresets?: ModelPresetStore;
15285
15750
  modelCatalog?: ModelCatalog;
@@ -15317,6 +15782,7 @@ interface BridgeMethodsDeps {
15317
15782
  humanAttention?: HumanAttentionQuery;
15318
15783
  humanAttentionDecisions?: HumanAttentionDecisions;
15319
15784
  grants?: WorkspaceGrantStore;
15785
+ folders?: FolderBrowser;
15320
15786
  externalMessaging?: OutboundMessaging;
15321
15787
  toolApproval?: ChannelToolApproval;
15322
15788
  userQuestions?: ChannelUserQuestions;
@@ -15337,6 +15803,7 @@ interface BridgeMethodsDeps {
15337
15803
  createBotId?: () => string;
15338
15804
  marketplace?: MarketplaceClient;
15339
15805
  release?: ReleaseService;
15806
+ plugins?: PluginUpdateService;
15340
15807
  telemetry?: {
15341
15808
  status(): TelemetryStatus;
15342
15809
  setPreference(enabled: boolean): TelemetryStatus;
@@ -15657,13 +16124,39 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15657
16124
  channelId?: string;
15658
16125
  receipt?: BotCreationReceipt;
15659
16126
  };
15660
- createFromGit(displayName: string, gitUrl: string, roles?: string[], description?: string): Promise<{
16127
+ createLookup(operationKey: string, displayName: string, roles?: string[], persona?: string, description?: string, model?: string, preset?: string, workspaces?: string[], avatar?: string, memoryLocation?: string, coreMemory?: string): {
16128
+ receipt: BotCreationReceipt | null;
16129
+ };
16130
+ botImportPreview(gitUrl: string): Promise<Awaited<ReturnType<BotImportsService['previewGit']>>>;
16131
+ botImportLookup(operationKey: string, gitUrl: string, expectedCommit: string, displayName: string, roles?: string[], description?: string): {
16132
+ receipt: BotCreationReceipt | null;
16133
+ };
16134
+ zipUploadBegin(uploadKey: string, sha256: string, sizeBytes: number): BotZipUploadStatus;
16135
+ zipUploadChunk(uploadKey: string, sha256: string, sizeBytes: number, offset: number, dataBase64: string): BotZipUploadStatus;
16136
+ zipUploadPreview(uploadKey: string, sha256: string, sizeBytes: number): BotZipPreview;
16137
+ zipImportLookup(operationKey: string, sha256: string, displayName: string, roles?: string[], description?: string): {
16138
+ receipt: BotCreationReceipt | null;
16139
+ };
16140
+ zipImport(operationKey: string, uploadKey: string, sha256: string, sizeBytes: number, displayName: string, roles?: string[], description?: string): Promise<{
16141
+ bot: PersonaBotDetail;
16142
+ channelId: string;
16143
+ receipt?: BotCreationReceipt;
16144
+ }>;
16145
+ createFromGit(displayName: string, gitUrl: string, roles?: string[], description?: string, origin?: 'marketplace', operationKey?: string, expectedCommit?: string): Promise<{
15661
16146
  bot: PersonaBotDetail;
15662
16147
  httpsFallback?: HttpsFallback;
16148
+ receipt?: BotCreationReceipt;
16149
+ channelId?: string;
15663
16150
  }>;
15664
16151
  update(slug: string, patch: PersonaBotPatch, expectedProfile?: string): {
15665
16152
  bot: PersonaBotDetail;
15666
16153
  };
16154
+ dataResetPreview(): {
16155
+ preview: DataResetPreview;
16156
+ };
16157
+ dataResetConfirm(token: string): {
16158
+ reset: DataResetResult;
16159
+ };
15667
16160
  deletionPreview(slug: string): {
15668
16161
  preview: PersonaBotDeletionPreview;
15669
16162
  };
@@ -15812,6 +16305,11 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15812
16305
  sources: PurgeSource[];
15813
16306
  before?: string;
15814
16307
  };
16308
+ storageUsage(): StorageUsage;
16309
+ storageCleanupPreview(before: string, channelIds?: string[], kinds?: StorageMediaKind[]): MediaCleanupPreview;
16310
+ storageCleanupConfirm(before: string, channelIds: string[] | undefined, kinds: StorageMediaKind[] | undefined, token: string): MediaCleanupResult;
16311
+ storageMessagesCleanupPreview(before: string, channelIds?: string[]): TextCleanupPreview;
16312
+ storageMessagesCleanupConfirm(before: string, channelIds: string[] | undefined, token: string): TextCleanupResult;
15815
16313
  channelPurgePreview(channelId: string, sourceEventIds: string[]): PurgePreview;
15816
16314
  channelPurgeConfirm(channelId: string, sourceEventIds: string[], token: string): {
15817
16315
  accepted: number;
@@ -15857,7 +16355,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15857
16355
  };
15858
16356
  channelActivityToday(): ChannelActivityToday;
15859
16357
  activityOverview(): ActivityOverview;
15860
- humanAttention(category?: HumanAttentionCategory, botSlug?: string, channelId?: string, limit?: number, cursor?: string, sort?: 'newest' | 'oldest' | 'mentions-first', snoozed?: boolean, kind?: 'auto-rejection', search?: string, unreadOnly?: boolean, queryVersion?: number): HumanAttentionPage;
16358
+ humanAttention(category?: HumanAttentionCategory, botSlug?: string, channelId?: string, limit?: number, cursor?: string, sort?: 'newest' | 'oldest' | 'mentions-first', snoozed?: boolean, kind?: 'auto-rejection', search?: string, unreadOnly?: boolean, queryVersion?: number, dismissed?: boolean, notifications?: boolean): HumanAttentionPage;
15861
16359
  humanAttentionStatus(messageCounts?: boolean): HumanAttentionStatus;
15862
16360
  channelUnreadCounts(): {
15863
16361
  channels: Array<{
@@ -15871,6 +16369,9 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15871
16369
  humanAttentionDismiss(itemId: string, sourceKey: string): {
15872
16370
  accepted: boolean;
15873
16371
  };
16372
+ humanAttentionRestore(itemId: string, sourceKey: string): {
16373
+ accepted: boolean;
16374
+ };
15874
16375
  humanAttentionIgnore(sourceEventId: string): {
15875
16376
  accepted: boolean;
15876
16377
  };
@@ -15899,6 +16400,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15899
16400
  messageAttachmentTarget(channelId: string, messageId: string, fileId: string): {
15900
16401
  target: MemoryFileTarget;
15901
16402
  };
16403
+ folderBrowse(path?: string): FolderListing;
15902
16404
  workspaceFileTarget(slug: string, grantId: string): {
15903
16405
  target: {
15904
16406
  path: string;
@@ -16101,11 +16603,14 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
16101
16603
  received: true;
16102
16604
  }>;
16103
16605
  marketplaceTopics(): Promise<MarketplaceTopic[]>;
16104
- marketplaceDetail(id: string): Promise<MarketplaceDetail>;
16606
+ marketplaceDetail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceDetail>;
16105
16607
  releaseInfo(since?: string): Promise<ReleaseInfo>;
16106
16608
  releaseUpdate(force?: boolean): Promise<ReleaseUpdate>;
16107
16609
  releaseInstall(version: string): Promise<ReleaseInstall>;
16108
16610
  releaseRestart(): Promise<ReleaseRestart>;
16611
+ pluginUpdates(force?: boolean): Promise<PluginUpdates>;
16612
+ pluginInstall(name: string, version: string): Promise<PluginInstall>;
16613
+ pluginRestart(): Promise<PluginRestart>;
16109
16614
  telemetryStatus(): TelemetryStatus;
16110
16615
  gitStatus(): GitStatus;
16111
16616
  gitInstall(): GitStatus;
@@ -16176,7 +16681,7 @@ interface BotCreateFailure {
16176
16681
  name: string;
16177
16682
  };
16178
16683
  }
16179
- export declare const BOT_CREATE_HELP = "deepseekbot: create PersonaBots without clicking\n\nUsage:\n deepseekbot create --name <name> [--persona <text> | --persona-stdin]\n [--core-memory <text> | --core-memory-stdin]\n [--description <text>] [--role <tag> ...] [--avatar-file <image>]\n [--preset <model-preset-id>] [--memory-location <absolute-dir>]\n [--home <dsh-home>] [--operation-key <stable-key> (online blank creation)]\n deepseekbot create --name <name> --from-git <url | owner/repo> [...]\n deepseekbot create [--name <name>] --from-zip <file> [...]\n deepseekbot create [--name <name>] --from-dir <directory> [...]\n deepseekbot list [--home <dsh-home>]\n deepseekbot show <id> [--home <dsh-home>]\n deepseekbot model-presets [--home <dsh-home>]\n deepseekbot model-preset-create --name <preset> --orchestrator-provider <p> --orchestrator-model <m>\n [--orchestrator-effort <e>] --assignment-provider <p>\n --assignment-model <m> [--assignment-effort <e>] [--home <dsh-home>]\n [--plan-stdin (online Host only)]\n deepseekbot model-preset-apply <id> --preset <preset-id> [--expected-revision <n>] [--preset-revision <n>] [--home <dsh-home>]\n deepseekbot model-plan <id> [--home <dsh-home>]\n deepseekbot pause <id> [--home <dsh-home>]\n deepseekbot resume <id> [--home <dsh-home>]\n deepseekbot update <id> [--name <name>] [--description <text>] [--role <tag> ...] [--home <dsh-home>]\n deepseekbot human-name-set (--name <text> | --clear) [--home <dsh-home>]\n deepseekbot channel-human-name-set <channel> (--nickname <text> | --clear) [--home <dsh-home>]\n deepseekbot memory-snapshot <id> [--home <dsh-home>]\n deepseekbot memory-file <id> --path <file> [--home <dsh-home>]\n deepseekbot memory-history <id> [--limit <n>] [--home <dsh-home>]\n deepseekbot memory-diff <id> --sha <commit> [--home <dsh-home>]\n deepseekbot memory-save <id> --path <file> (--body <text> | --body-stdin)\n [--expected-head <sha>] [--edit-id <id>] [--home <dsh-home>]\n deepseekbot channels [--home <dsh-home>]\n deepseekbot channel-messages <channel> [--limit <n>] [--before <id>] [--home <dsh-home>]\n deepseekbot channel-media-target <channel> --source-event <id> --attachment <id>\n deepseekbot channel-media-download <channel> --source-event <id> --attachment <id> --out <path>\n deepseekbot grants <id> [--home <dsh-home>]\n deepseekbot grant-revoke <id> --grant <grant> [--home <dsh-home>] online: add --confirm\n deepseekbot grant-write-set <id> --grant <grant> (--enabled | --disabled) [--home <dsh-home>]\n deepseekbot schedules <id> [--home <dsh-home>]\n deepseekbot schedule-create <id> --title <t> --prompt <p> (--every <s> | --daily <HH:MM> |\n --weekly <HH:MM> --weekdays <0-6,..> | --once-date <d> --once-time <t> |\n --cron <expr>) [--timezone <tz>] [--enabled|--disabled] [--locked] [--home <dsh-home>]\n deepseekbot schedule-update <id> --sid <schedule> [--title ...] [--prompt ...] [trigger ...] [--home <dsh-home>]\n deepseekbot schedule-delete <id> --sid <schedule> [--confirm] [--home <dsh-home>]\n deepseekbot schedule-history <id> --sid <schedule> [--home <dsh-home>]\n deepseekbot schedule-run-now <id> --sid <schedule> [--home <dsh-home>]\n deepseekbot schedule-preview (--every <s> | --daily ... | ...) [--home <dsh-home>]\n deepseekbot pairings <id> [--home <dsh-home>]\n deepseekbot secret-put <NAME> [--home <dsh-home>] secret value arrives on stdin only\n deepseekbot secret-list [--home <dsh-home>] names, sources, writability; never values\n deepseekbot secret-unset <NAME> [--home <dsh-home>]\n deepseekbot search <words> find commands by words\n deepseekbot send <id> (--body <text> | --body-stdin) [--message-id human-<UUID>] [--timeout <seconds>]\n deepseekbot send-status <id> --message-id <Human-message-id>\n deepseekbot tool-approval-status <channel> --message-id <card-id>\n deepseekbot tool-approval-decide <channel> --message-id <card-id> --outcome allowed-once|rejected\n deepseekbot user-question-status <channel> --message-id <card-id>\n deepseekbot user-question-answer <channel> --message-id <card-id> --answer-stdin\n deepseekbot ask-secret-status <channel> --message-id <card-id>\n deepseekbot ask-secret-submit <channel> --message-id <card-id> --values-stdin\n deepseekbot ask-secret-cancel <channel> --message-id <card-id>\n deepseekbot ask-secret-account-status <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-replace <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-revoke <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-accounts <id>\n deepseekbot release-info [--since <version>]\n deepseekbot release-check\n deepseekbot release-install <version> --confirm\n deepseekbot release-restart --confirm\n deepseekbot marketplace-list [--query <words>] [--topic <topic>] [--sort updated|stars] [--cursor <c>]\n deepseekbot marketplace-topics\n deepseekbot marketplace-detail <owner/repo>\n deepseekbot marketplace-submit <github-repo-url>\n deepseekbot marketplace-report <owner/repo> [--reason <text>]\n deepseekbot telemetry-status\n deepseekbot telemetry-set (--enabled | --disabled)\n deepseekbot git-status\n deepseekbot git-install\n deepseekbot pairing-list <id>\n deepseekbot pairing-review <id> <pairing-id> --decision approve|reject|revoke [--role <role-id> | --capability <c> ...] [--confirm]\n deepseekbot workspace-options\n deepseekbot grant-create <id> --workspace <workspace-id>\n deepseekbot browser-access-set <id> (--enabled | --disabled)\n deepseekbot computer-access-set <id> (--enabled | --disabled)\n deepseekbot access <id>\n deepseekbot access-set <id> --mode workspace-write|danger-full-access [--scope chat|assignments] [--acknowledge-risk]\n deepseekbot settings <namespace>\n deepseekbot settings-set <namespace> --patch-stdin [--expected-revision <n> --previous-value <json>]\n deepseekbot workspace-create <absolute-path>\n deepseekbot channel <channel-id>\n deepseekbot group-create <name> [--member <bot-id> ...] [--operation-key <key>]\n deepseekbot group-invite <channel-id> --bot <bot-id> [--operation-key <key>] [--expected-channel <fingerprint>]\n deepseekbot group-invite-cancel <channel-id> --invitation <invitation-id> [--expected-channel <fingerprint>]\n deepseekbot group-join-decide <channel-id> --request <join-request-id> (--accept | --decline) [--expected-channel <fingerprint>]\n deepseekbot channel-rename <channel-id> --name <name> [--expected-channel <fingerprint>]\n deepseekbot group-avatar-set <channel-id> (--avatar-file <path> | --clear) [--expected-channel <fingerprint>]\n deepseekbot group-wake-policies <channel-id>\n deepseekbot group-wake-set <channel-id> --bot <bot-id> (--mode all|mentions|digest|silent | --inherit) [--count <n>] [--interval <seconds>] [--expected-channel <fingerprint>]\n deepseekbot group-member-remove <channel-id> --bot <bot-id> [--expected-channel <fingerprint>]\n deepseekbot im-app-add <discord|slack|qq|dingtalk|wecom|matrix> --credentials-stdin\n deepseekbot im-app-status <platform>\n deepseekbot im-app-remove <platform> --app <app-id>\n deepseekbot im-bind <id> --app <app-id>\n deepseekbot im-unbind <id> --app <app-id>\n deepseekbot im-status <id>\n deepseekbot channel-connect <channel> --bot <id> --conversation <external-id> [--app <app-id>]\n deepseekbot channel-ingests <channel>\n deepseekbot browser-open <id>\n deepseekbot browser-frame <id> --out <absolute-file>\n deepseekbot browser-takeover <id> (--enabled | --disabled)\n deepseekbot browser-input <id> --args-stdin\n deepseekbot browser-stop <id>\n deepseekbot computer-start [--target local|container]\n deepseekbot computer-status\n deepseekbot computer-stop\n deepseekbot browser-tools\n deepseekbot browser-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n deepseekbot memory-file-target|memory-graph|memory-commit-diff|memory-changes <id> [...]\n deepseekbot memory-working-diff <id> --path <file> --kind staged|unstaged|untracked|current\n deepseekbot memory-checkpoints|memory-versions <id>\n deepseekbot memory-restore <id> --checkpoint <id> --expected-current <id>\n deepseekbot memory-restore-commit <id> --sha <commit> --expected-head <commit> [--name <version>]\n deepseekbot memory-version-name <id> --sha <commit> --name <version>\n deepseekbot memory-version-unname <id> --tag <version>\n deepseekbot memory-repair <id> --expected-head <commit>\n deepseekbot memory-move <id> (--memory-location <absolute-dir> | --default-location)\n deepseekbot model-catalog\n deepseekbot model-plan-set <id> --plan-stdin [--expected-revision <n>]\n deepseekbot model-plan-customize <id> --orchestrator-provider <p> --orchestrator-model <m> [--orchestrator-effort <e>]\n deepseekbot model-plan-inherit <id> [--expected-revision <n>]\n deepseekbot model-plan-assignments-set <id> --plan-stdin [--expected-revision <n>]\n deepseekbot model-preset-update <preset-id> [--name <n>] [--orchestrator-provider/-model/-effort ...]\n [--assignment-provider/-model/-effort ...] [--plan-stdin] [--expected-revision <n>]\n deepseekbot overview-usage [--period today|week|month|quarter] [--after <bot-cursor>]\n deepseekbot overview-memory [--after <bot-cursor>]\n deepseekbot activity-overview\n deepseekbot channel-activity-today\n deepseekbot bot-usage <id> --start <YYYY-MM-DD> --end <YYYY-MM-DD> [--model <m>] [--provider <p>]\n [--purpose orchestrator|assignment|subagent]\n deepseekbot bot-session-usage <id>\n deepseekbot bot-activity-history <id> [--before <YYYY-MM-DD>] [--weeks <1-104>]\n deepseekbot group-activity <channel>\n deepseekbot bot-trace <id> [--turns <1-20>] [--session <session-id>|direct]\n deepseekbot bot-tools\n deepseekbot bot-tool <id> <tool> [--args-stdin]\n deepseekbot computer-tools\n deepseekbot computer-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n deepseekbot todos\n deepseekbot todo-add --title <text>\n deepseekbot todo-update <todo-id> [--title <text>] [--done | --not-done]\n deepseekbot todo-remove <todo-id>\n deepseekbot todo-tools\n deepseekbot todo-tool <id> <tool> [--args-stdin]\n deepseekbot bot-attention <id> [--limit <1-100>] [--cursor <source-id>] [--state <state>]\n deepseekbot bot-sessions <id> [--limit <1-100>]\n deepseekbot bot-activity <id> [--limit <1-100>]\n deepseekbot inbox [--category action|info|unread|replies|handled] [--bot <id>] [--channel <id>]\n [--limit <1-100>] [--cursor <cursor>] [--sort newest|oldest] [--snoozed]\n [--kind auto-rejection]\n deepseekbot inbox-status\n deepseekbot inbox-dismiss <item-id> [--source-key <source-event-id>]\n deepseekbot inbox-allow-once <autoreject:item-id>\n deepseekbot inbox-snooze <item-id> [--source-key <source-event-id>] (--until <ISO time> | --clear)\n deepseekbot inbox-ignore <source-event-id>\n deepseekbot assignment-context <id> --session <session-id> --source <source-event-id>\n deepseekbot channel-assignments <group-channel>\n deepseekbot channel-assign <channel> (--section <section-id> | --unsectioned) [--index <n>]\n deepseekbot session-ids\n deepseekbot session-owner <session-id>\n deepseekbot session-archive-set <id> --session <session-id> (--archived | --unarchived)\n deepseekbot tool-approval-rules <id>\n deepseekbot tool-approval-rule-revoke <id> --rule <rule-id> --confirm\n deepseekbot private-mcp-set <id> --server <name> (--enabled | --disabled)\n deepseekbot private-mcp-remove <id> --server <name> --confirm\n deepseekbot bot-delete-preview <id>\n deepseekbot bot-delete-memory-folder <id>\n deepseekbot bot-delete-confirm <id> --confirmation-stdin --confirm [--erase-memory]\n deepseekbot bot-delete-retry <id> --confirm\n deepseekbot bot-avatar-set|bot-banner-set <id> (--file <image> | --clear)\n deepseekbot bot-banner-set|bot-appearance-set <id> --recipe-stdin\n deepseekbot bot-primary-color-set <id> (--color <#rrggbb> | --automatic)\n deepseekbot bot-source-policies <id>\n deepseekbot bot-source-policy-set <id> --source-class <class> [--wake <w>] [--delivery steer|turn]\n [--digest-count <n> --digest-interval <seconds>]\n deepseekbot bot-source-policy-reset <id> --source-class <class>\n deepseekbot bot-standing-limits-set <id> --soul <n> --core-memory <n>\n deepseekbot developer-mode-set (--enabled | --disabled)\n deepseekbot roster | human-identity | part-library\n deepseekbot roster-batch pin|unpin|hide|move <channel>... [--section <section-id>]\n deepseekbot roster-pins-set|roster-hidden-set [<channel>...]\n deepseekbot roster-section-create <name>\n deepseekbot roster-section-rename <section-id> --name <text>\n deepseekbot roster-section-remove <section-id> --confirm\n deepseekbot roster-section-reorder <section-id>...\n deepseekbot roster-top-reorder section:<id>|channel:<id>...\n deepseekbot part-library-add --part-stdin [--name <text>] [--parent <part-id>]\n deepseekbot part-library-import --file <png|zip>\n deepseekbot part-library-import-image --file <png> --slot <slot> --colors <n> [--name <text>]\n deepseekbot part-library-export --out <absolute-file> [--part-id <id> | --part-stdin]\n deepseekbot im-apps\n deepseekbot im-authorize <feishu|weixin>\n deepseekbot im-credentials <attempt-id> --credentials-stdin\n deepseekbot im-verify <attempt-id> --verification-stdin\n deepseekbot pairing-status <attempt-id> [--wait] [--timeout <seconds>]\n deepseekbot im-cancel <attempt-id>\n deepseekbot --help | deepseekbot create --help\n\nOutput:\n stdout carries JSON, pretty by default; --compact condenses it to one line\n for agents. Human-readable lines go to stderr only.\n\nSources (exactly one per create):\n (none) blank bot; --preset applies a model preset, otherwise the model\n step reports no-model-yet and activation stays a Settings task\n --from-git clone a Git repository as Memory (HTTPS, SSH, or owner/repo\n shorthand for https://github.com/owner/repo.git)\n --from-zip import a bot bundle zip (same shape as the bot-zip export)\n --from-dir import a bot bundle directory (same shape as the bot-zip export;\n a .git subtree is skipped as files but packed as history)\n\nMachine contract:\n stdout carries exactly one JSON document. Success exits 0 with the bot id,\n DM channel, data directory, per-step statuses, and next actions. Failure\n exits non-zero with {\"error\": {\"code\", \"message\"}} using a stable code\n (usage, secret-in-argv, bad-zip, bad-bundle, bad-ref, unknown-preset,\n unknown-bot, unknown-channel, duplicate-preset, git-not-found, git-clone-failed, git-clone-timeout,\n memory-unavailable, lease-unavailable, bad-credentials, invalid-input, invalid-avatar,\n file-unreadable). Human-readable lines go to stderr only.\n Stop the Host before offline database commands: the writer lease is exclusive.\n\nLive Host:\n Require --host <loopback-origin|tailnet-HTTPS-origin> or DEEPSEEKBOT_HOST.\n Auth: DEEPSEEKBOT_HOST_TOKEN or --token-file <private-file>, never a token in argv.\n Login is fresh per call; cookies stay in memory. --timeout defaults to 120 seconds (max 600).\n send returns its receipt and exact committed replies. Inspect send-status on timeout\n before retrying; send never automatically resubmits. channel-messages also accepts --host.\n create (blank, Git, Zip and directory), list/show, model-presets/create/apply/plan,\n channels and the schedule* commands use the Host when --host or DEEPSEEKBOT_HOST is set. Do not combine\n --home with an online target; failures never fall back to local database access.\n Zip/directory uploads contain local bytes; Git cloning uses the Host environment.\n Creation errors retain known bot/steps; outcome unknown means inspect before retrying.\n Bot diagnostics are bounded summaries, not full execution logs or live streams.\n grant-revoke and grant-write-set use the Host when it is targeted; revokes and removals\n (grant, tool approval rule, private MCP server) need --confirm, like the Web UI.\n Deletion requires preview then stdin {\"token\":\"<preview.token>\"}; Memory is retained.\n Question stdin: {\"answers\":[{\"id\":\"question-id\",\"selected\":[\"option\"],\"custom\":\"optional\"}]}\n Private input stdin: {\"field_id\":\"confidential value\",...}; only declared fields.\n Private input commands return status/acceptance only and never retry a submission.\n\nModels:\n model-presets lists the profile presets; model-preset-create mints one from\n explicit provider/model routes; model-preset-apply and model-plan read and\n write through the Host when selected, otherwise directly offline. Routes are shape-checked plus\n provider-existence-checked offline; catalog liveness and readiness\n inspection stay Host-side, and model-plan reports readiness deferred.\n\nMemory:\n memory-snapshot/file/history/diff read the bot memory store; memory-save\n writes one file and commits it. --expected-head defaults to the current\n HEAD (pass it explicitly for compare-and-swap); --edit-id defaults to a\n fresh UUID and makes repeat submissions idempotent. Conflicts, missing\n files, and bad shas fail coded (memory-conflict, not-found,\n memory-unknown-commit).\n\nIdentity:\n The bot name is a label. Every create mints a new bot id, so reusing a name\n always returns a second bot and still exits 0.\n\nSecrets:\n Never pass secrets as arguments: any --api-key/--token/--secret/--password\n style flag is a hard error (secret-in-argv). Model keys and tokens travel in\n the environment (for example DEEPSEEK_API_KEY, GITHUB_TOKEN) or a stdin pipe\n (--persona-stdin); result JSON never contains secret values.\n\nHome:\n --home points at the target DSH_HOME (a fresh directory works with zero\n clicks); without it, DSH_HOME from the environment is used.\n";
16684
+ export declare const BOT_CREATE_HELP = "tobs: manage your Bots\n\nUsage:\n tobs ssh-tunnel <alias> --pairing-file <private-file> --out <new-private-file>\n --local-port <port> --remote-port <port> [--ssh-config <absolute-file>]\n tobs create --name <name> [--persona <text> | --persona-stdin]\n [--core-memory <text> | --core-memory-stdin]\n [--description <text>] [--role <tag> ...] [--avatar-file <image>]\n [--preset <model-preset-id>] [--memory-location <absolute-dir>]\n [--home <dsh-home>] [--operation-key <stable-key> (online blank creation)]\n tobs create --name <name> --from-git <url | owner/repo> [...]\n tobs create [--name <name>] --from-zip <file> [...]\n tobs create [--name <name>] --from-dir <directory> [...]\n tobs bot-import-preview --from-git <url | owner/repo> --host <url>\n tobs create-status --name <name> --operation-key <stable-key> [same blank or pinned Git input] --host <url>\n tobs list [--home <dsh-home>]\n tobs bot-zip-upload --from-zip <file> --upload-key <key> --host <url>\n tobs bot-zip-preview --upload-key <key> --archive-sha256 <hash> --archive-size <bytes> --host <url>\n tobs bot-zip-import --upload-key <key> --archive-sha256 <hash> --archive-size <bytes> --operation-key <key> --name <name> --host <url>\n tobs bot-zip-import-status --archive-sha256 <hash> --operation-key <key> --name <name> --host <url>\n tobs show <id> [--home <dsh-home>]\n tobs model-presets [--home <dsh-home>]\n tobs model-preset-create --name <preset> --orchestrator-provider <p> --orchestrator-model <m>\n [--orchestrator-effort <e>] --assignment-provider <p>\n --assignment-model <m> [--assignment-effort <e>] [--home <dsh-home>]\n [--plan-stdin (online Host only)]\n tobs model-preset-apply <id> --preset <preset-id> [--expected-revision <n>] [--preset-revision <n>] [--home <dsh-home>]\n tobs model-plan <id> [--home <dsh-home>]\n tobs pause <id> [--home <dsh-home>]\n tobs resume <id> [--home <dsh-home>]\n tobs update <id> [--name <name>] [--description <text>] [--role <tag> ...] [--home <dsh-home>]\n tobs human-name-set (--name <text> | --clear) [--home <dsh-home>]\n tobs channel-human-name-set <channel> (--nickname <text> | --clear) [--home <dsh-home>]\n tobs memory-snapshot <id> [--home <dsh-home>]\n tobs memory-file <id> --path <file> [--home <dsh-home>]\n tobs memory-history <id> [--limit <n>] [--home <dsh-home>]\n tobs memory-diff <id> --sha <commit> [--home <dsh-home>]\n tobs memory-save <id> --path <file> (--body <text> | --body-stdin)\n [--expected-head <sha>] [--edit-id <id>] [--home <dsh-home>]\n tobs channels [--home <dsh-home>]\n tobs channel-messages <channel> [--limit <n>] [--before <id>] [--home <dsh-home>]\n tobs channel-media-target <channel> --source-event <id> --attachment <id>\n tobs channel-media-download <channel> --source-event <id> --attachment <id> --out <path>\n tobs grants <id> [--home <dsh-home>]\n tobs grant-revoke <id> --grant <grant> [--home <dsh-home>] online: add --confirm\n tobs grant-write-set <id> --grant <grant> (--enabled | --disabled) [--home <dsh-home>]\n tobs schedules <id> [--home <dsh-home>]\n tobs schedule-create <id> --title <t> --prompt <p> (--every <s> | --daily <HH:MM> |\n --weekly <HH:MM> --weekdays <0-6,..> | --once-date <d> --once-time <t> |\n --cron <expr>) [--timezone <tz>] [--enabled|--disabled] [--locked] [--home <dsh-home>]\n tobs schedule-update <id> --sid <schedule> [--title ...] [--prompt ...] [trigger ...] [--home <dsh-home>]\n tobs schedule-delete <id> --sid <schedule> [--confirm] [--home <dsh-home>]\n tobs schedule-history <id> --sid <schedule> [--home <dsh-home>]\n tobs schedule-run-now <id> --sid <schedule> [--home <dsh-home>]\n tobs schedule-preview (--every <s> | --daily ... | ...) [--home <dsh-home>]\n tobs pairings <id> [--home <dsh-home>]\n tobs secret-put <NAME> [--home <dsh-home>] secret value arrives on stdin only\n tobs secret-list [--home <dsh-home>] names, sources, writability; never values\n tobs secret-unset <NAME> [--home <dsh-home>]\n tobs search <words> find commands by words\n tobs send <id> (--body <text> | --body-stdin) [--message-id human-<UUID>] [--timeout <seconds>]\n tobs send-status <id> --message-id <Human-message-id>\n tobs tool-approval-status <channel> --message-id <card-id>\n tobs tool-approval-decide <channel> --message-id <card-id> --outcome allowed-once|rejected\n tobs user-question-status <channel> --message-id <card-id>\n tobs user-question-answer <channel> --message-id <card-id> --answer-stdin\n tobs ask-secret-status <channel> --message-id <card-id>\n tobs ask-secret-submit <channel> --message-id <card-id> --values-stdin\n tobs ask-secret-cancel <channel> --message-id <card-id>\n tobs ask-secret-account-status <channel> --message-id <configured-card-id>\n tobs ask-secret-replace <channel> --message-id <configured-card-id>\n tobs ask-secret-revoke <channel> --message-id <configured-card-id>\n tobs ask-secret-accounts <id>\n tobs release-info [--since <version>]\n tobs release-check\n tobs release-install <version> --confirm\n tobs release-restart --confirm\n tobs plugin-check [--force]\n tobs plugin-install <package> <version> --confirm\n tobs plugin-restart --confirm\n tobs marketplace-list [--query <words>] [--topic <topic>] [--sort updated|created|stars] [--cursor <c>]\n tobs marketplace-topics\n tobs marketplace-detail <owner/repo>\n tobs marketplace-submit <github-repo-url>\n tobs marketplace-report <owner/repo> [--reason <text>]\n tobs data-reset-preview\n tobs data-reset-confirm --confirmation-stdin --confirm\n tobs telemetry-status\n tobs telemetry-set (--enabled | --disabled)\n tobs git-status\n tobs git-install\n tobs pairing-list <id>\n tobs pairing-review <id> <pairing-id> --decision approve|reject|revoke [--role <role-id> | --capability <c> ...] [--confirm]\n tobs workspace-options\n tobs grant-create <id> --workspace <workspace-id>\n tobs browser-access-set <id> (--enabled | --disabled)\n tobs computer-access-set <id> (--enabled | --disabled)\n tobs access <id>\n tobs access-set <id> --mode workspace-write|danger-full-access [--scope chat|assignments] [--acknowledge-risk]\n tobs settings <namespace>\n tobs settings-set <namespace> --patch-stdin [--expected-revision <n> --previous-value <json>]\n tobs workspace-create <absolute-path>\n tobs channel <channel-id>\n tobs group-create <name> [--member <bot-id> ...] [--operation-key <key>]\n tobs group-invite <channel-id> --bot <bot-id> [--operation-key <key>] [--expected-channel <fingerprint>]\n tobs group-invite-cancel <channel-id> --invitation <invitation-id> [--expected-channel <fingerprint>]\n tobs group-join-decide <channel-id> --request <join-request-id> (--accept | --decline) [--expected-channel <fingerprint>]\n tobs channel-rename <channel-id> --name <name> [--expected-channel <fingerprint>]\n tobs group-avatar-set <channel-id> (--avatar-file <path> | --clear) [--expected-channel <fingerprint>]\n tobs group-wake-policies <channel-id>\n tobs group-wake-set <channel-id> --bot <bot-id> (--mode all|mentions|digest|silent | --inherit) [--count <n>] [--interval <seconds>] [--expected-channel <fingerprint>]\n tobs group-member-remove <channel-id> --bot <bot-id> [--expected-channel <fingerprint>]\n tobs im-app-add <discord|slack|qq|dingtalk|wecom|matrix> --credentials-stdin\n tobs im-app-status <platform>\n tobs im-app-remove <platform> --app <app-id>\n tobs im-bind <id> --app <app-id>\n tobs im-unbind <id> --app <app-id>\n tobs im-status <id>\n tobs channel-connect <channel> --bot <id> --conversation <external-id> [--app <app-id>]\n tobs channel-ingests <channel>\n tobs browser-open <id>\n tobs browser-frame <id> --out <absolute-file>\n tobs browser-takeover <id> (--enabled | --disabled)\n tobs browser-input <id> --args-stdin\n tobs browser-stop <id>\n tobs computer-start [--target local|container]\n tobs computer-status\n tobs computer-stop\n tobs browser-tools\n tobs browser-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n tobs memory-file-target|memory-graph|memory-commit-diff|memory-changes <id> [...]\n tobs memory-working-diff <id> --path <file> --kind staged|unstaged|untracked|current\n tobs memory-checkpoints|memory-versions <id>\n tobs memory-restore <id> --checkpoint <id> --expected-current <id>\n tobs memory-restore-commit <id> --sha <commit> --expected-head <commit> [--name <version>]\n tobs memory-version-name <id> --sha <commit> --name <version>\n tobs memory-version-unname <id> --tag <version>\n tobs memory-repair <id> --expected-head <commit>\n tobs memory-move <id> (--memory-location <absolute-dir> | --default-location)\n tobs model-catalog\n tobs model-plan-set <id> --plan-stdin [--expected-revision <n>]\n tobs model-plan-customize <id> --orchestrator-provider <p> --orchestrator-model <m> [--orchestrator-effort <e>]\n tobs model-plan-inherit <id> [--expected-revision <n>]\n tobs model-plan-assignments-set <id> --plan-stdin [--expected-revision <n>]\n tobs model-preset-update <preset-id> [--name <n>] [--orchestrator-provider/-model/-effort ...]\n [--assignment-provider/-model/-effort ...] [--plan-stdin] [--expected-revision <n>]\n tobs overview-usage [--period today|week|month|quarter] [--after <bot-cursor>]\n tobs overview-memory [--after <bot-cursor>]\n tobs activity-overview\n tobs channel-activity-today\n tobs bot-usage <id> --start <YYYY-MM-DD> --end <YYYY-MM-DD> [--model <m>] [--provider <p>]\n [--purpose orchestrator|assignment|subagent]\n tobs bot-session-usage <id>\n tobs bot-activity-history <id> [--before <YYYY-MM-DD>] [--weeks <1-104>]\n tobs group-activity <channel>\n tobs bot-trace <id> [--turns <1-20>] [--session <session-id>|direct]\n tobs bot-tools\n tobs bot-tool <id> <tool> [--args-stdin]\n tobs computer-tools\n tobs computer-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n tobs todos\n tobs todo-add --title <text>\n tobs todo-update <todo-id> [--title <text>] [--done | --not-done]\n tobs todo-remove <todo-id>\n tobs todo-tools\n tobs todo-tool <id> <tool> [--args-stdin]\n tobs bot-attention <id> [--limit <1-100>] [--cursor <source-id>] [--state <state>]\n tobs bot-sessions <id> [--limit <1-100>]\n tobs bot-activity <id> [--limit <1-100>]\n tobs inbox [--category action|info|unread|replies|handled] [--bot <id>] [--channel <id>]\n [--limit <1-100>] [--cursor <cursor>] [--sort newest|oldest]\n [--snoozed | --dismissed] [--kind auto-rejection]\n tobs inbox-status\n tobs inbox-dismiss <item-id> [--source-key <source-event-id>]\n tobs inbox-restore <item-id> [--source-key <source-event-id>]\n tobs inbox-allow-once <autoreject:item-id>\n tobs inbox-snooze <item-id> [--source-key <source-event-id>] (--until <ISO time> | --clear)\n tobs inbox-ignore <source-event-id>\n tobs assignment-context <id> --session <session-id> --source <source-event-id>\n tobs channel-assignments <group-channel>\n tobs channel-assign <channel> (--section <section-id> | --unsectioned) [--index <n>]\n tobs session-ids\n tobs session-owner <session-id>\n tobs session-archive-set <id> --session <session-id> (--archived | --unarchived)\n tobs tool-approval-rules <id>\n tobs tool-approval-rule-revoke <id> --rule <rule-id> --confirm\n tobs private-mcp-set <id> --server <name> (--enabled | --disabled)\n tobs private-mcp-remove <id> --server <name> --confirm\n tobs bot-delete-preview <id>\n tobs bot-delete-memory-folder <id>\n tobs bot-delete-confirm <id> --confirmation-stdin --confirm [--erase-memory]\n tobs bot-delete-retry <id> --confirm\n tobs bot-avatar-set|bot-banner-set <id> (--file <image> | --clear)\n tobs bot-banner-set|bot-appearance-set <id> --recipe-stdin\n tobs bot-primary-color-set <id> (--color <#rrggbb> | --automatic)\n tobs bot-source-policies <id>\n tobs bot-source-policy-set <id> --source-class <class> [--wake <w>] [--delivery steer|turn]\n [--digest-count <n> --digest-interval <seconds>]\n tobs bot-source-policy-reset <id> --source-class <class>\n tobs bot-standing-limits-set <id> --soul <n> --core-memory <n>\n tobs developer-mode-set (--enabled | --disabled)\n tobs roster | human-identity | part-library\n tobs roster-batch pin|unpin|hide|move <channel>... [--section <section-id>]\n tobs roster-pins-set|roster-hidden-set [<channel>...]\n tobs roster-section-create <name>\n tobs roster-section-rename <section-id> --name <text>\n tobs roster-section-remove <section-id> --confirm\n tobs roster-section-reorder <section-id>...\n tobs roster-top-reorder section:<id>|channel:<id>...\n tobs part-library-add --part-stdin [--name <text>] [--parent <part-id>]\n tobs part-library-import --file <png|zip>\n tobs part-library-import-image --file <png> --slot <slot> --colors <n> [--name <text>]\n tobs part-library-export --out <absolute-file> [--part-id <id> | --part-stdin]\n tobs im-apps\n tobs im-authorize <feishu|weixin>\n tobs im-credentials <attempt-id> --credentials-stdin\n tobs im-verify <attempt-id> --verification-stdin\n tobs pairing-status <attempt-id> [--wait] [--timeout <seconds>]\n tobs im-cancel <attempt-id>\n tobs --help | tobs create --help\n\nOutput:\n stdout carries JSON, pretty by default; --compact condenses it to one line\n for agents. Human-readable lines go to stderr only.\n\nSources (exactly one per create):\n (none) blank bot; --preset applies a model preset, otherwise the model\n step reports no-model-yet and activation stays a Settings task\n --from-git clone a Git repository as Memory (HTTPS, SSH, or owner/repo\n shorthand for https://github.com/owner/repo.git)\n --from-zip import a bot bundle zip (same shape as the bot-zip export)\n --from-dir import a bot bundle directory (same shape as the bot-zip export;\n a .git subtree is skipped as files but packed as history)\n\nMachine contract:\n stdout carries exactly one JSON document. Success exits 0 with the bot id,\n DM channel, data directory, per-step statuses, and next actions. Failure\n exits non-zero with {\"error\": {\"code\", \"message\"}} using a stable code\n (usage, secret-in-argv, bad-zip, bad-bundle, bad-ref, unknown-preset,\n unknown-bot, unknown-channel, duplicate-preset, git-not-found, git-clone-failed, git-clone-timeout,\n memory-unavailable, lease-unavailable, bad-credentials, invalid-input, invalid-avatar,\n file-unreadable). Human-readable lines go to stderr only.\n Stop the Host before offline database commands: the writer lease is exclusive.\n\nLive Host:\n Require --host <loopback-origin|tailnet-HTTPS-origin> or DEEPSEEKBOT_HOST.\n Auth: DEEPSEEKBOT_HOST_TOKEN or --token-file <private-file>, never a token in argv.\n Login is fresh per call; cookies stay in memory. --timeout defaults to 120 seconds (max 600).\n send returns its receipt and exact committed replies. Inspect send-status on timeout\n before retrying; send never automatically resubmits. channel-messages also accepts --host.\n create (blank, Git, Zip and directory), list/show, model-presets/create/apply/plan,\n channels and the schedule* commands use the Host when --host or DEEPSEEKBOT_HOST is set. Do not combine\n --home with an online target; failures never fall back to local database access.\n Zip/directory uploads contain local bytes; Git cloning uses the Host environment.\n Creation errors retain known bot/steps; outcome unknown means inspect before retrying.\n Bot diagnostics are bounded summaries, not full execution logs or live streams.\n grant-revoke and grant-write-set use the Host when it is targeted; revokes and removals\n (grant, tool approval rule, private MCP server) need --confirm, like the Web UI.\n Deletion requires preview then stdin {\"token\":\"<preview.token>\"}; Memory is retained.\n Question stdin: {\"answers\":[{\"id\":\"question-id\",\"selected\":[\"option\"],\"custom\":\"optional\"}]}\n Private input stdin: {\"field_id\":\"confidential value\",...}; only declared fields.\n Private input commands return status/acceptance only and never retry a submission.\n\nModels:\n model-presets lists the profile presets; model-preset-create mints one from\n explicit provider/model routes; model-preset-apply and model-plan read and\n write through the Host when selected, otherwise directly offline. Routes are shape-checked plus\n provider-existence-checked offline; catalog liveness and readiness\n inspection stay Host-side, and model-plan reports readiness deferred.\n\nMemory:\n memory-snapshot/file/history/diff read the bot memory store; memory-save\n writes one file and commits it. --expected-head defaults to the current\n HEAD (pass it explicitly for compare-and-swap); --edit-id defaults to a\n fresh UUID and makes repeat submissions idempotent. Conflicts, missing\n files, and bad shas fail coded (memory-conflict, not-found,\n memory-unknown-commit).\n\nIdentity:\n The bot name is a label. Every create mints a new bot id, so reusing a name\n always returns a second bot and still exits 0.\n\nSecrets:\n Never pass secrets as arguments: any --api-key/--token/--secret/--password\n style flag is a hard error (secret-in-argv). Model keys and tokens travel in\n the environment (for example DEEPSEEK_API_KEY, GITHUB_TOKEN) or a stdin pipe\n (--persona-stdin); result JSON never contains secret values.\n\nHome:\n --home points at the target DSH_HOME (a fresh directory works with zero\n clicks); without it, DSH_HOME from the environment is used.\n";
16180
16685
  export declare function runBotCreateCli(argv: readonly string[], io: BotCreateCliIo): Promise<number>;
16181
16686
  //#endregion
16182
16687
  //#region packages/core/src/bots/slug.d.ts