@botharness/core 1.4.1 → 1.5.1

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
- import { ToolCallKind, ToolCallView, ToolExecution } from "@deepseek-ai/dsh-tools";
1
+ import { ToolCallKind, ToolCallView, ToolDefinition, 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: {
@@ -10335,7 +10361,7 @@ interface OutboundMessaging {
10335
10361
  defaults<Platform extends string = 'feishu'>(platform?: Platform): MessagingDefaults<Platform>;
10336
10362
  setDefaults(input: MessagingDefaultsInput): Promise<MessagingDefaults>;
10337
10363
  identity(botSlug: string, input: MessagingIdentityInput): Promise<MessagingIdentity>;
10338
- reply(botSlug: string, sourceEventId: string, text: string): Promise<OutboxIntent>;
10364
+ reply(botSlug: string, sourceEventId: string, text: string, messageKey?: string): Promise<OutboxIntent>;
10339
10365
  privateInputNotice(botSlug: string, sourceEventId: string, requestId: string, webUrl: string, authority: PrivateReplyAuthority): Promise<OutboxIntent>;
10340
10366
  acquireFile(botSlug: string, sourceEventId: string, attachmentId: string, signal?: AbortSignal): Promise<ChannelAttachmentRef>;
10341
10367
  readChannelMedia(input: {
@@ -10350,7 +10376,7 @@ interface OutboundMessaging {
10350
10376
  inline?: boolean;
10351
10377
  }>;
10352
10378
  prepareAudio(botSlug: string, sourceEventId: string, attachmentId: string, signal?: AbortSignal): Promise<ChannelAttachmentRef>;
10353
- replyFile(botSlug: string, sourceEventId: string, file: ChannelAttachmentRef): Promise<OutboxIntent>;
10379
+ replyFile(botSlug: string, sourceEventId: string, file: ChannelAttachmentRef, messageKey?: string): Promise<OutboxIntent>;
10354
10380
  register(provider: MessagingProvider): () => void;
10355
10381
  snapshot(botSlug: string): Promise<MessagingSnapshot>;
10356
10382
  disableBot(botSlug: string): Promise<void>;
@@ -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>;
10822
10876
  }
10823
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;
10896
+ }
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;
@@ -12153,10 +12384,18 @@ interface OrchestratorAssignmentAccess {
12153
12384
  }>;
12154
12385
  }
12155
12386
  interface OrchestratorAgentRun {
12387
+ replyDestination?(sourceEventId: string): {
12388
+ kind: 'external';
12389
+ } | {
12390
+ kind: 'channel';
12391
+ channelId: string;
12392
+ messageId: string;
12393
+ };
12156
12394
  tobCli?: boolean;
12157
12395
  inboxHistory?(input?: InboxHistoryInput): InboxHistoryPage;
12158
12396
  triage?: OrchestratorInboxTriage;
12159
12397
  acceptNativeInput?: () => boolean;
12398
+ setExecutionReady?(ready: boolean): void;
12160
12399
  requireContent?(): void;
12161
12400
  sessionId: string;
12162
12401
  resume: boolean;
@@ -12206,7 +12445,7 @@ interface OrchestratorAgentRun {
12206
12445
  read(sourceEventId: string): ExternalSource;
12207
12446
  share(sourceEventId: string, channelId: string): ReturnType<OutboundMessaging['inbound']['share']>;
12208
12447
  context(sourceEventId: string, query: ExternalContextQuery, signal?: AbortSignal): Promise<ExternalContextResult>;
12209
- reply(sourceEventId: string, text: string): ReturnType<OutboundMessaging['reply']>;
12448
+ reply(sourceEventId: string, text: string, messageKey?: string): ReturnType<OutboundMessaging['reply']>;
12210
12449
  saveFile(input: {
12211
12450
  sourceEventId: string;
12212
12451
  attachmentId: string;
@@ -12214,7 +12453,7 @@ interface OrchestratorAgentRun {
12214
12453
  destinationPath: string;
12215
12454
  representation?: 'playback';
12216
12455
  }): ReturnType<typeof saveAttachmentFile>;
12217
- replyFile(sourceEventId: string, fileId: string): ReturnType<OutboundMessaging['replyFile']>;
12456
+ replyFile(sourceEventId: string, fileId: string, messageKey?: string): ReturnType<OutboundMessaging['replyFile']>;
12218
12457
  };
12219
12458
  channels: OrchestratorChannelAccess;
12220
12459
  sourcePolicy?: {
@@ -12344,6 +12583,10 @@ interface BotCreateOutcome {
12344
12583
  model: 'host-default' | 'set';
12345
12584
  }
12346
12585
  interface OrchestratorChannelAccess {
12586
+ replySource?(sourceEventId: string): {
12587
+ channelId: string;
12588
+ messageId: string;
12589
+ };
12347
12590
  list(input?: ChannelListInput): ChannelListPage;
12348
12591
  read(input?: {
12349
12592
  channelId?: string;
@@ -12458,6 +12701,7 @@ interface OrchestratorChannelAccess {
12458
12701
  yieldToMessageIds?: string[];
12459
12702
  }): SendReviewOutcome;
12460
12703
  send(input: {
12704
+ replySourceEventId?: string;
12461
12705
  observationId?: string;
12462
12706
  draftId?: string;
12463
12707
  freshnessOverride?: FreshnessOverride;
@@ -12505,7 +12749,7 @@ interface BotAgentAdapter {
12505
12749
  stopBot?(botSlug: string, sessionIds: string[]): Promise<void>;
12506
12750
  releaseSession?(sessionId: string): Promise<void>;
12507
12751
  directTools?(): DirectBotToolSpec[];
12508
- runDirectTool?(run: OrchestratorAgentRun, tool: string, args: Record<string, unknown>, signal: AbortSignal): Promise<unknown>;
12752
+ runDirectTool?(run: OrchestratorAgentRun, tool: string, args: Record<string, unknown>, signal: AbortSignal, parentSessionId?: string): Promise<unknown>;
12509
12753
  close(): Promise<void>;
12510
12754
  }
12511
12755
  interface HandleDmMessageInput {
@@ -12531,7 +12775,6 @@ interface BotRuntime {
12531
12775
  captureTobCliAuthority?(sessionId: string): TobCliAuthority;
12532
12776
  canRequestPrivateInput?(sessionId: string, sourceEventId?: string): boolean;
12533
12777
  askChannel?(sessionId: string): string | undefined;
12534
- askNotice?(sessionId: string, toolName: string): string | undefined;
12535
12778
  bindPrivateInputOrigin?(sessionId: string, sourceEventId?: string): PrivateInputOrigin | undefined;
12536
12779
  beginAssignmentApprovalWait?(sessionId: string, callId: string, signal: AbortSignal): AssignmentApprovalWaitLease | undefined;
12537
12780
  assignmentApprovalWait?(sessionId: string, callId: string): AssignmentExecutionWait | undefined;
@@ -12541,6 +12784,7 @@ interface BotRuntime {
12541
12784
  bindNativeQuestionInput?(sessionId: string, channelId: string): ((deliver: () => boolean) => Promise<boolean>) | undefined;
12542
12785
  recoverNativeQuestionInput?(sessionId: string, channelId: string, requestMessageId: string): ((deliver: () => boolean) => Promise<boolean>) | undefined;
12543
12786
  nativeQuestionAvailable?(sessionId: string, channelId: string): boolean;
12787
+ prepareNativeOrchestratorStep?(sessionId: string, senderSessionIds: readonly string[], signal: AbortSignal): Promise<boolean>;
12544
12788
  originalAttachmentRoot?(sessionId: string, path: string, kind: 'read' | 'write', shell?: boolean): string | undefined;
12545
12789
  reconcileMemoryChangesOnStartup?(): void;
12546
12790
  retryDmMessage?(channelId: string, messageId: string): Promise<void>;
@@ -12639,6 +12883,7 @@ interface DshBotAgentAdapterOptions {
12639
12883
  agents: DshAgentHost;
12640
12884
  defaultModel: DshDefaultModelHost;
12641
12885
  resolveModelPlan?: (botSlug: string) => PersonaBotModelPlan | undefined;
12886
+ subagentTools?: (botSlug: string) => ToolDefinition[];
12642
12887
  hasSession?: (sessionId: string) => Promise<boolean>;
12643
12888
  prepareModelRoute?: (botSlug: string, role: 'orchestrator' | 'assignment', retainedRoute?: ModelRoute) => Promise<void>;
12644
12889
  resolveAgentPresets?: () => DshAgentPresetHost | undefined;
@@ -12662,9 +12907,6 @@ export declare function createDshBotAgentAdapter(options: DshBotAgentAdapterOpti
12662
12907
  acceptAssistantStream(sessionId: string, frame: AssistantStreamFrame): void;
12663
12908
  };
12664
12909
  //#endregion
12665
- //#region packages/core/src/devices/mount.d.ts
12666
- type DeviceWebUpgrade = (request: IncomingMessage, socket: Duplex, head: Buffer) => void;
12667
- //#endregion
12668
12910
  //#region packages/core/src/bots/deletion.d.ts
12669
12911
  interface MemoryOwnership {
12670
12912
  path: string;
@@ -12821,7 +13063,7 @@ interface ChannelLiveHub {
12821
13063
  close(): void;
12822
13064
  }
12823
13065
  //#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
13066
+ //#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
13067
  /**
12826
13068
  * One registered backend. A backend owns exactly one medium and shares its
12827
13069
  * lifecycle across all facets; facets are optional members — a backend that
@@ -12944,7 +13186,7 @@ interface KvUnit {
12944
13186
  close(): Promise<void>;
12945
13187
  }
12946
13188
  //#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
13189
+ //#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
13190
  /**
12949
13191
  * Mutable name → backend table. Multiple backends stay mounted side by side;
12950
13192
  * which backend serves which consumer is the consumer's configuration
@@ -12974,7 +13216,7 @@ declare class BackendRegistry {
12974
13216
  names(): string[];
12975
13217
  }
12976
13218
  //#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
13219
+ //#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
13220
  declare module '@deepseek-ai/cordis' {
12979
13221
  interface Context {
12980
13222
  storage: Storage;
@@ -13015,7 +13257,7 @@ declare class Storage extends Service {
13015
13257
  } ? D : never;
13016
13258
  }
13017
13259
  //#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
13260
+ //#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
13261
  /** Global singleton declaration: schema plus the value used before the first write. */
13020
13262
  interface DomainGlobalSpec<G> {
13021
13263
  /** Validates the stored global at the durable boundary. */
@@ -13078,7 +13320,7 @@ type TableKeyOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables']
13078
13320
  /** Value type of one declared table. */
13079
13321
  type TableValueOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables'][N] extends DomainTableSpec<string, infer V> ? V : never;
13080
13322
  //#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
13323
+ //#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
13324
  /** Handle on a domain's global singleton. */
13083
13325
  interface DomainGlobal<G> {
13084
13326
  /**
@@ -13232,7 +13474,7 @@ declare class DomainImpl {
13232
13474
  private assertReadable;
13233
13475
  }
13234
13476
  //#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
13477
+ //#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
13478
  /**
13237
13479
  * Change-event vocabulary of the domain data form. Every durable write emits
13238
13480
  * one event after the backend resolves durability, carrying the new snapshot
@@ -13277,7 +13519,7 @@ declare module '@deepseek-ai/cordis' {
13277
13519
  }
13278
13520
  }
13279
13521
  //#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
13522
+ //#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
13523
  declare module '@deepseek-ai/dsh-storage' {
13282
13524
  interface StorageForms {
13283
13525
  domain: DomainFacility;
@@ -13540,6 +13782,7 @@ interface HumanAttentionItem {
13540
13782
  }
13541
13783
  interface HumanAttentionPage {
13542
13784
  queryVersion?: 1;
13785
+ notificationVersion?: 1;
13543
13786
  items: HumanAttentionItem[];
13544
13787
  nextCursor?: string;
13545
13788
  }
@@ -13558,6 +13801,7 @@ interface HumanAttentionQuery {
13558
13801
  itemId?: string;
13559
13802
  includeDismissed?: boolean;
13560
13803
  snoozed?: boolean;
13804
+ dismissed?: boolean;
13561
13805
  category?: HumanAttentionCategory;
13562
13806
  kind?: HumanAttentionItem['kind'];
13563
13807
  sort?: HumanAttentionSort;
@@ -13573,7 +13817,10 @@ interface HumanAttentionQuery {
13573
13817
  channelId: string;
13574
13818
  unreadCount: number;
13575
13819
  }>;
13576
- dmReplies(limit: number): HumanAttentionItem[];
13820
+ dmReplies(limit: number, before?: {
13821
+ createdAt: string;
13822
+ sourceEventId: string;
13823
+ }): HumanAttentionItem[];
13577
13824
  durableAttention(): Array<{
13578
13825
  botSlug: string;
13579
13826
  waitingHumanCount: number;
@@ -13593,6 +13840,7 @@ interface HumanAttentionQuery {
13593
13840
  }
13594
13841
  interface HumanAttentionDecisions {
13595
13842
  dismiss(item: HumanAttentionItem): boolean;
13843
+ restore(item: HumanAttentionItem): boolean;
13596
13844
  snooze(item: HumanAttentionItem, until: string | null): boolean;
13597
13845
  ignoreAssignmentReport(sourceEventId: string): boolean;
13598
13846
  }
@@ -13720,6 +13968,17 @@ interface UsageProjection {
13720
13968
  idleCompactions(botSlug: string, sinceIso: string): IdleCompactionRecord[];
13721
13969
  }
13722
13970
  //#endregion
13971
+ //#region packages/core/src/runtime/subagent-model-tools.d.ts
13972
+ declare module '@deepseek-ai/dsh-jobs' {
13973
+ interface JobKindMap {
13974
+ subagent: 'subagent';
13975
+ }
13976
+ }
13977
+ interface BotSubagentPresetConfig {
13978
+ agentPreset?: string;
13979
+ allowedAgentPresets?: string[] | undefined;
13980
+ }
13981
+ //#endregion
13723
13982
  //#region packages/core/src/plugin.d.ts
13724
13983
  export declare const name = "botharness-core";
13725
13984
  export declare const inject: string[];
@@ -13729,6 +13988,7 @@ interface BotHarnessConfig {
13729
13988
  privateInputExecution?: boolean;
13730
13989
  privateInputWebUrl?: string;
13731
13990
  agentPreset?: string;
13991
+ subagent?: BotSubagentPresetConfig;
13732
13992
  activityDetailConsumers?: string[];
13733
13993
  marketplaceUrl?: string;
13734
13994
  telemetry?: boolean;
@@ -13736,12 +13996,12 @@ interface BotHarnessConfig {
13736
13996
  export declare const DEFAULT_CONFIG: BotHarnessConfig;
13737
13997
  export declare const Config: Schema$1<BotHarnessConfig>;
13738
13998
  interface BotHarnessCore {
13739
- deviceWebUpgrade?: DeviceWebUpgrade;
13740
13999
  profileRecovery: ProfileRecovery;
13741
14000
  rootDir: string;
13742
14001
  onboarding: BotOnboarding;
13743
14002
  tob: TobService;
13744
14003
  creations: BotCreationService;
14004
+ zipImports: BotZipImportService;
13745
14005
  channelManagement: ChannelManagementService;
13746
14006
  partLibrary: PartLibrary;
13747
14007
  operationalDatabase: OperationalDatabaseOwner;
@@ -14138,6 +14398,76 @@ interface TurnTrace {
14138
14398
  readonly noToolCalls: boolean;
14139
14399
  }
14140
14400
  //#endregion
14401
+ //#region packages/core/src/storage/media-cleanup.d.ts
14402
+ declare const STORAGE_MEDIA_KINDS: readonly ['image', 'video', 'audio', 'file'];
14403
+ type StorageMediaKind = (typeof STORAGE_MEDIA_KINDS)[number];
14404
+ interface StorageMediaTotal {
14405
+ kind: StorageMediaKind;
14406
+ count: number;
14407
+ bytes: number;
14408
+ }
14409
+ interface StorageChatUsage {
14410
+ channelId: string;
14411
+ name: string;
14412
+ type: ChannelRecord['type'];
14413
+ deleted?: true;
14414
+ messages: number;
14415
+ oldestAt?: string;
14416
+ mediaBytes: number;
14417
+ media: StorageMediaTotal[];
14418
+ }
14419
+ interface StorageUsage {
14420
+ measuredAt: string;
14421
+ totalBytes: number;
14422
+ parts: {
14423
+ kind: 'media' | 'messages' | 'memory' | 'other';
14424
+ bytes: number;
14425
+ }[];
14426
+ chats: StorageChatUsage[];
14427
+ }
14428
+ interface MediaCleanupScope {
14429
+ before: string;
14430
+ channelIds?: string[] | undefined;
14431
+ kinds?: StorageMediaKind[] | undefined;
14432
+ }
14433
+ interface CleanupScope {
14434
+ before: string;
14435
+ channelIds: string[];
14436
+ kinds: StorageMediaKind[];
14437
+ }
14438
+ interface MediaCleanupPreview {
14439
+ token: string;
14440
+ expiresAt: string;
14441
+ scope: CleanupScope;
14442
+ messages: number;
14443
+ files: number;
14444
+ bytes: number;
14445
+ freedBytes: number;
14446
+ kinds: StorageMediaTotal[];
14447
+ chats: {
14448
+ channelId: string;
14449
+ name: string;
14450
+ files: number;
14451
+ bytes: number;
14452
+ }[];
14453
+ kept: {
14454
+ reason: 'bot-working' | 'delivery-pending' | 'memory' | 'migration';
14455
+ files: number;
14456
+ }[];
14457
+ }
14458
+ interface MediaCleanupResult {
14459
+ messages: number;
14460
+ files: number;
14461
+ freedBytes: number;
14462
+ removedFiles: number;
14463
+ pendingFiles: number;
14464
+ }
14465
+ interface StorageCleanup {
14466
+ usage(): StorageUsage;
14467
+ preview(scope: MediaCleanupScope): MediaCleanupPreview;
14468
+ confirm(scope: MediaCleanupScope, token: string): MediaCleanupResult;
14469
+ }
14470
+ //#endregion
14141
14471
  //#region packages/core/src/marketplace/altcha.d.ts
14142
14472
  declare const ALTCHA_ALGORITHM = "SHA-256";
14143
14473
  interface AltchaChallenge {
@@ -14162,10 +14492,12 @@ interface MarketplaceEntry {
14162
14492
  displayName: string | null;
14163
14493
  roles: string[];
14164
14494
  description: string | null;
14495
+ descriptionGenerated: boolean;
14165
14496
  banner: MarketplaceBanner | null;
14166
14497
  topics: string[];
14167
14498
  stars: number;
14168
14499
  pushedAt: string;
14500
+ createdAt?: string;
14169
14501
  htmlUrl: string;
14170
14502
  cloneUrl: string;
14171
14503
  defaultBranch: string;
@@ -14178,12 +14510,13 @@ interface MarketplacePage {
14178
14510
  bots: MarketplaceEntry[];
14179
14511
  nextCursor?: string;
14180
14512
  }
14181
- type MarketplaceSort = 'updated' | 'stars';
14513
+ type MarketplaceSort = 'updated' | 'created' | 'stars';
14182
14514
  interface MarketplaceQuery {
14183
14515
  cursor?: string;
14184
14516
  sort?: MarketplaceSort;
14185
14517
  q?: string;
14186
14518
  topic?: string;
14519
+ lang?: MarketplaceLanguage;
14187
14520
  }
14188
14521
  interface MarketplaceTopic {
14189
14522
  topic: string;
@@ -14192,6 +14525,7 @@ interface MarketplaceTopic {
14192
14525
  interface MarketplaceDetail {
14193
14526
  bot: MarketplaceEntry;
14194
14527
  readme: string | null;
14528
+ readmeLanguage: MarketplaceLanguage | null;
14195
14529
  commitSha: string | null;
14196
14530
  }
14197
14531
  type MarketplaceResult<T> = {
@@ -14204,7 +14538,7 @@ type MarketplaceResult<T> = {
14204
14538
  interface MarketplaceClient {
14205
14539
  list(query: MarketplaceQuery): Promise<MarketplaceResult<MarketplacePage>>;
14206
14540
  topics(): Promise<MarketplaceResult<MarketplaceTopic[]>>;
14207
- detail(id: string): Promise<MarketplaceResult<MarketplaceDetail>>;
14541
+ detail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceResult<MarketplaceDetail>>;
14208
14542
  challenge(): Promise<MarketplaceResult<AltchaChallenge>>;
14209
14543
  submit(url: string, altcha: string): Promise<MarketplaceResult<{
14210
14544
  bot: MarketplaceEntry;
@@ -14313,6 +14647,7 @@ type ReleaseInstall = {
14313
14647
  current: string;
14314
14648
  installed: string;
14315
14649
  restartable: boolean;
14650
+ applied: boolean;
14316
14651
  } | {
14317
14652
  status: 'failed';
14318
14653
  reason: ReleaseInstallFailure;
@@ -14332,6 +14667,70 @@ interface ReleaseService {
14332
14667
  restart(beforeEffect?: (pendingVersion: string) => void): Promise<ReleaseRestart>;
14333
14668
  }
14334
14669
  //#endregion
14670
+ //#region packages/core/src/release/plugins.d.ts
14671
+ type PluginUpdate = {
14672
+ name: string;
14673
+ status: 'development';
14674
+ current: string;
14675
+ } | {
14676
+ name: string;
14677
+ status: 'unavailable';
14678
+ current: string;
14679
+ } | {
14680
+ name: string;
14681
+ status: 'current';
14682
+ current: string;
14683
+ latest: string;
14684
+ } | {
14685
+ name: string;
14686
+ status: 'blocked';
14687
+ current: string;
14688
+ latest: string;
14689
+ compatibility: ReleaseCompatibility;
14690
+ } | {
14691
+ name: string;
14692
+ status: 'available';
14693
+ current: string;
14694
+ latest: string;
14695
+ compatibility: ReleaseCompatibility;
14696
+ } | {
14697
+ name: string;
14698
+ status: 'restart-required';
14699
+ current: string;
14700
+ installed: string;
14701
+ };
14702
+ interface PluginUpdates {
14703
+ installable: boolean;
14704
+ restartable: boolean;
14705
+ plugins: PluginUpdate[];
14706
+ }
14707
+ type PluginInstall = {
14708
+ status: 'installed';
14709
+ name: string;
14710
+ current: string;
14711
+ installed: string;
14712
+ restartable: boolean;
14713
+ applied: boolean;
14714
+ } | {
14715
+ status: 'failed';
14716
+ name: string;
14717
+ reason: ReleaseInstallFailure | 'unknown-plugin';
14718
+ diagnostic?: string;
14719
+ logPath?: string;
14720
+ };
14721
+ type PluginRestart = {
14722
+ status: 'restarting';
14723
+ plugins: string[];
14724
+ } | {
14725
+ status: 'failed';
14726
+ reason: 'unavailable' | 'not-pending';
14727
+ };
14728
+ interface PluginUpdateService {
14729
+ list(force?: boolean): Promise<PluginUpdates>;
14730
+ install(name: string, version: string, beforeEffect?: () => void): Promise<PluginInstall>;
14731
+ restart(beforeEffect?: (pending: string[]) => void): Promise<PluginRestart>;
14732
+ }
14733
+ //#endregion
14335
14734
  //#region packages/core/src/bots/banner-http.d.ts
14336
14735
  type BotBannerSummary = Extract<BotBanner, {
14337
14736
  recipe: unknown;
@@ -14390,6 +14789,38 @@ interface ChannelActivityToday {
14390
14789
  channels: ChannelActivityRow[];
14391
14790
  }
14392
14791
  //#endregion
14792
+ //#region packages/core/src/data-reset/reset.d.ts
14793
+ type DataResetTargetKind = 'data' | 'im-settings' | 'local-tools';
14794
+ type DataResetKeptKind = 'credentials' | 'memory' | 'exports';
14795
+ interface DataResetTarget {
14796
+ kind: DataResetTargetKind;
14797
+ path: string;
14798
+ bytes: number;
14799
+ files: number;
14800
+ partial?: boolean;
14801
+ }
14802
+ interface DataResetPreview {
14803
+ token: string;
14804
+ expiresAt: string;
14805
+ bots: number;
14806
+ targets: DataResetTarget[];
14807
+ kept: {
14808
+ kind: DataResetKeptKind;
14809
+ path: string;
14810
+ }[];
14811
+ restartable: boolean;
14812
+ }
14813
+ type DataResetResult = {
14814
+ status: 'restarting';
14815
+ } | {
14816
+ status: 'restart-required';
14817
+ reason: 'restart-unavailable';
14818
+ };
14819
+ interface DataReset {
14820
+ preview(): DataResetPreview;
14821
+ confirm(token: string): DataResetResult;
14822
+ }
14823
+ //#endregion
14393
14824
  //#region packages/core/src/models/readiness.d.ts
14394
14825
  interface ModelRouteRepair {
14395
14826
  code: 'legacy-ambiguous' | 'legacy-missing' | 'route-unavailable';
@@ -14406,6 +14837,24 @@ interface ModelRouteReadiness {
14406
14837
  prepare(slug: string, role: 'orchestrator' | 'assignment', retainedRoute?: ModelRoute): Promise<void>;
14407
14838
  }
14408
14839
  //#endregion
14840
+ //#region packages/core/src/workspaces/folder-browse.d.ts
14841
+ interface BrowsedFolder {
14842
+ name: string;
14843
+ path: string;
14844
+ hidden: boolean;
14845
+ }
14846
+ interface FolderListing {
14847
+ path: string;
14848
+ home: string;
14849
+ crumbs: BrowsedFolder[];
14850
+ entries: BrowsedFolder[];
14851
+ truncated: boolean;
14852
+ roots: BrowsedFolder[];
14853
+ }
14854
+ interface FolderBrowser {
14855
+ list(path?: string): FolderListing;
14856
+ }
14857
+ //#endregion
14409
14858
  //#region packages/core/src/memory/managed-git.d.ts
14410
14859
  type GitSource = 'system' | 'managed';
14411
14860
  type GitInstallFailure = 'unsupported' | 'network' | 'checksum' | 'unpack' | 'unrunnable';
@@ -14776,13 +15225,39 @@ interface BridgeMethods {
14776
15225
  channelId?: string;
14777
15226
  receipt?: BotCreationReceipt;
14778
15227
  }>;
15228
+ botImportPreview(payload: unknown): Promise<BridgeResult<Awaited<ReturnType<BotImportsService['previewGit']>>>>;
15229
+ botImportLookup(payload: unknown): BridgeResult<{
15230
+ receipt: BotCreationReceipt | null;
15231
+ }>;
15232
+ zipUploadBegin(payload: unknown): BridgeResult<BotZipUploadStatus>;
15233
+ zipUploadChunk(payload: unknown): BridgeResult<BotZipUploadStatus>;
15234
+ zipUploadPreview(payload: unknown): BridgeResult<BotZipPreview>;
15235
+ zipImportLookup(payload: unknown): BridgeResult<{
15236
+ receipt: BotCreationReceipt | null;
15237
+ }>;
15238
+ zipImport(payload: unknown): Promise<BridgeResult<{
15239
+ bot: PersonaBotDetail;
15240
+ channelId: string;
15241
+ receipt?: BotCreationReceipt;
15242
+ }>>;
15243
+ createLookup(payload: unknown): BridgeResult<{
15244
+ receipt: BotCreationReceipt | null;
15245
+ }>;
14779
15246
  createFromGit(payload: unknown): Promise<BridgeResult<{
14780
15247
  bot: PersonaBotDetail;
14781
15248
  httpsFallback?: HttpsFallback;
15249
+ receipt?: BotCreationReceipt;
15250
+ channelId?: string;
14782
15251
  }>>;
14783
15252
  update(payload: unknown): BridgeResult<{
14784
15253
  bot: PersonaBotDetail;
14785
15254
  }>;
15255
+ dataResetPreview(): BridgeResult<{
15256
+ preview: DataResetPreview;
15257
+ }>;
15258
+ dataResetConfirm(payload: unknown): BridgeResult<{
15259
+ reset: DataResetResult;
15260
+ }>;
14786
15261
  deletionPreview(payload: unknown): BridgeResult<{
14787
15262
  preview: PersonaBotDeletionPreview;
14788
15263
  }>;
@@ -14864,6 +15339,11 @@ interface BridgeMethods {
14864
15339
  before?: string;
14865
15340
  }>;
14866
15341
  channelPurgePreview(payload: unknown): BridgeResult<PurgePreview>;
15342
+ storageUsage(payload?: unknown): BridgeResult<StorageUsage>;
15343
+ storageCleanupPreview(payload: unknown): BridgeResult<MediaCleanupPreview>;
15344
+ storageCleanupConfirm(payload: unknown): BridgeResult<MediaCleanupResult>;
15345
+ storageMessagesCleanupPreview(payload: unknown): BridgeResult<TextCleanupPreview>;
15346
+ storageMessagesCleanupConfirm(payload: unknown): BridgeResult<TextCleanupResult>;
14867
15347
  channelPurgeConfirm(payload: unknown): BridgeResult<{
14868
15348
  accepted: number;
14869
15349
  cleanupPending?: number;
@@ -14923,6 +15403,9 @@ interface BridgeMethods {
14923
15403
  humanAttentionDismiss(payload: unknown): BridgeResult<{
14924
15404
  accepted: boolean;
14925
15405
  }>;
15406
+ humanAttentionRestore(payload: unknown): BridgeResult<{
15407
+ accepted: boolean;
15408
+ }>;
14926
15409
  humanAttentionIgnore(payload: unknown): BridgeResult<{
14927
15410
  accepted: boolean;
14928
15411
  }>;
@@ -14952,6 +15435,7 @@ interface BridgeMethods {
14952
15435
  kind: 'directory';
14953
15436
  };
14954
15437
  }>;
15438
+ folderBrowse(payload: unknown): BridgeResult<FolderListing>;
14955
15439
  grants(payload: unknown): BridgeResult<{
14956
15440
  grants: WorkspaceGrant[];
14957
15441
  }>;
@@ -15221,6 +15705,9 @@ interface BridgeMethods {
15221
15705
  releaseUpdate(payload?: unknown): Promise<BridgeResult<ReleaseUpdate>>;
15222
15706
  releaseInstall(payload: unknown): Promise<BridgeResult<ReleaseInstall>>;
15223
15707
  releaseRestart(payload: unknown): Promise<BridgeResult<ReleaseRestart>>;
15708
+ pluginUpdates(payload?: unknown): Promise<BridgeResult<PluginUpdates>>;
15709
+ pluginInstall(payload: unknown): Promise<BridgeResult<PluginInstall>>;
15710
+ pluginRestart(payload: unknown): Promise<BridgeResult<PluginRestart>>;
15224
15711
  telemetryStatus(): BridgeResult<TelemetryStatus>;
15225
15712
  gitStatus(): BridgeResult<GitStatus>;
15226
15713
  gitInstall(): BridgeResult<GitStatus>;
@@ -15276,10 +15763,14 @@ interface BridgeMethodsDeps {
15276
15763
  warn?: (message: string) => void;
15277
15764
  registry: PersonaBotRegistry;
15278
15765
  creations?: BotCreationService;
15766
+ imports?: BotImportsService;
15767
+ zipImports?: BotZipImportService;
15279
15768
  channelManagement?: ChannelManagementService;
15280
15769
  approvalTemplates?: ApprovalTemplateLibrary;
15281
15770
  deletions?: PersonaBotDeletions;
15282
15771
  contentPurge?: ContentPurge;
15772
+ storage?: StorageCleanup;
15773
+ dataReset?: DataReset;
15283
15774
  attachments?: AttachmentStore;
15284
15775
  modelPresets?: ModelPresetStore;
15285
15776
  modelCatalog?: ModelCatalog;
@@ -15317,6 +15808,7 @@ interface BridgeMethodsDeps {
15317
15808
  humanAttention?: HumanAttentionQuery;
15318
15809
  humanAttentionDecisions?: HumanAttentionDecisions;
15319
15810
  grants?: WorkspaceGrantStore;
15811
+ folders?: FolderBrowser;
15320
15812
  externalMessaging?: OutboundMessaging;
15321
15813
  toolApproval?: ChannelToolApproval;
15322
15814
  userQuestions?: ChannelUserQuestions;
@@ -15337,6 +15829,7 @@ interface BridgeMethodsDeps {
15337
15829
  createBotId?: () => string;
15338
15830
  marketplace?: MarketplaceClient;
15339
15831
  release?: ReleaseService;
15832
+ plugins?: PluginUpdateService;
15340
15833
  telemetry?: {
15341
15834
  status(): TelemetryStatus;
15342
15835
  setPreference(enabled: boolean): TelemetryStatus;
@@ -15657,13 +16150,39 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15657
16150
  channelId?: string;
15658
16151
  receipt?: BotCreationReceipt;
15659
16152
  };
15660
- createFromGit(displayName: string, gitUrl: string, roles?: string[], description?: string): Promise<{
16153
+ createLookup(operationKey: string, displayName: string, roles?: string[], persona?: string, description?: string, model?: string, preset?: string, workspaces?: string[], avatar?: string, memoryLocation?: string, coreMemory?: string): {
16154
+ receipt: BotCreationReceipt | null;
16155
+ };
16156
+ botImportPreview(gitUrl: string): Promise<Awaited<ReturnType<BotImportsService['previewGit']>>>;
16157
+ botImportLookup(operationKey: string, gitUrl: string, expectedCommit: string, displayName: string, roles?: string[], description?: string): {
16158
+ receipt: BotCreationReceipt | null;
16159
+ };
16160
+ zipUploadBegin(uploadKey: string, sha256: string, sizeBytes: number): BotZipUploadStatus;
16161
+ zipUploadChunk(uploadKey: string, sha256: string, sizeBytes: number, offset: number, dataBase64: string): BotZipUploadStatus;
16162
+ zipUploadPreview(uploadKey: string, sha256: string, sizeBytes: number): BotZipPreview;
16163
+ zipImportLookup(operationKey: string, sha256: string, displayName: string, roles?: string[], description?: string): {
16164
+ receipt: BotCreationReceipt | null;
16165
+ };
16166
+ zipImport(operationKey: string, uploadKey: string, sha256: string, sizeBytes: number, displayName: string, roles?: string[], description?: string): Promise<{
16167
+ bot: PersonaBotDetail;
16168
+ channelId: string;
16169
+ receipt?: BotCreationReceipt;
16170
+ }>;
16171
+ createFromGit(displayName: string, gitUrl: string, roles?: string[], description?: string, origin?: 'marketplace', operationKey?: string, expectedCommit?: string): Promise<{
15661
16172
  bot: PersonaBotDetail;
15662
16173
  httpsFallback?: HttpsFallback;
16174
+ receipt?: BotCreationReceipt;
16175
+ channelId?: string;
15663
16176
  }>;
15664
16177
  update(slug: string, patch: PersonaBotPatch, expectedProfile?: string): {
15665
16178
  bot: PersonaBotDetail;
15666
16179
  };
16180
+ dataResetPreview(): {
16181
+ preview: DataResetPreview;
16182
+ };
16183
+ dataResetConfirm(token: string): {
16184
+ reset: DataResetResult;
16185
+ };
15667
16186
  deletionPreview(slug: string): {
15668
16187
  preview: PersonaBotDeletionPreview;
15669
16188
  };
@@ -15812,6 +16331,11 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15812
16331
  sources: PurgeSource[];
15813
16332
  before?: string;
15814
16333
  };
16334
+ storageUsage(): StorageUsage;
16335
+ storageCleanupPreview(before: string, channelIds?: string[], kinds?: StorageMediaKind[]): MediaCleanupPreview;
16336
+ storageCleanupConfirm(before: string, channelIds: string[] | undefined, kinds: StorageMediaKind[] | undefined, token: string): MediaCleanupResult;
16337
+ storageMessagesCleanupPreview(before: string, channelIds?: string[]): TextCleanupPreview;
16338
+ storageMessagesCleanupConfirm(before: string, channelIds: string[] | undefined, token: string): TextCleanupResult;
15815
16339
  channelPurgePreview(channelId: string, sourceEventIds: string[]): PurgePreview;
15816
16340
  channelPurgeConfirm(channelId: string, sourceEventIds: string[], token: string): {
15817
16341
  accepted: number;
@@ -15857,7 +16381,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15857
16381
  };
15858
16382
  channelActivityToday(): ChannelActivityToday;
15859
16383
  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;
16384
+ 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
16385
  humanAttentionStatus(messageCounts?: boolean): HumanAttentionStatus;
15862
16386
  channelUnreadCounts(): {
15863
16387
  channels: Array<{
@@ -15871,6 +16395,9 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15871
16395
  humanAttentionDismiss(itemId: string, sourceKey: string): {
15872
16396
  accepted: boolean;
15873
16397
  };
16398
+ humanAttentionRestore(itemId: string, sourceKey: string): {
16399
+ accepted: boolean;
16400
+ };
15874
16401
  humanAttentionIgnore(sourceEventId: string): {
15875
16402
  accepted: boolean;
15876
16403
  };
@@ -15899,6 +16426,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
15899
16426
  messageAttachmentTarget(channelId: string, messageId: string, fileId: string): {
15900
16427
  target: MemoryFileTarget;
15901
16428
  };
16429
+ folderBrowse(path?: string): FolderListing;
15902
16430
  workspaceFileTarget(slug: string, grantId: string): {
15903
16431
  target: {
15904
16432
  path: string;
@@ -16101,11 +16629,14 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
16101
16629
  received: true;
16102
16630
  }>;
16103
16631
  marketplaceTopics(): Promise<MarketplaceTopic[]>;
16104
- marketplaceDetail(id: string): Promise<MarketplaceDetail>;
16632
+ marketplaceDetail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceDetail>;
16105
16633
  releaseInfo(since?: string): Promise<ReleaseInfo>;
16106
16634
  releaseUpdate(force?: boolean): Promise<ReleaseUpdate>;
16107
16635
  releaseInstall(version: string): Promise<ReleaseInstall>;
16108
16636
  releaseRestart(): Promise<ReleaseRestart>;
16637
+ pluginUpdates(force?: boolean): Promise<PluginUpdates>;
16638
+ pluginInstall(name: string, version: string): Promise<PluginInstall>;
16639
+ pluginRestart(): Promise<PluginRestart>;
16109
16640
  telemetryStatus(): TelemetryStatus;
16110
16641
  gitStatus(): GitStatus;
16111
16642
  gitInstall(): GitStatus;
@@ -16176,7 +16707,7 @@ interface BotCreateFailure {
16176
16707
  name: string;
16177
16708
  };
16178
16709
  }
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";
16710
+ 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
16711
  export declare function runBotCreateCli(argv: readonly string[], io: BotCreateCliIo): Promise<number>;
16181
16712
  //#endregion
16182
16713
  //#region packages/core/src/bots/slug.d.ts