@botharness/core 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +212 -1
- package/CHANGELOG.zh.md +212 -1
- package/cli/index.mjs +68237 -53602
- package/dist/index.d.mts +746 -83
- package/dist/index.mjs +59228 -37892
- package/package.json +10 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ToolCallKind, ToolCallView, ToolExecution } from "@deepseek-ai/dsh-tools";
|
|
2
2
|
import { parseArgs } from "node:util";
|
|
3
3
|
import { DatabaseSync } from "node:sqlite";
|
|
4
|
-
import { IncomingMessage } from "node:http";
|
|
5
|
-
import { Duplex } from "node:stream";
|
|
6
4
|
import { BlockAssembler, ContextFormed, ToolCallId } from "@deepseek-ai/dsh-llm";
|
|
7
5
|
import { Session, SessionId } from "@deepseek-ai/dsh-session";
|
|
8
6
|
import { Scoped } from "@deepseek-ai/dsh-scope";
|
|
@@ -1321,6 +1319,98 @@ interface ModelCatalog {
|
|
|
1321
1319
|
defaultRoute?(): ModelRoute | undefined;
|
|
1322
1320
|
}
|
|
1323
1321
|
//#endregion
|
|
1322
|
+
//#region packages/core/src/sessions/source.d.ts
|
|
1323
|
+
interface DshSessionEvent {
|
|
1324
|
+
type: string;
|
|
1325
|
+
seq?: number;
|
|
1326
|
+
surfaceOp?: unknown;
|
|
1327
|
+
time: number;
|
|
1328
|
+
data: unknown;
|
|
1329
|
+
}
|
|
1330
|
+
interface DshSessionHeader {
|
|
1331
|
+
cwd?: string;
|
|
1332
|
+
createdAt: number;
|
|
1333
|
+
parentSession?: string;
|
|
1334
|
+
origin?: 'subagent';
|
|
1335
|
+
}
|
|
1336
|
+
interface DshSession {
|
|
1337
|
+
id: string;
|
|
1338
|
+
header: DshSessionHeader;
|
|
1339
|
+
snapshotEvents(): readonly DshSessionEvent[];
|
|
1340
|
+
}
|
|
1341
|
+
interface DshSessionStore {
|
|
1342
|
+
get(sessionId: string): DshSession | undefined;
|
|
1343
|
+
list(): readonly DshSession[];
|
|
1344
|
+
}
|
|
1345
|
+
//#endregion
|
|
1346
|
+
//#region packages/core/src/runtime/idle-compaction-settings.d.ts
|
|
1347
|
+
interface IdleCompactionRoute {
|
|
1348
|
+
provider: string;
|
|
1349
|
+
model: string;
|
|
1350
|
+
}
|
|
1351
|
+
interface IdleCompactionSettingsValue {
|
|
1352
|
+
enabled: boolean;
|
|
1353
|
+
cacheLifetimes: Record<string, number>;
|
|
1354
|
+
}
|
|
1355
|
+
interface RouteCacheObservation {
|
|
1356
|
+
warmGapMs?: number;
|
|
1357
|
+
coldGapMs?: number;
|
|
1358
|
+
samples: number;
|
|
1359
|
+
}
|
|
1360
|
+
interface IdleCompactionSettings {
|
|
1361
|
+
read(): IdleCompactionSettingsValue | 'invalid';
|
|
1362
|
+
setEnabled(enabled: boolean): IdleCompactionSettingsValue;
|
|
1363
|
+
setCacheLifetime(route: IdleCompactionRoute, seconds: number | null): IdleCompactionSettingsValue;
|
|
1364
|
+
observations(): Record<string, RouteCacheObservation>;
|
|
1365
|
+
saveObservation(key: string, observation: RouteCacheObservation): void;
|
|
1366
|
+
}
|
|
1367
|
+
//#endregion
|
|
1368
|
+
//#region packages/core/src/runtime/idle-compaction.d.ts
|
|
1369
|
+
type CacheLifetimeSource = 'setting' | 'catalog' | 'observed' | 'default' | 'unknown';
|
|
1370
|
+
type IdleCompactionOutcome = 'compacted' | 'nothing' | 'failed';
|
|
1371
|
+
interface IdleCompactionRecord {
|
|
1372
|
+
botSlug: string;
|
|
1373
|
+
at: string;
|
|
1374
|
+
provider: string;
|
|
1375
|
+
model: string;
|
|
1376
|
+
idleGapMs: number;
|
|
1377
|
+
cacheLifetimeMs: number;
|
|
1378
|
+
cacheLifetimeSource: CacheLifetimeSource;
|
|
1379
|
+
tokensBefore: number;
|
|
1380
|
+
tokensAfter: number | null;
|
|
1381
|
+
outcome: IdleCompactionOutcome;
|
|
1382
|
+
error?: string;
|
|
1383
|
+
inputTokens: number | null;
|
|
1384
|
+
cacheReadTokens: number | null;
|
|
1385
|
+
outputTokens: number | null;
|
|
1386
|
+
}
|
|
1387
|
+
interface IdleCompactionRouteView {
|
|
1388
|
+
provider: string;
|
|
1389
|
+
model: string;
|
|
1390
|
+
cacheLifetimeSeconds: number | null;
|
|
1391
|
+
source: CacheLifetimeSource;
|
|
1392
|
+
compactAfterSeconds: number | null;
|
|
1393
|
+
overrideSeconds: number | null;
|
|
1394
|
+
observedWarmGapSeconds: number | null;
|
|
1395
|
+
observedColdGapSeconds: number | null;
|
|
1396
|
+
}
|
|
1397
|
+
type ManualCompactionOutcome = 'compacted' | 'nothing' | 'busy' | 'not-loaded';
|
|
1398
|
+
interface ManualCompactionResult {
|
|
1399
|
+
outcome: ManualCompactionOutcome;
|
|
1400
|
+
tokensBefore: number | null;
|
|
1401
|
+
tokensAfter: number | null;
|
|
1402
|
+
}
|
|
1403
|
+
interface IdleCompaction {
|
|
1404
|
+
compactNow(sessionId: string): Promise<ManualCompactionResult>;
|
|
1405
|
+
observeEvent(sessionId: string, event: DshSessionEvent): void;
|
|
1406
|
+
agentStatus(sessionId: string, status: string): void;
|
|
1407
|
+
rescan(sessionIds: readonly string[]): void;
|
|
1408
|
+
forget(sessionId: string): void;
|
|
1409
|
+
describe(routes: readonly IdleCompactionRoute[]): IdleCompactionRouteView[];
|
|
1410
|
+
scheduled(): number;
|
|
1411
|
+
close(): void;
|
|
1412
|
+
}
|
|
1413
|
+
//#endregion
|
|
1324
1414
|
//#region packages/core/src/messaging/im-commands.d.ts
|
|
1325
1415
|
interface ImCommandServices {
|
|
1326
1416
|
botDisplayName(botSlug: string): string | undefined;
|
|
@@ -1333,9 +1423,10 @@ interface ImCommandServices {
|
|
|
1333
1423
|
} | undefined>;
|
|
1334
1424
|
startFreshOrchestrator(botSlug: string, assertCurrent?: () => void): Promise<'started' | 'busy'>;
|
|
1335
1425
|
turnRunning(botSlug: string): boolean;
|
|
1426
|
+
compact(botSlug: string): Promise<ManualCompactionResult>;
|
|
1336
1427
|
}
|
|
1337
1428
|
//#endregion
|
|
1338
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-brand@0.2.1-rc.
|
|
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
|
|
1339
1430
|
/**
|
|
1340
1431
|
* Duplicate-install-safe nominal primitive helpers.
|
|
1341
1432
|
*
|
|
@@ -1355,7 +1446,7 @@ type Branded<B extends string> = string & {
|
|
|
1355
1446
|
readonly [BRAND$1]: B;
|
|
1356
1447
|
};
|
|
1357
1448
|
//#endregion
|
|
1358
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.
|
|
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
|
|
1359
1450
|
/** Nominal reference to one credential: a POSIX-style environment-variable name. */
|
|
1360
1451
|
type CredentialRef = Branded<'CredentialRef'>;
|
|
1361
1452
|
/**
|
|
@@ -1439,7 +1530,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
1439
1530
|
}
|
|
1440
1531
|
}
|
|
1441
1532
|
//#endregion
|
|
1442
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-credentials@0.2.1-rc.
|
|
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
|
|
1443
1534
|
/** One resolved credential value and the source layer that supplied it. */
|
|
1444
1535
|
interface ResolvedCredential {
|
|
1445
1536
|
/** The non-empty secret value. */
|
|
@@ -1722,6 +1813,20 @@ type MemoryCloneResult = {
|
|
|
1722
1813
|
ok: false;
|
|
1723
1814
|
code: MemoryCloneFailureCode;
|
|
1724
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>;
|
|
1725
1830
|
//#endregion
|
|
1726
1831
|
//#region packages/core/src/memory/soul.d.ts
|
|
1727
1832
|
interface StandingLimits {
|
|
@@ -2207,7 +2312,7 @@ type CreatePersonaBotResult = {
|
|
|
2207
2312
|
httpsFallback?: HttpsFallback;
|
|
2208
2313
|
} | {
|
|
2209
2314
|
ok: false;
|
|
2210
|
-
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';
|
|
2211
2316
|
detail?: string;
|
|
2212
2317
|
};
|
|
2213
2318
|
interface PersonaBotPatch {
|
|
@@ -2266,6 +2371,7 @@ interface PersonaBotRegistryOptions {
|
|
|
2266
2371
|
}) => void;
|
|
2267
2372
|
now?: () => Date;
|
|
2268
2373
|
onDisplayNameChanged?: () => void;
|
|
2374
|
+
onAvatarChanged?: () => void;
|
|
2269
2375
|
onAppearanceImported?: (record: PersonaBotRecord) => void;
|
|
2270
2376
|
initializeMemory?: (memoryDir: string) => MemoryRepositoryInitialization;
|
|
2271
2377
|
cloneMemory?: (destination: string, url: string) => Promise<MemoryCloneResult>;
|
|
@@ -2280,11 +2386,12 @@ interface PersonaBotRegistry {
|
|
|
2280
2386
|
create(input: CreatePersonaBotInput): CreatePersonaBotResult;
|
|
2281
2387
|
createFromGit(input: Omit<CreatePersonaBotInput, 'memoryDir'> & {
|
|
2282
2388
|
gitUrl: string;
|
|
2283
|
-
|
|
2389
|
+
expectedCommit?: string;
|
|
2390
|
+
}, authorize?: () => void): Promise<CreatePersonaBotResult>;
|
|
2284
2391
|
createFromFiles(input: Omit<CreatePersonaBotInput, 'memoryDir' | 'persona'> & {
|
|
2285
2392
|
files: readonly ZipEntry[];
|
|
2286
2393
|
history?: Buffer;
|
|
2287
|
-
}): Promise<CreatePersonaBotResult>;
|
|
2394
|
+
}, authorize?: () => void): Promise<CreatePersonaBotResult>;
|
|
2288
2395
|
get(slug: string): PersonaBotRecord | undefined;
|
|
2289
2396
|
getHistorical(slug: string): PersonaBotRecord | undefined;
|
|
2290
2397
|
listHistorical(): PersonaBotRecord[];
|
|
@@ -2757,6 +2864,12 @@ type ChannelAttachmentRef = AttachmentMetadata & ({
|
|
|
2757
2864
|
hash: string;
|
|
2758
2865
|
fileId?: never;
|
|
2759
2866
|
});
|
|
2867
|
+
interface ChannelClearedAttachment {
|
|
2868
|
+
name: string;
|
|
2869
|
+
mime: string;
|
|
2870
|
+
size: number;
|
|
2871
|
+
clearedAt: string;
|
|
2872
|
+
}
|
|
2760
2873
|
//#endregion
|
|
2761
2874
|
//#region packages/core/src/workspaces/tool-approval-actor.d.ts
|
|
2762
2875
|
interface ToolApprovalActor {
|
|
@@ -2974,7 +3087,7 @@ type SetRequired<M extends SchemaMode, R extends boolean> = M extends 'volatile'
|
|
|
2974
3087
|
type Schema$1<S = any, T = S, Mode extends SchemaMode = 'plain'> = Schemastery<S, T, Mode>;
|
|
2975
3088
|
declare const Schema$1: Schemastery.Static;
|
|
2976
3089
|
//#endregion
|
|
2977
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.
|
|
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
|
|
2978
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"];
|
|
2979
3092
|
/** Stable attachment failure codes used for protocol error routing. */
|
|
2980
3093
|
type AttachmentErrorCode = typeof ATTACHMENT_ERROR_CODES[number];
|
|
@@ -2998,7 +3111,7 @@ declare class AttachmentError extends Error {
|
|
|
2998
3111
|
constructor(message: string, code: AttachmentErrorCode, options?: ErrorOptions);
|
|
2999
3112
|
}
|
|
3000
3113
|
//#endregion
|
|
3001
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.
|
|
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
|
|
3002
3115
|
/** Opaque content-addressed identifier for one immutable attachment object. */
|
|
3003
3116
|
type AttachmentId = Branded<'AttachmentId'>;
|
|
3004
3117
|
/**
|
|
@@ -3016,7 +3129,7 @@ type ImageVariantId = Branded<'ImageVariantId'>;
|
|
|
3016
3129
|
*/
|
|
3017
3130
|
declare function ImageVariantId(value: string): ImageVariantId;
|
|
3018
3131
|
//#endregion
|
|
3019
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.
|
|
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
|
|
3020
3133
|
/** Raster image formats accepted by the version-one attachment path. */
|
|
3021
3134
|
type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
|
|
3022
3135
|
/** Durable, serializable reference to one immutable normalized image. */
|
|
@@ -3160,7 +3273,7 @@ interface RequestImageAttachment {
|
|
|
3160
3273
|
hasAlpha: boolean;
|
|
3161
3274
|
}
|
|
3162
3275
|
//#endregion
|
|
3163
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-attachment@0.2.1-rc.
|
|
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
|
|
3164
3277
|
declare module '@deepseek-ai/cordis' {
|
|
3165
3278
|
interface Context {
|
|
3166
3279
|
attachments: AttachmentStore$1;
|
|
@@ -3281,7 +3394,7 @@ declare abstract class AttachmentStore$1 extends Service {
|
|
|
3281
3394
|
readImageRequest(ref: ImageAttachmentRef, target: ImageRequestTarget, signal?: AbortSignal): Promise<RequestImageAttachment>;
|
|
3282
3395
|
}
|
|
3283
3396
|
//#endregion
|
|
3284
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.
|
|
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
|
|
3285
3398
|
/** Stable identity carried by one message across inbox, log, and model-request boundaries. */
|
|
3286
3399
|
type MessageId = Branded<'MessageId'>;
|
|
3287
3400
|
/**
|
|
@@ -3302,7 +3415,7 @@ type ToolCallId$1 = Branded<'ToolCallId'>;
|
|
|
3302
3415
|
*/
|
|
3303
3416
|
declare function ToolCallId$1(id: string): ToolCallId$1;
|
|
3304
3417
|
//#endregion
|
|
3305
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.
|
|
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
|
|
3306
3419
|
/** Provider/model identity and adapter-private replay data for an assistant message. */
|
|
3307
3420
|
interface AssistantProviderMetadata {
|
|
3308
3421
|
/** Provider route that produced the message. */
|
|
@@ -3362,7 +3475,7 @@ interface UserMessage extends MessageBase {
|
|
|
3362
3475
|
readonly role: 'user';
|
|
3363
3476
|
}
|
|
3364
3477
|
//#endregion
|
|
3365
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-llm@0.2.1-rc.
|
|
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
|
|
3366
3479
|
declare module '@deepseek-ai/cordis' {
|
|
3367
3480
|
interface Events {
|
|
3368
3481
|
/**
|
|
@@ -3469,7 +3582,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
3469
3582
|
}
|
|
3470
3583
|
}
|
|
3471
3584
|
//#endregion
|
|
3472
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.
|
|
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
|
|
3473
3586
|
/** Generic invocation-owned values returned by synchronous Client Context resolvers. */
|
|
3474
3587
|
/** Shared identity across independently bundled Context providers and Gateway. */
|
|
3475
3588
|
declare const TYPERT_OWNED_VALUE: unique symbol;
|
|
@@ -3479,7 +3592,7 @@ interface TypertOwnedValue<Value> extends Disposable {
|
|
|
3479
3592
|
readonly value: Value;
|
|
3480
3593
|
}
|
|
3481
3594
|
//#endregion
|
|
3482
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.
|
|
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
|
|
3483
3596
|
declare const LOOKUP_HOST: unique symbol;
|
|
3484
3597
|
declare const LOOKUP_WIRE: unique symbol;
|
|
3485
3598
|
declare const CONTEXT_WIRE: unique symbol;
|
|
@@ -3982,7 +4095,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
3982
4095
|
}
|
|
3983
4096
|
}
|
|
3984
4097
|
//#endregion
|
|
3985
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.
|
|
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
|
|
3986
4099
|
/** Options for an explicit Service-to-Gateway binding. */
|
|
3987
4100
|
interface TypertGatewayBindingOptions {
|
|
3988
4101
|
/** Wire namespace; defaults to the Cordis service key. */
|
|
@@ -4007,14 +4120,14 @@ declare abstract class TypertRemoteService<out T = never> extends Service<T> {
|
|
|
4007
4120
|
protected constructor(ctx: Context, serviceKey: string, options?: TypertGatewayBindingOptions);
|
|
4008
4121
|
}
|
|
4009
4122
|
//#endregion
|
|
4010
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-util-values@0.2.1-rc.
|
|
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
|
|
4011
4124
|
/** Duplicate-install-safe JSON and immutable-value helpers. @module @deepseek-ai/dsh-util-values */
|
|
4012
4125
|
/** A value that round-trips through JSON without loss. */
|
|
4013
4126
|
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
4014
4127
|
[key: string]: JsonValue;
|
|
4015
4128
|
};
|
|
4016
4129
|
//#endregion
|
|
4017
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-session@0.2.1-rc.
|
|
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
|
|
4018
4131
|
/** Identifies one session in the store (and its persistence artifacts). */
|
|
4019
4132
|
type SessionId$1 = Branded<'SessionId'>;
|
|
4020
4133
|
/**
|
|
@@ -4036,7 +4149,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
4036
4149
|
}
|
|
4037
4150
|
}
|
|
4038
4151
|
//#endregion
|
|
4039
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-agent@0.2.1-rc.
|
|
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
|
|
4040
4153
|
/** Public live-agent handle; the runtime face augments its live capabilities. */
|
|
4041
4154
|
interface Agent$1 {
|
|
4042
4155
|
/** Session-backed Agent identity. */
|
|
@@ -4101,7 +4214,7 @@ declare module '@deepseek-ai/dsh-session/types' {
|
|
|
4101
4214
|
}
|
|
4102
4215
|
}
|
|
4103
4216
|
//#endregion
|
|
4104
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.
|
|
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
|
|
4105
4218
|
/**
|
|
4106
4219
|
* Pairs one `approval/asked` audit event with its `approval/decided`.
|
|
4107
4220
|
* Service-issued (one fresh id per {@link ApprovalService.request} call).
|
|
@@ -4176,7 +4289,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
4176
4289
|
}
|
|
4177
4290
|
}
|
|
4178
4291
|
//#endregion
|
|
4179
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-user-approval@0.2.1-rc.
|
|
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
|
|
4180
4293
|
declare module '@deepseek-ai/dsh-llm' {
|
|
4181
4294
|
interface MessageSourceMap {
|
|
4182
4295
|
'user-approval': {
|
|
@@ -4564,6 +4677,7 @@ interface ChannelStore {
|
|
|
4564
4677
|
}): ChannelMessage | undefined;
|
|
4565
4678
|
rename(id: string, name: string): ChannelRecord | undefined;
|
|
4566
4679
|
previewAllBotMention(id: string): AllBotPreview;
|
|
4680
|
+
grantRequestResolution?(channelId: string, requestMessageId: string): ChannelMessage | undefined;
|
|
4567
4681
|
appendMessageOnce(id: string, message: ChannelMessage, preview?: AllBotPreview, origin?: ChannelMessageOrigin, canCommit?: (database?: DatabaseSync) => boolean): Promise<ChannelAppendOnceResult>;
|
|
4568
4682
|
readPosition(id: string): ChannelReadPosition | undefined;
|
|
4569
4683
|
markRead(id: string, messageId: string): Promise<ChannelReadPosition | undefined>;
|
|
@@ -4664,7 +4778,7 @@ interface SessionOwnership {
|
|
|
4664
4778
|
export declare function createSessionOwnership(database: OperationalDatabaseModulePort): SessionOwnership;
|
|
4665
4779
|
//#endregion
|
|
4666
4780
|
//#region packages/core/src/workspaces/tool-approval-rules.d.ts
|
|
4667
|
-
type ToolRuleKind = 'exact' | 'all-opaque' | 'secret-cli';
|
|
4781
|
+
type ToolRuleKind = 'exact' | 'tool' | 'all-opaque' | 'secret-cli';
|
|
4668
4782
|
interface ToolApprovalRule {
|
|
4669
4783
|
id: string;
|
|
4670
4784
|
botSlug: string;
|
|
@@ -4681,6 +4795,7 @@ interface ToolApprovalRuleStore {
|
|
|
4681
4795
|
list(botSlug: string): ToolApprovalRule[];
|
|
4682
4796
|
match(input: Pick<ToolApprovalRule, 'botSlug' | 'role' | 'scopeKey' | 'toolName' | 'input'> & {
|
|
4683
4797
|
externalDecision?: 'operation' | 'web-only' | 'each-use';
|
|
4798
|
+
explicitOnly?: boolean;
|
|
4684
4799
|
}): ToolApprovalRule | undefined;
|
|
4685
4800
|
createPending(input: Pick<ToolApprovalRule, 'botSlug' | 'role' | 'scopeKey' | 'kind' | 'toolName' | 'input' | 'externalCreator'>): ToolApprovalRule;
|
|
4686
4801
|
activate(botSlug: string, id: string): void;
|
|
@@ -4764,6 +4879,7 @@ interface ToolApprovalRequestCard {
|
|
|
4764
4879
|
input: string;
|
|
4765
4880
|
externalDecision?: 'operation' | 'web-only' | 'each-use';
|
|
4766
4881
|
botCreatePreview?: BotCreatePreview;
|
|
4882
|
+
allowAlways?: boolean;
|
|
4767
4883
|
}
|
|
4768
4884
|
interface ToolApprovalNotice extends ToolApprovalRequestCard {
|
|
4769
4885
|
botSlug: string;
|
|
@@ -4775,7 +4891,7 @@ interface ToolApprovalNotice extends ToolApprovalRequestCard {
|
|
|
4775
4891
|
interface ToolApprovalDecision {
|
|
4776
4892
|
requestMessageId: string;
|
|
4777
4893
|
actor?: ToolApprovalActor;
|
|
4778
|
-
outcome: 'allowed-once' | 'allowed-always-exact' | 'allowed-always-all' | 'rejected';
|
|
4894
|
+
outcome: 'allowed-once' | 'allowed-always-tool' | 'allowed-always-exact' | 'allowed-always-all' | 'rejected';
|
|
4779
4895
|
}
|
|
4780
4896
|
interface ToolAutoApproval {
|
|
4781
4897
|
template(botSlug: string): {
|
|
@@ -4808,9 +4924,10 @@ declare class ChannelToolApproval {
|
|
|
4808
4924
|
constructor(channels: ChannelStore, ownership: SessionOwnership, rules?: ToolApprovalRuleStore, scope?: (agent: Agent, owner: SessionOwnershipRecord) => string | undefined, attention?: {
|
|
4809
4925
|
changed(slug: string, count: number): void;
|
|
4810
4926
|
warn(message: string): void;
|
|
4811
|
-
}, beginWait?: (sessionId: string, callId: string, signal: AbortSignal) => AssignmentApprovalWaitLease | undefined, askChannel?: (sessionId: string) => string | undefined, autoApproval?: ToolAutoApproval);
|
|
4927
|
+
}, beginWait?: (sessionId: string, callId: string, signal: AbortSignal) => AssignmentApprovalWaitLease | undefined, askChannel?: (sessionId: string) => string | undefined, autoApproval?: ToolAutoApproval, fullAccess?: (sessionId: string) => boolean);
|
|
4812
4928
|
track(execution: ToolExecution, externalDecision?: 'operation' | 'web-only' | 'each-use', rememberable?: boolean, device?: 'computer' | 'browser', botCreatePreview?: BotCreatePreview, options?: {
|
|
4813
|
-
|
|
4929
|
+
requireExplicitApproval?: boolean;
|
|
4930
|
+
authorizationScope?: () => string;
|
|
4814
4931
|
}): (() => void) | undefined;
|
|
4815
4932
|
ask(request: {
|
|
4816
4933
|
agent: Agent;
|
|
@@ -4820,6 +4937,8 @@ declare class ChannelToolApproval {
|
|
|
4820
4937
|
}): Promise<ApprovalOutcome | undefined>;
|
|
4821
4938
|
executionGuard(agent: Agent, callId: string): ((name: string, args: unknown) => boolean) | undefined;
|
|
4822
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;
|
|
4823
4942
|
cancelInvalid(): void;
|
|
4824
4943
|
subscribe(listener: (notice: ToolApprovalNotice, status: 'pending' | ApprovalOutcome) => void): () => void;
|
|
4825
4944
|
remembered(agent: Agent, callId: string): boolean;
|
|
@@ -4851,10 +4970,11 @@ declare class ChannelToolApproval {
|
|
|
4851
4970
|
cwd: string;
|
|
4852
4971
|
toolName: string;
|
|
4853
4972
|
input: string;
|
|
4973
|
+
allOpaque: boolean;
|
|
4854
4974
|
} | undefined;
|
|
4855
4975
|
}
|
|
4856
4976
|
//#endregion
|
|
4857
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-user-questions@0.2.1-rc.
|
|
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
|
|
4858
4978
|
/** One selectable answer offered to the user. */
|
|
4859
4979
|
interface AskUserQuestionOption {
|
|
4860
4980
|
/** User-facing label. */
|
|
@@ -9171,6 +9291,7 @@ interface ChannelMessage {
|
|
|
9171
9291
|
toolAutoApprovalOverride?: ChannelToolAutoApprovalOverride;
|
|
9172
9292
|
botCausation?: BotMessageCausation;
|
|
9173
9293
|
grantRequest?: true;
|
|
9294
|
+
grantRequestOwner?: string;
|
|
9174
9295
|
grantRequestResolved?: boolean;
|
|
9175
9296
|
assignmentReply?: {
|
|
9176
9297
|
sessionId: string;
|
|
@@ -9188,6 +9309,7 @@ interface ChannelMessage {
|
|
|
9188
9309
|
privateInputRequest?: PrivateInputCard;
|
|
9189
9310
|
privateInputResolution?: PrivateInputResolution;
|
|
9190
9311
|
attachments?: ChannelAttachmentRef[];
|
|
9312
|
+
clearedAttachments?: ChannelClearedAttachment[];
|
|
9191
9313
|
bridgeMedia?: {
|
|
9192
9314
|
voice?: Pick<MessagingVoice, 'transcript' | 'durationMs'>;
|
|
9193
9315
|
items: {
|
|
@@ -10719,12 +10841,183 @@ interface BotCreationResult {
|
|
|
10719
10841
|
record: PersonaBotRecord;
|
|
10720
10842
|
channelId: string;
|
|
10721
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
|
+
};
|
|
10722
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
|
+
};
|
|
10723
10871
|
interface BotCreationService {
|
|
10724
10872
|
create(input: BotCreationInput, operationKey?: string): BotCreationResult;
|
|
10725
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>;
|
|
10726
10876
|
}
|
|
10727
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
|
|
10728
11021
|
//#region packages/core/src/workspaces/grants.d.ts
|
|
10729
11022
|
interface WorkspaceGrant {
|
|
10730
11023
|
id: string;
|
|
@@ -10765,6 +11058,10 @@ interface WorkspaceGrantStore {
|
|
|
10765
11058
|
revoke(botSlug: string, grantId: string): WorkspaceGrant;
|
|
10766
11059
|
requireActive(botSlug: string, grantId: string): WorkspaceGrant;
|
|
10767
11060
|
setOrchestratorWrite(botSlug: string, grantId: string, enabled: boolean): WorkspaceGrant;
|
|
11061
|
+
prepareWrite?(botSlug: string, workspaceId: string, validate: () => void): Promise<{
|
|
11062
|
+
grant: WorkspaceGrant;
|
|
11063
|
+
commit(database?: DatabaseSync): boolean;
|
|
11064
|
+
}>;
|
|
10768
11065
|
availableWorkspaces(): {
|
|
10769
11066
|
id: string;
|
|
10770
11067
|
path: string;
|
|
@@ -10958,6 +11255,38 @@ interface PurgePreview {
|
|
|
10958
11255
|
tracking: 'recorded' | 'possible' | 'unavailable';
|
|
10959
11256
|
}[];
|
|
10960
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
|
+
}
|
|
10961
11290
|
interface ContentPurge {
|
|
10962
11291
|
redactions(): PurgedPlacement[];
|
|
10963
11292
|
history(): ChannelHistoryItem[];
|
|
@@ -10970,6 +11299,8 @@ interface ContentPurge {
|
|
|
10970
11299
|
accepted: number;
|
|
10971
11300
|
cleanupPending?: number;
|
|
10972
11301
|
};
|
|
11302
|
+
textPreview(scope: TextCleanupScope): TextCleanupPreview;
|
|
11303
|
+
textConfirm(scope: TextCleanupScope, token: string): TextCleanupResult;
|
|
10973
11304
|
checkpoint(): PurgeCheckpoint;
|
|
10974
11305
|
withCheckpoint<T>(exportSnapshot: (checkpoint: PurgeCheckpoint) => T): T;
|
|
10975
11306
|
close(): void;
|
|
@@ -11416,6 +11747,36 @@ declare function createMemoryFiles(registry: PersonaBotRegistry): {
|
|
|
11416
11747
|
};
|
|
11417
11748
|
};
|
|
11418
11749
|
//#endregion
|
|
11750
|
+
//#region packages/core/src/media/image-format.d.ts
|
|
11751
|
+
type ImageMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'image/svg+xml';
|
|
11752
|
+
//#endregion
|
|
11753
|
+
//#region packages/core/src/memory/image.d.ts
|
|
11754
|
+
interface MemoryImage {
|
|
11755
|
+
mime?: ImageMime;
|
|
11756
|
+
source: string;
|
|
11757
|
+
status: 'ready' | 'missing' | 'unsupported' | 'too-large' | 'stale';
|
|
11758
|
+
revision?: string;
|
|
11759
|
+
size?: number;
|
|
11760
|
+
width?: number;
|
|
11761
|
+
height?: number;
|
|
11762
|
+
}
|
|
11763
|
+
interface MemoryImageComparison {
|
|
11764
|
+
before?: MemoryImage;
|
|
11765
|
+
after?: MemoryImage;
|
|
11766
|
+
}
|
|
11767
|
+
//#endregion
|
|
11768
|
+
//#region packages/core/src/memory/markdown.d.ts
|
|
11769
|
+
interface MemoryMarkdown {
|
|
11770
|
+
source: string;
|
|
11771
|
+
status: 'ready' | 'missing' | 'unsupported' | 'too-large' | 'stale';
|
|
11772
|
+
revision?: string;
|
|
11773
|
+
body: string;
|
|
11774
|
+
}
|
|
11775
|
+
interface MemoryMarkdownComparison {
|
|
11776
|
+
before?: MemoryMarkdown;
|
|
11777
|
+
after?: MemoryMarkdown;
|
|
11778
|
+
}
|
|
11779
|
+
//#endregion
|
|
11419
11780
|
//#region packages/core/src/memory/recovery.d.ts
|
|
11420
11781
|
type MemoryCheckpointOrigin = 'host-observation' | 'agent-session' | 'human-command';
|
|
11421
11782
|
interface MemoryRecoveryCheckpoint {
|
|
@@ -11513,6 +11874,8 @@ interface MemoryGitCommitDiff {
|
|
|
11513
11874
|
files: {
|
|
11514
11875
|
path: string;
|
|
11515
11876
|
status: string;
|
|
11877
|
+
images?: MemoryImageComparison;
|
|
11878
|
+
markdown?: MemoryMarkdownComparison;
|
|
11516
11879
|
}[];
|
|
11517
11880
|
diff: string;
|
|
11518
11881
|
}
|
|
@@ -11523,6 +11886,8 @@ interface MemoryWorkingChange {
|
|
|
11523
11886
|
status: string;
|
|
11524
11887
|
}
|
|
11525
11888
|
interface MemoryWorkingDiff extends MemoryWorkingChange {
|
|
11889
|
+
images?: MemoryImageComparison;
|
|
11890
|
+
markdown?: MemoryMarkdownComparison;
|
|
11526
11891
|
diff: string;
|
|
11527
11892
|
binary: boolean;
|
|
11528
11893
|
}
|
|
@@ -11573,7 +11938,11 @@ interface MemoryAcceptance {
|
|
|
11573
11938
|
body: string;
|
|
11574
11939
|
head: string;
|
|
11575
11940
|
binary?: boolean;
|
|
11941
|
+
image?: MemoryImage;
|
|
11942
|
+
markdown?: MemoryMarkdown;
|
|
11576
11943
|
} | undefined;
|
|
11944
|
+
markdownImageFile(botSlug: string, path: string, source: string, revision: string, reference: string): Buffer;
|
|
11945
|
+
imageFile(botSlug: string, path: string, source: string, revision: string): Buffer;
|
|
11577
11946
|
history(botSlug: string, limit?: number): MemoryAcceptedCommit[];
|
|
11578
11947
|
diff(botSlug: string, sha: string): {
|
|
11579
11948
|
sha: string;
|
|
@@ -11756,30 +12125,6 @@ interface MemoryService extends MemoryAcceptance, ReturnType<typeof createMemory
|
|
|
11756
12125
|
}
|
|
11757
12126
|
export declare function createMemoryService(options: MemoryServiceOptions): MemoryService;
|
|
11758
12127
|
//#endregion
|
|
11759
|
-
//#region packages/core/src/sessions/source.d.ts
|
|
11760
|
-
interface DshSessionEvent {
|
|
11761
|
-
type: string;
|
|
11762
|
-
seq?: number;
|
|
11763
|
-
surfaceOp?: unknown;
|
|
11764
|
-
time: number;
|
|
11765
|
-
data: unknown;
|
|
11766
|
-
}
|
|
11767
|
-
interface DshSessionHeader {
|
|
11768
|
-
cwd?: string;
|
|
11769
|
-
createdAt: number;
|
|
11770
|
-
parentSession?: string;
|
|
11771
|
-
origin?: 'subagent';
|
|
11772
|
-
}
|
|
11773
|
-
interface DshSession {
|
|
11774
|
-
id: string;
|
|
11775
|
-
header: DshSessionHeader;
|
|
11776
|
-
snapshotEvents(): readonly DshSessionEvent[];
|
|
11777
|
-
}
|
|
11778
|
-
interface DshSessionStore {
|
|
11779
|
-
get(sessionId: string): DshSession | undefined;
|
|
11780
|
-
list(): readonly DshSession[];
|
|
11781
|
-
}
|
|
11782
|
-
//#endregion
|
|
11783
12128
|
//#region packages/core/src/usage/message-perf.d.ts
|
|
11784
12129
|
interface MessagePerfTracker {
|
|
11785
12130
|
observeSessionEvent(sessionId: string, event: DshSessionEvent): void;
|
|
@@ -12274,7 +12619,7 @@ interface OrchestratorChannelAccess {
|
|
|
12274
12619
|
ref: ChannelAttachmentRef;
|
|
12275
12620
|
data: Uint8Array;
|
|
12276
12621
|
}>;
|
|
12277
|
-
requestGrant(reason: string): Promise<ChannelMessage>;
|
|
12622
|
+
requestGrant(reason: string, channelId?: string): Promise<ChannelMessage>;
|
|
12278
12623
|
contacts(input?: BotContactQuery): BotContactPage;
|
|
12279
12624
|
createGroup(name: string): ChannelRecord;
|
|
12280
12625
|
inviteGroup(input: {
|
|
@@ -12443,6 +12788,7 @@ interface BotRuntime {
|
|
|
12443
12788
|
replaceOrchestrator?<T>(botSlug: string, body: () => T): Promise<OrchestratorReplacement<T>>;
|
|
12444
12789
|
startFreshOrchestrator?(botSlug: string, assertCurrent?: () => void): Promise<'started' | 'busy'>;
|
|
12445
12790
|
turnRunning?(botSlug: string): boolean;
|
|
12791
|
+
hasPendingInbox?(botSlug: string): boolean;
|
|
12446
12792
|
directBotTools?(): DirectBotToolSpec[];
|
|
12447
12793
|
directBotToolCalls?(botSlug: string): readonly DirectBotToolCall[];
|
|
12448
12794
|
runDirectBotTool?(botSlug: string, tool: string, args: Record<string, unknown>, signal: AbortSignal): Promise<{
|
|
@@ -12547,9 +12893,6 @@ export declare function createDshBotAgentAdapter(options: DshBotAgentAdapterOpti
|
|
|
12547
12893
|
acceptAssistantStream(sessionId: string, frame: AssistantStreamFrame): void;
|
|
12548
12894
|
};
|
|
12549
12895
|
//#endregion
|
|
12550
|
-
//#region packages/core/src/devices/mount.d.ts
|
|
12551
|
-
type DeviceWebUpgrade = (request: IncomingMessage, socket: Duplex, head: Buffer) => void;
|
|
12552
|
-
//#endregion
|
|
12553
12896
|
//#region packages/core/src/bots/deletion.d.ts
|
|
12554
12897
|
interface MemoryOwnership {
|
|
12555
12898
|
path: string;
|
|
@@ -12626,6 +12969,8 @@ type RosterLiveFrame = {
|
|
|
12626
12969
|
placements: PurgedPlacement[];
|
|
12627
12970
|
} | {
|
|
12628
12971
|
type: 'changed';
|
|
12972
|
+
} | {
|
|
12973
|
+
type: 'attention';
|
|
12629
12974
|
} | {
|
|
12630
12975
|
type: 'latest';
|
|
12631
12976
|
channelId: string;
|
|
@@ -12704,7 +13049,7 @@ interface ChannelLiveHub {
|
|
|
12704
13049
|
close(): void;
|
|
12705
13050
|
}
|
|
12706
13051
|
//#endregion
|
|
12707
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.
|
|
13052
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/backend.d.ts
|
|
12708
13053
|
/**
|
|
12709
13054
|
* One registered backend. A backend owns exactly one medium and shares its
|
|
12710
13055
|
* lifecycle across all facets; facets are optional members — a backend that
|
|
@@ -12827,7 +13172,7 @@ interface KvUnit {
|
|
|
12827
13172
|
close(): Promise<void>;
|
|
12828
13173
|
}
|
|
12829
13174
|
//#endregion
|
|
12830
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.
|
|
13175
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/registry.d.ts
|
|
12831
13176
|
/**
|
|
12832
13177
|
* Mutable name → backend table. Multiple backends stay mounted side by side;
|
|
12833
13178
|
* which backend serves which consumer is the consumer's configuration
|
|
@@ -12857,7 +13202,7 @@ declare class BackendRegistry {
|
|
|
12857
13202
|
names(): string[];
|
|
12858
13203
|
}
|
|
12859
13204
|
//#endregion
|
|
12860
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.
|
|
13205
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-storage/lib/types/index.d.ts
|
|
12861
13206
|
declare module '@deepseek-ai/cordis' {
|
|
12862
13207
|
interface Context {
|
|
12863
13208
|
storage: Storage;
|
|
@@ -12898,7 +13243,7 @@ declare class Storage extends Service {
|
|
|
12898
13243
|
} ? D : never;
|
|
12899
13244
|
}
|
|
12900
13245
|
//#endregion
|
|
12901
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.
|
|
13246
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/spec.d.ts
|
|
12902
13247
|
/** Global singleton declaration: schema plus the value used before the first write. */
|
|
12903
13248
|
interface DomainGlobalSpec<G> {
|
|
12904
13249
|
/** Validates the stored global at the durable boundary. */
|
|
@@ -12961,7 +13306,7 @@ type TableKeyOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables']
|
|
|
12961
13306
|
/** Value type of one declared table. */
|
|
12962
13307
|
type TableValueOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables'][N] extends DomainTableSpec<string, infer V> ? V : never;
|
|
12963
13308
|
//#endregion
|
|
12964
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.
|
|
13309
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/domain.d.ts
|
|
12965
13310
|
/** Handle on a domain's global singleton. */
|
|
12966
13311
|
interface DomainGlobal<G> {
|
|
12967
13312
|
/**
|
|
@@ -13115,7 +13460,7 @@ declare class DomainImpl {
|
|
|
13115
13460
|
private assertReadable;
|
|
13116
13461
|
}
|
|
13117
13462
|
//#endregion
|
|
13118
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.
|
|
13463
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/events.d.ts
|
|
13119
13464
|
/**
|
|
13120
13465
|
* Change-event vocabulary of the domain data form. Every durable write emits
|
|
13121
13466
|
* one event after the backend resolves durability, carrying the new snapshot
|
|
@@ -13160,7 +13505,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
13160
13505
|
}
|
|
13161
13506
|
}
|
|
13162
13507
|
//#endregion
|
|
13163
|
-
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.
|
|
13508
|
+
//#region node_modules/.pnpm/@deepseek-ai+dsh-storage-domain@0.2.1-rc.3_@deepseek-ai+cordis@4.0.5_@deepseek-ai+dsh-s_b13fe41b4660a57a26b3be2d9ee8342f/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/index.d.ts
|
|
13164
13509
|
declare module '@deepseek-ai/dsh-storage' {
|
|
13165
13510
|
interface StorageForms {
|
|
13166
13511
|
domain: DomainFacility;
|
|
@@ -13423,9 +13768,18 @@ interface HumanAttentionItem {
|
|
|
13423
13768
|
}
|
|
13424
13769
|
interface HumanAttentionPage {
|
|
13425
13770
|
queryVersion?: 1;
|
|
13771
|
+
notificationVersion?: 1;
|
|
13426
13772
|
items: HumanAttentionItem[];
|
|
13427
13773
|
nextCursor?: string;
|
|
13428
13774
|
}
|
|
13775
|
+
interface HumanAttentionStatus {
|
|
13776
|
+
unreadCount: number;
|
|
13777
|
+
hasAction: boolean;
|
|
13778
|
+
messageCounts?: {
|
|
13779
|
+
replies: number;
|
|
13780
|
+
other: number;
|
|
13781
|
+
};
|
|
13782
|
+
}
|
|
13429
13783
|
interface HumanAttentionQuery {
|
|
13430
13784
|
item(id: string, sourceKey?: string): HumanAttentionItem | undefined;
|
|
13431
13785
|
assignmentContext(botSlug: string, sessionId: string, sourceEventId: string): HumanAssignmentContext | undefined;
|
|
@@ -13433,6 +13787,7 @@ interface HumanAttentionQuery {
|
|
|
13433
13787
|
itemId?: string;
|
|
13434
13788
|
includeDismissed?: boolean;
|
|
13435
13789
|
snoozed?: boolean;
|
|
13790
|
+
dismissed?: boolean;
|
|
13436
13791
|
category?: HumanAttentionCategory;
|
|
13437
13792
|
kind?: HumanAttentionItem['kind'];
|
|
13438
13793
|
sort?: HumanAttentionSort;
|
|
@@ -13443,14 +13798,15 @@ interface HumanAttentionQuery {
|
|
|
13443
13798
|
cursor?: string;
|
|
13444
13799
|
limit?: number;
|
|
13445
13800
|
}): HumanAttentionPage;
|
|
13446
|
-
status():
|
|
13447
|
-
unreadCount: number;
|
|
13448
|
-
hasAction: boolean;
|
|
13449
|
-
};
|
|
13801
|
+
status(messageCounts?: boolean): HumanAttentionStatus;
|
|
13450
13802
|
unreadByChannel(): Array<{
|
|
13451
13803
|
channelId: string;
|
|
13452
13804
|
unreadCount: number;
|
|
13453
13805
|
}>;
|
|
13806
|
+
dmReplies(limit: number, before?: {
|
|
13807
|
+
createdAt: string;
|
|
13808
|
+
sourceEventId: string;
|
|
13809
|
+
}): HumanAttentionItem[];
|
|
13454
13810
|
durableAttention(): Array<{
|
|
13455
13811
|
botSlug: string;
|
|
13456
13812
|
waitingHumanCount: number;
|
|
@@ -13470,6 +13826,7 @@ interface HumanAttentionQuery {
|
|
|
13470
13826
|
}
|
|
13471
13827
|
interface HumanAttentionDecisions {
|
|
13472
13828
|
dismiss(item: HumanAttentionItem): boolean;
|
|
13829
|
+
restore(item: HumanAttentionItem): boolean;
|
|
13473
13830
|
snooze(item: HumanAttentionItem, until: string | null): boolean;
|
|
13474
13831
|
ignoreAssignmentReport(sourceEventId: string): boolean;
|
|
13475
13832
|
}
|
|
@@ -13593,6 +13950,8 @@ interface UsageProjection {
|
|
|
13593
13950
|
sessionSummary(botSlug: string, sessionId: string, sinceIso: string, readLog: DshUsageSessionLogReader): Promise<SessionUsageSummary>;
|
|
13594
13951
|
overview(period: UsageOverviewPeriod, after?: string): UsageOverviewResult;
|
|
13595
13952
|
purgeBot(botSlug: string, removeFiles?: () => void): void;
|
|
13953
|
+
recordIdleCompaction(record: IdleCompactionRecord): void;
|
|
13954
|
+
idleCompactions(botSlug: string, sinceIso: string): IdleCompactionRecord[];
|
|
13596
13955
|
}
|
|
13597
13956
|
//#endregion
|
|
13598
13957
|
//#region packages/core/src/plugin.d.ts
|
|
@@ -13611,12 +13970,12 @@ interface BotHarnessConfig {
|
|
|
13611
13970
|
export declare const DEFAULT_CONFIG: BotHarnessConfig;
|
|
13612
13971
|
export declare const Config: Schema$1<BotHarnessConfig>;
|
|
13613
13972
|
interface BotHarnessCore {
|
|
13614
|
-
deviceWebUpgrade?: DeviceWebUpgrade;
|
|
13615
13973
|
profileRecovery: ProfileRecovery;
|
|
13616
13974
|
rootDir: string;
|
|
13617
13975
|
onboarding: BotOnboarding;
|
|
13618
13976
|
tob: TobService;
|
|
13619
13977
|
creations: BotCreationService;
|
|
13978
|
+
zipImports: BotZipImportService;
|
|
13620
13979
|
channelManagement: ChannelManagementService;
|
|
13621
13980
|
partLibrary: PartLibrary;
|
|
13622
13981
|
operationalDatabase: OperationalDatabaseOwner;
|
|
@@ -13967,6 +14326,12 @@ export declare class ProfileBackupError extends Error {
|
|
|
13967
14326
|
//#region packages/core/src/portability/cli.d.ts
|
|
13968
14327
|
export declare function runProfileRestoreCli(argv: readonly string[]): Promise<void>;
|
|
13969
14328
|
//#endregion
|
|
14329
|
+
//#region packages/core/src/workspaces/grant-requests.d.ts
|
|
14330
|
+
interface GrantRequestApprovalResult {
|
|
14331
|
+
grant: WorkspaceGrant;
|
|
14332
|
+
message: ChannelMessage;
|
|
14333
|
+
}
|
|
14334
|
+
//#endregion
|
|
13970
14335
|
//#region packages/core/src/cloud/management.d.ts
|
|
13971
14336
|
type CloudManagementInput = {
|
|
13972
14337
|
operation: 'list';
|
|
@@ -14007,6 +14372,76 @@ interface TurnTrace {
|
|
|
14007
14372
|
readonly noToolCalls: boolean;
|
|
14008
14373
|
}
|
|
14009
14374
|
//#endregion
|
|
14375
|
+
//#region packages/core/src/storage/media-cleanup.d.ts
|
|
14376
|
+
declare const STORAGE_MEDIA_KINDS: readonly ['image', 'video', 'audio', 'file'];
|
|
14377
|
+
type StorageMediaKind = (typeof STORAGE_MEDIA_KINDS)[number];
|
|
14378
|
+
interface StorageMediaTotal {
|
|
14379
|
+
kind: StorageMediaKind;
|
|
14380
|
+
count: number;
|
|
14381
|
+
bytes: number;
|
|
14382
|
+
}
|
|
14383
|
+
interface StorageChatUsage {
|
|
14384
|
+
channelId: string;
|
|
14385
|
+
name: string;
|
|
14386
|
+
type: ChannelRecord['type'];
|
|
14387
|
+
deleted?: true;
|
|
14388
|
+
messages: number;
|
|
14389
|
+
oldestAt?: string;
|
|
14390
|
+
mediaBytes: number;
|
|
14391
|
+
media: StorageMediaTotal[];
|
|
14392
|
+
}
|
|
14393
|
+
interface StorageUsage {
|
|
14394
|
+
measuredAt: string;
|
|
14395
|
+
totalBytes: number;
|
|
14396
|
+
parts: {
|
|
14397
|
+
kind: 'media' | 'messages' | 'memory' | 'other';
|
|
14398
|
+
bytes: number;
|
|
14399
|
+
}[];
|
|
14400
|
+
chats: StorageChatUsage[];
|
|
14401
|
+
}
|
|
14402
|
+
interface MediaCleanupScope {
|
|
14403
|
+
before: string;
|
|
14404
|
+
channelIds?: string[] | undefined;
|
|
14405
|
+
kinds?: StorageMediaKind[] | undefined;
|
|
14406
|
+
}
|
|
14407
|
+
interface CleanupScope {
|
|
14408
|
+
before: string;
|
|
14409
|
+
channelIds: string[];
|
|
14410
|
+
kinds: StorageMediaKind[];
|
|
14411
|
+
}
|
|
14412
|
+
interface MediaCleanupPreview {
|
|
14413
|
+
token: string;
|
|
14414
|
+
expiresAt: string;
|
|
14415
|
+
scope: CleanupScope;
|
|
14416
|
+
messages: number;
|
|
14417
|
+
files: number;
|
|
14418
|
+
bytes: number;
|
|
14419
|
+
freedBytes: number;
|
|
14420
|
+
kinds: StorageMediaTotal[];
|
|
14421
|
+
chats: {
|
|
14422
|
+
channelId: string;
|
|
14423
|
+
name: string;
|
|
14424
|
+
files: number;
|
|
14425
|
+
bytes: number;
|
|
14426
|
+
}[];
|
|
14427
|
+
kept: {
|
|
14428
|
+
reason: 'bot-working' | 'delivery-pending' | 'memory' | 'migration';
|
|
14429
|
+
files: number;
|
|
14430
|
+
}[];
|
|
14431
|
+
}
|
|
14432
|
+
interface MediaCleanupResult {
|
|
14433
|
+
messages: number;
|
|
14434
|
+
files: number;
|
|
14435
|
+
freedBytes: number;
|
|
14436
|
+
removedFiles: number;
|
|
14437
|
+
pendingFiles: number;
|
|
14438
|
+
}
|
|
14439
|
+
interface StorageCleanup {
|
|
14440
|
+
usage(): StorageUsage;
|
|
14441
|
+
preview(scope: MediaCleanupScope): MediaCleanupPreview;
|
|
14442
|
+
confirm(scope: MediaCleanupScope, token: string): MediaCleanupResult;
|
|
14443
|
+
}
|
|
14444
|
+
//#endregion
|
|
14010
14445
|
//#region packages/core/src/marketplace/altcha.d.ts
|
|
14011
14446
|
declare const ALTCHA_ALGORITHM = "SHA-256";
|
|
14012
14447
|
interface AltchaChallenge {
|
|
@@ -14031,10 +14466,12 @@ interface MarketplaceEntry {
|
|
|
14031
14466
|
displayName: string | null;
|
|
14032
14467
|
roles: string[];
|
|
14033
14468
|
description: string | null;
|
|
14469
|
+
descriptionGenerated: boolean;
|
|
14034
14470
|
banner: MarketplaceBanner | null;
|
|
14035
14471
|
topics: string[];
|
|
14036
14472
|
stars: number;
|
|
14037
14473
|
pushedAt: string;
|
|
14474
|
+
createdAt?: string;
|
|
14038
14475
|
htmlUrl: string;
|
|
14039
14476
|
cloneUrl: string;
|
|
14040
14477
|
defaultBranch: string;
|
|
@@ -14047,12 +14484,13 @@ interface MarketplacePage {
|
|
|
14047
14484
|
bots: MarketplaceEntry[];
|
|
14048
14485
|
nextCursor?: string;
|
|
14049
14486
|
}
|
|
14050
|
-
type MarketplaceSort = 'updated' | 'stars';
|
|
14487
|
+
type MarketplaceSort = 'updated' | 'created' | 'stars';
|
|
14051
14488
|
interface MarketplaceQuery {
|
|
14052
14489
|
cursor?: string;
|
|
14053
14490
|
sort?: MarketplaceSort;
|
|
14054
14491
|
q?: string;
|
|
14055
14492
|
topic?: string;
|
|
14493
|
+
lang?: MarketplaceLanguage;
|
|
14056
14494
|
}
|
|
14057
14495
|
interface MarketplaceTopic {
|
|
14058
14496
|
topic: string;
|
|
@@ -14061,6 +14499,7 @@ interface MarketplaceTopic {
|
|
|
14061
14499
|
interface MarketplaceDetail {
|
|
14062
14500
|
bot: MarketplaceEntry;
|
|
14063
14501
|
readme: string | null;
|
|
14502
|
+
readmeLanguage: MarketplaceLanguage | null;
|
|
14064
14503
|
commitSha: string | null;
|
|
14065
14504
|
}
|
|
14066
14505
|
type MarketplaceResult<T> = {
|
|
@@ -14073,7 +14512,7 @@ type MarketplaceResult<T> = {
|
|
|
14073
14512
|
interface MarketplaceClient {
|
|
14074
14513
|
list(query: MarketplaceQuery): Promise<MarketplaceResult<MarketplacePage>>;
|
|
14075
14514
|
topics(): Promise<MarketplaceResult<MarketplaceTopic[]>>;
|
|
14076
|
-
detail(id: string): Promise<MarketplaceResult<MarketplaceDetail>>;
|
|
14515
|
+
detail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceResult<MarketplaceDetail>>;
|
|
14077
14516
|
challenge(): Promise<MarketplaceResult<AltchaChallenge>>;
|
|
14078
14517
|
submit(url: string, altcha: string): Promise<MarketplaceResult<{
|
|
14079
14518
|
bot: MarketplaceEntry;
|
|
@@ -14182,6 +14621,7 @@ type ReleaseInstall = {
|
|
|
14182
14621
|
current: string;
|
|
14183
14622
|
installed: string;
|
|
14184
14623
|
restartable: boolean;
|
|
14624
|
+
applied: boolean;
|
|
14185
14625
|
} | {
|
|
14186
14626
|
status: 'failed';
|
|
14187
14627
|
reason: ReleaseInstallFailure;
|
|
@@ -14201,6 +14641,70 @@ interface ReleaseService {
|
|
|
14201
14641
|
restart(beforeEffect?: (pendingVersion: string) => void): Promise<ReleaseRestart>;
|
|
14202
14642
|
}
|
|
14203
14643
|
//#endregion
|
|
14644
|
+
//#region packages/core/src/release/plugins.d.ts
|
|
14645
|
+
type PluginUpdate = {
|
|
14646
|
+
name: string;
|
|
14647
|
+
status: 'development';
|
|
14648
|
+
current: string;
|
|
14649
|
+
} | {
|
|
14650
|
+
name: string;
|
|
14651
|
+
status: 'unavailable';
|
|
14652
|
+
current: string;
|
|
14653
|
+
} | {
|
|
14654
|
+
name: string;
|
|
14655
|
+
status: 'current';
|
|
14656
|
+
current: string;
|
|
14657
|
+
latest: string;
|
|
14658
|
+
} | {
|
|
14659
|
+
name: string;
|
|
14660
|
+
status: 'blocked';
|
|
14661
|
+
current: string;
|
|
14662
|
+
latest: string;
|
|
14663
|
+
compatibility: ReleaseCompatibility;
|
|
14664
|
+
} | {
|
|
14665
|
+
name: string;
|
|
14666
|
+
status: 'available';
|
|
14667
|
+
current: string;
|
|
14668
|
+
latest: string;
|
|
14669
|
+
compatibility: ReleaseCompatibility;
|
|
14670
|
+
} | {
|
|
14671
|
+
name: string;
|
|
14672
|
+
status: 'restart-required';
|
|
14673
|
+
current: string;
|
|
14674
|
+
installed: string;
|
|
14675
|
+
};
|
|
14676
|
+
interface PluginUpdates {
|
|
14677
|
+
installable: boolean;
|
|
14678
|
+
restartable: boolean;
|
|
14679
|
+
plugins: PluginUpdate[];
|
|
14680
|
+
}
|
|
14681
|
+
type PluginInstall = {
|
|
14682
|
+
status: 'installed';
|
|
14683
|
+
name: string;
|
|
14684
|
+
current: string;
|
|
14685
|
+
installed: string;
|
|
14686
|
+
restartable: boolean;
|
|
14687
|
+
applied: boolean;
|
|
14688
|
+
} | {
|
|
14689
|
+
status: 'failed';
|
|
14690
|
+
name: string;
|
|
14691
|
+
reason: ReleaseInstallFailure | 'unknown-plugin';
|
|
14692
|
+
diagnostic?: string;
|
|
14693
|
+
logPath?: string;
|
|
14694
|
+
};
|
|
14695
|
+
type PluginRestart = {
|
|
14696
|
+
status: 'restarting';
|
|
14697
|
+
plugins: string[];
|
|
14698
|
+
} | {
|
|
14699
|
+
status: 'failed';
|
|
14700
|
+
reason: 'unavailable' | 'not-pending';
|
|
14701
|
+
};
|
|
14702
|
+
interface PluginUpdateService {
|
|
14703
|
+
list(force?: boolean): Promise<PluginUpdates>;
|
|
14704
|
+
install(name: string, version: string, beforeEffect?: () => void): Promise<PluginInstall>;
|
|
14705
|
+
restart(beforeEffect?: (pending: string[]) => void): Promise<PluginRestart>;
|
|
14706
|
+
}
|
|
14707
|
+
//#endregion
|
|
14204
14708
|
//#region packages/core/src/bots/banner-http.d.ts
|
|
14205
14709
|
type BotBannerSummary = Extract<BotBanner, {
|
|
14206
14710
|
recipe: unknown;
|
|
@@ -14259,6 +14763,38 @@ interface ChannelActivityToday {
|
|
|
14259
14763
|
channels: ChannelActivityRow[];
|
|
14260
14764
|
}
|
|
14261
14765
|
//#endregion
|
|
14766
|
+
//#region packages/core/src/data-reset/reset.d.ts
|
|
14767
|
+
type DataResetTargetKind = 'data' | 'im-settings' | 'local-tools';
|
|
14768
|
+
type DataResetKeptKind = 'credentials' | 'memory' | 'exports';
|
|
14769
|
+
interface DataResetTarget {
|
|
14770
|
+
kind: DataResetTargetKind;
|
|
14771
|
+
path: string;
|
|
14772
|
+
bytes: number;
|
|
14773
|
+
files: number;
|
|
14774
|
+
partial?: boolean;
|
|
14775
|
+
}
|
|
14776
|
+
interface DataResetPreview {
|
|
14777
|
+
token: string;
|
|
14778
|
+
expiresAt: string;
|
|
14779
|
+
bots: number;
|
|
14780
|
+
targets: DataResetTarget[];
|
|
14781
|
+
kept: {
|
|
14782
|
+
kind: DataResetKeptKind;
|
|
14783
|
+
path: string;
|
|
14784
|
+
}[];
|
|
14785
|
+
restartable: boolean;
|
|
14786
|
+
}
|
|
14787
|
+
type DataResetResult = {
|
|
14788
|
+
status: 'restarting';
|
|
14789
|
+
} | {
|
|
14790
|
+
status: 'restart-required';
|
|
14791
|
+
reason: 'restart-unavailable';
|
|
14792
|
+
};
|
|
14793
|
+
interface DataReset {
|
|
14794
|
+
preview(): DataResetPreview;
|
|
14795
|
+
confirm(token: string): DataResetResult;
|
|
14796
|
+
}
|
|
14797
|
+
//#endregion
|
|
14262
14798
|
//#region packages/core/src/models/readiness.d.ts
|
|
14263
14799
|
interface ModelRouteRepair {
|
|
14264
14800
|
code: 'legacy-ambiguous' | 'legacy-missing' | 'route-unavailable';
|
|
@@ -14275,6 +14811,24 @@ interface ModelRouteReadiness {
|
|
|
14275
14811
|
prepare(slug: string, role: 'orchestrator' | 'assignment', retainedRoute?: ModelRoute): Promise<void>;
|
|
14276
14812
|
}
|
|
14277
14813
|
//#endregion
|
|
14814
|
+
//#region packages/core/src/workspaces/folder-browse.d.ts
|
|
14815
|
+
interface BrowsedFolder {
|
|
14816
|
+
name: string;
|
|
14817
|
+
path: string;
|
|
14818
|
+
hidden: boolean;
|
|
14819
|
+
}
|
|
14820
|
+
interface FolderListing {
|
|
14821
|
+
path: string;
|
|
14822
|
+
home: string;
|
|
14823
|
+
crumbs: BrowsedFolder[];
|
|
14824
|
+
entries: BrowsedFolder[];
|
|
14825
|
+
truncated: boolean;
|
|
14826
|
+
roots: BrowsedFolder[];
|
|
14827
|
+
}
|
|
14828
|
+
interface FolderBrowser {
|
|
14829
|
+
list(path?: string): FolderListing;
|
|
14830
|
+
}
|
|
14831
|
+
//#endregion
|
|
14278
14832
|
//#region packages/core/src/memory/managed-git.d.ts
|
|
14279
14833
|
type GitSource = 'system' | 'managed';
|
|
14280
14834
|
type GitInstallFailure = 'unsupported' | 'network' | 'checksum' | 'unpack' | 'unrunnable';
|
|
@@ -14511,12 +15065,14 @@ interface BridgeMethods {
|
|
|
14511
15065
|
onboardingModel(payload: unknown): Promise<BridgeResult<{
|
|
14512
15066
|
revision: number;
|
|
14513
15067
|
}>>;
|
|
15068
|
+
introEvent(payload: unknown): BridgeResult<null>;
|
|
14514
15069
|
channelRetry(payload: unknown): Promise<BridgeResult<{
|
|
14515
15070
|
accepted: true;
|
|
14516
15071
|
}>>;
|
|
14517
15072
|
botNewSession(payload: unknown): Promise<BridgeResult<{
|
|
14518
15073
|
started: true;
|
|
14519
15074
|
}>>;
|
|
15075
|
+
botCompact(payload: unknown): Promise<BridgeResult<ManualCompactionResult>>;
|
|
14520
15076
|
channelBotStop(payload: unknown): Promise<BridgeResult<{
|
|
14521
15077
|
stopped: {
|
|
14522
15078
|
botSlug: string;
|
|
@@ -14643,13 +15199,39 @@ interface BridgeMethods {
|
|
|
14643
15199
|
channelId?: string;
|
|
14644
15200
|
receipt?: BotCreationReceipt;
|
|
14645
15201
|
}>;
|
|
15202
|
+
botImportPreview(payload: unknown): Promise<BridgeResult<Awaited<ReturnType<BotImportsService['previewGit']>>>>;
|
|
15203
|
+
botImportLookup(payload: unknown): BridgeResult<{
|
|
15204
|
+
receipt: BotCreationReceipt | null;
|
|
15205
|
+
}>;
|
|
15206
|
+
zipUploadBegin(payload: unknown): BridgeResult<BotZipUploadStatus>;
|
|
15207
|
+
zipUploadChunk(payload: unknown): BridgeResult<BotZipUploadStatus>;
|
|
15208
|
+
zipUploadPreview(payload: unknown): BridgeResult<BotZipPreview>;
|
|
15209
|
+
zipImportLookup(payload: unknown): BridgeResult<{
|
|
15210
|
+
receipt: BotCreationReceipt | null;
|
|
15211
|
+
}>;
|
|
15212
|
+
zipImport(payload: unknown): Promise<BridgeResult<{
|
|
15213
|
+
bot: PersonaBotDetail;
|
|
15214
|
+
channelId: string;
|
|
15215
|
+
receipt?: BotCreationReceipt;
|
|
15216
|
+
}>>;
|
|
15217
|
+
createLookup(payload: unknown): BridgeResult<{
|
|
15218
|
+
receipt: BotCreationReceipt | null;
|
|
15219
|
+
}>;
|
|
14646
15220
|
createFromGit(payload: unknown): Promise<BridgeResult<{
|
|
14647
15221
|
bot: PersonaBotDetail;
|
|
14648
15222
|
httpsFallback?: HttpsFallback;
|
|
15223
|
+
receipt?: BotCreationReceipt;
|
|
15224
|
+
channelId?: string;
|
|
14649
15225
|
}>>;
|
|
14650
15226
|
update(payload: unknown): BridgeResult<{
|
|
14651
15227
|
bot: PersonaBotDetail;
|
|
14652
15228
|
}>;
|
|
15229
|
+
dataResetPreview(): BridgeResult<{
|
|
15230
|
+
preview: DataResetPreview;
|
|
15231
|
+
}>;
|
|
15232
|
+
dataResetConfirm(payload: unknown): BridgeResult<{
|
|
15233
|
+
reset: DataResetResult;
|
|
15234
|
+
}>;
|
|
14653
15235
|
deletionPreview(payload: unknown): BridgeResult<{
|
|
14654
15236
|
preview: PersonaBotDeletionPreview;
|
|
14655
15237
|
}>;
|
|
@@ -14731,6 +15313,11 @@ interface BridgeMethods {
|
|
|
14731
15313
|
before?: string;
|
|
14732
15314
|
}>;
|
|
14733
15315
|
channelPurgePreview(payload: unknown): BridgeResult<PurgePreview>;
|
|
15316
|
+
storageUsage(payload?: unknown): BridgeResult<StorageUsage>;
|
|
15317
|
+
storageCleanupPreview(payload: unknown): BridgeResult<MediaCleanupPreview>;
|
|
15318
|
+
storageCleanupConfirm(payload: unknown): BridgeResult<MediaCleanupResult>;
|
|
15319
|
+
storageMessagesCleanupPreview(payload: unknown): BridgeResult<TextCleanupPreview>;
|
|
15320
|
+
storageMessagesCleanupConfirm(payload: unknown): BridgeResult<TextCleanupResult>;
|
|
14734
15321
|
channelPurgeConfirm(payload: unknown): BridgeResult<{
|
|
14735
15322
|
accepted: number;
|
|
14736
15323
|
cleanupPending?: number;
|
|
@@ -14780,10 +15367,7 @@ interface BridgeMethods {
|
|
|
14780
15367
|
humanAssignmentContext(payload: unknown): BridgeResult<{
|
|
14781
15368
|
context: HumanAssignmentContext;
|
|
14782
15369
|
}>;
|
|
14783
|
-
humanAttentionStatus(payload: unknown): BridgeResult<
|
|
14784
|
-
unreadCount: number;
|
|
14785
|
-
hasAction: boolean;
|
|
14786
|
-
}>;
|
|
15370
|
+
humanAttentionStatus(payload: unknown): BridgeResult<HumanAttentionStatus>;
|
|
14787
15371
|
channelUnreadCounts(payload: unknown): BridgeResult<{
|
|
14788
15372
|
channels: Array<{
|
|
14789
15373
|
channelId: string;
|
|
@@ -14793,6 +15377,9 @@ interface BridgeMethods {
|
|
|
14793
15377
|
humanAttentionDismiss(payload: unknown): BridgeResult<{
|
|
14794
15378
|
accepted: boolean;
|
|
14795
15379
|
}>;
|
|
15380
|
+
humanAttentionRestore(payload: unknown): BridgeResult<{
|
|
15381
|
+
accepted: boolean;
|
|
15382
|
+
}>;
|
|
14796
15383
|
humanAttentionIgnore(payload: unknown): BridgeResult<{
|
|
14797
15384
|
accepted: boolean;
|
|
14798
15385
|
}>;
|
|
@@ -14822,6 +15409,7 @@ interface BridgeMethods {
|
|
|
14822
15409
|
kind: 'directory';
|
|
14823
15410
|
};
|
|
14824
15411
|
}>;
|
|
15412
|
+
folderBrowse(payload: unknown): BridgeResult<FolderListing>;
|
|
14825
15413
|
grants(payload: unknown): BridgeResult<{
|
|
14826
15414
|
grants: WorkspaceGrant[];
|
|
14827
15415
|
}>;
|
|
@@ -14832,6 +15420,7 @@ interface BridgeMethods {
|
|
|
14832
15420
|
grantRevoke(payload: unknown): BridgeResult<{
|
|
14833
15421
|
grant: WorkspaceGrant;
|
|
14834
15422
|
}>;
|
|
15423
|
+
grantRequestApprove(payload: unknown): Promise<BridgeResult<GrantRequestApprovalResult>>;
|
|
14835
15424
|
grantWriteSet(payload: unknown): BridgeResult<{
|
|
14836
15425
|
grant: WorkspaceGrant;
|
|
14837
15426
|
}>;
|
|
@@ -14920,6 +15509,9 @@ interface BridgeMethods {
|
|
|
14920
15509
|
path: string;
|
|
14921
15510
|
body: string;
|
|
14922
15511
|
head: string;
|
|
15512
|
+
binary?: boolean;
|
|
15513
|
+
image?: MemoryImage;
|
|
15514
|
+
markdown?: MemoryMarkdown;
|
|
14923
15515
|
};
|
|
14924
15516
|
}>;
|
|
14925
15517
|
memoryHistory(payload: unknown): BridgeResult<{
|
|
@@ -15029,6 +15621,9 @@ interface BridgeMethods {
|
|
|
15029
15621
|
}>;
|
|
15030
15622
|
approvalReviewerModel(payload?: unknown): Promise<BridgeResult<ApprovalReviewerModelView>>;
|
|
15031
15623
|
approvalReviewerModelSet(payload: unknown): Promise<BridgeResult<ApprovalReviewerModelView>>;
|
|
15624
|
+
idleCompaction(payload?: unknown): BridgeResult<IdleCompactionView>;
|
|
15625
|
+
idleCompactionSet(payload: unknown): BridgeResult<IdleCompactionView>;
|
|
15626
|
+
idleCompactionCacheLifetimeSet(payload: unknown): BridgeResult<IdleCompactionView>;
|
|
15032
15627
|
standingLimitsSet(payload: unknown): BridgeResult<{
|
|
15033
15628
|
bot: PersonaBotDetail;
|
|
15034
15629
|
}>;
|
|
@@ -15084,6 +15679,9 @@ interface BridgeMethods {
|
|
|
15084
15679
|
releaseUpdate(payload?: unknown): Promise<BridgeResult<ReleaseUpdate>>;
|
|
15085
15680
|
releaseInstall(payload: unknown): Promise<BridgeResult<ReleaseInstall>>;
|
|
15086
15681
|
releaseRestart(payload: unknown): Promise<BridgeResult<ReleaseRestart>>;
|
|
15682
|
+
pluginUpdates(payload?: unknown): Promise<BridgeResult<PluginUpdates>>;
|
|
15683
|
+
pluginInstall(payload: unknown): Promise<BridgeResult<PluginInstall>>;
|
|
15684
|
+
pluginRestart(payload: unknown): Promise<BridgeResult<PluginRestart>>;
|
|
15087
15685
|
telemetryStatus(): BridgeResult<TelemetryStatus>;
|
|
15088
15686
|
gitStatus(): BridgeResult<GitStatus>;
|
|
15089
15687
|
gitInstall(): BridgeResult<GitStatus>;
|
|
@@ -15116,7 +15714,22 @@ interface ApprovalReviewerModelView {
|
|
|
15116
15714
|
available?: boolean;
|
|
15117
15715
|
unavailableReason?: string;
|
|
15118
15716
|
}
|
|
15717
|
+
interface IdleCompactionView {
|
|
15718
|
+
enabled: boolean;
|
|
15719
|
+
settingReadable: boolean;
|
|
15720
|
+
minimumIdleSeconds: number;
|
|
15721
|
+
scheduled: number;
|
|
15722
|
+
routes: IdleCompactionRouteView[];
|
|
15723
|
+
}
|
|
15724
|
+
interface IdleCompactionDeps {
|
|
15725
|
+
settings: IdleCompactionSettings;
|
|
15726
|
+
scheduler: Pick<IdleCompaction, 'describe' | 'scheduled'>;
|
|
15727
|
+
routes(): IdleCompactionRoute[];
|
|
15728
|
+
rescan(): void;
|
|
15729
|
+
compactBot?(slug: string): Promise<ManualCompactionResult>;
|
|
15730
|
+
}
|
|
15119
15731
|
interface BridgeMethodsDeps {
|
|
15732
|
+
idleCompaction?: IdleCompactionDeps;
|
|
15120
15733
|
cloudConnections?: CloudConnections;
|
|
15121
15734
|
cloudWork?: CloudWork;
|
|
15122
15735
|
approvalReviewer?: ApprovalReviewerSettings;
|
|
@@ -15124,10 +15737,14 @@ interface BridgeMethodsDeps {
|
|
|
15124
15737
|
warn?: (message: string) => void;
|
|
15125
15738
|
registry: PersonaBotRegistry;
|
|
15126
15739
|
creations?: BotCreationService;
|
|
15740
|
+
imports?: BotImportsService;
|
|
15741
|
+
zipImports?: BotZipImportService;
|
|
15127
15742
|
channelManagement?: ChannelManagementService;
|
|
15128
15743
|
approvalTemplates?: ApprovalTemplateLibrary;
|
|
15129
15744
|
deletions?: PersonaBotDeletions;
|
|
15130
15745
|
contentPurge?: ContentPurge;
|
|
15746
|
+
storage?: StorageCleanup;
|
|
15747
|
+
dataReset?: DataReset;
|
|
15131
15748
|
attachments?: AttachmentStore;
|
|
15132
15749
|
modelPresets?: ModelPresetStore;
|
|
15133
15750
|
modelCatalog?: ModelCatalog;
|
|
@@ -15165,6 +15782,7 @@ interface BridgeMethodsDeps {
|
|
|
15165
15782
|
humanAttention?: HumanAttentionQuery;
|
|
15166
15783
|
humanAttentionDecisions?: HumanAttentionDecisions;
|
|
15167
15784
|
grants?: WorkspaceGrantStore;
|
|
15785
|
+
folders?: FolderBrowser;
|
|
15168
15786
|
externalMessaging?: OutboundMessaging;
|
|
15169
15787
|
toolApproval?: ChannelToolApproval;
|
|
15170
15788
|
userQuestions?: ChannelUserQuestions;
|
|
@@ -15185,6 +15803,7 @@ interface BridgeMethodsDeps {
|
|
|
15185
15803
|
createBotId?: () => string;
|
|
15186
15804
|
marketplace?: MarketplaceClient;
|
|
15187
15805
|
release?: ReleaseService;
|
|
15806
|
+
plugins?: PluginUpdateService;
|
|
15188
15807
|
telemetry?: {
|
|
15189
15808
|
status(): TelemetryStatus;
|
|
15190
15809
|
setPreference(enabled: boolean): TelemetryStatus;
|
|
@@ -15447,6 +16066,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15447
16066
|
onboardingModel(slug: string | undefined, expectedRevision: number, route: ModelRoute, globalDefault: boolean, expectedDefaultRevision?: number): Promise<{
|
|
15448
16067
|
revision: number;
|
|
15449
16068
|
}>;
|
|
16069
|
+
introEvent(event: string, properties?: Record<string, string | boolean>): null;
|
|
15450
16070
|
modelPlanInherit(slug: string, expectedRevision: number): {
|
|
15451
16071
|
revision: number;
|
|
15452
16072
|
};
|
|
@@ -15456,6 +16076,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15456
16076
|
botNewSession(slug: string): Promise<{
|
|
15457
16077
|
started: true;
|
|
15458
16078
|
}>;
|
|
16079
|
+
botCompact(slug: string): Promise<ManualCompactionResult>;
|
|
15459
16080
|
channelBotStop(channelId: string, botSlug: string): Promise<{
|
|
15460
16081
|
stopped: {
|
|
15461
16082
|
botSlug: string;
|
|
@@ -15503,13 +16124,39 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15503
16124
|
channelId?: string;
|
|
15504
16125
|
receipt?: BotCreationReceipt;
|
|
15505
16126
|
};
|
|
15506
|
-
|
|
16127
|
+
createLookup(operationKey: string, displayName: string, roles?: string[], persona?: string, description?: string, model?: string, preset?: string, workspaces?: string[], avatar?: string, memoryLocation?: string, coreMemory?: string): {
|
|
16128
|
+
receipt: BotCreationReceipt | null;
|
|
16129
|
+
};
|
|
16130
|
+
botImportPreview(gitUrl: string): Promise<Awaited<ReturnType<BotImportsService['previewGit']>>>;
|
|
16131
|
+
botImportLookup(operationKey: string, gitUrl: string, expectedCommit: string, displayName: string, roles?: string[], description?: string): {
|
|
16132
|
+
receipt: BotCreationReceipt | null;
|
|
16133
|
+
};
|
|
16134
|
+
zipUploadBegin(uploadKey: string, sha256: string, sizeBytes: number): BotZipUploadStatus;
|
|
16135
|
+
zipUploadChunk(uploadKey: string, sha256: string, sizeBytes: number, offset: number, dataBase64: string): BotZipUploadStatus;
|
|
16136
|
+
zipUploadPreview(uploadKey: string, sha256: string, sizeBytes: number): BotZipPreview;
|
|
16137
|
+
zipImportLookup(operationKey: string, sha256: string, displayName: string, roles?: string[], description?: string): {
|
|
16138
|
+
receipt: BotCreationReceipt | null;
|
|
16139
|
+
};
|
|
16140
|
+
zipImport(operationKey: string, uploadKey: string, sha256: string, sizeBytes: number, displayName: string, roles?: string[], description?: string): Promise<{
|
|
16141
|
+
bot: PersonaBotDetail;
|
|
16142
|
+
channelId: string;
|
|
16143
|
+
receipt?: BotCreationReceipt;
|
|
16144
|
+
}>;
|
|
16145
|
+
createFromGit(displayName: string, gitUrl: string, roles?: string[], description?: string, origin?: 'marketplace', operationKey?: string, expectedCommit?: string): Promise<{
|
|
15507
16146
|
bot: PersonaBotDetail;
|
|
15508
16147
|
httpsFallback?: HttpsFallback;
|
|
16148
|
+
receipt?: BotCreationReceipt;
|
|
16149
|
+
channelId?: string;
|
|
15509
16150
|
}>;
|
|
15510
16151
|
update(slug: string, patch: PersonaBotPatch, expectedProfile?: string): {
|
|
15511
16152
|
bot: PersonaBotDetail;
|
|
15512
16153
|
};
|
|
16154
|
+
dataResetPreview(): {
|
|
16155
|
+
preview: DataResetPreview;
|
|
16156
|
+
};
|
|
16157
|
+
dataResetConfirm(token: string): {
|
|
16158
|
+
reset: DataResetResult;
|
|
16159
|
+
};
|
|
15513
16160
|
deletionPreview(slug: string): {
|
|
15514
16161
|
preview: PersonaBotDeletionPreview;
|
|
15515
16162
|
};
|
|
@@ -15562,6 +16209,9 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15562
16209
|
};
|
|
15563
16210
|
approvalReviewerModel(): Promise<ApprovalReviewerModelView>;
|
|
15564
16211
|
approvalReviewerModelSet(model: ModelRoute | null): Promise<ApprovalReviewerModelView>;
|
|
16212
|
+
idleCompaction(): IdleCompactionView;
|
|
16213
|
+
idleCompactionSet(enabled: boolean): IdleCompactionView;
|
|
16214
|
+
idleCompactionCacheLifetimeSet(provider: string, model: string, seconds: number | null): IdleCompactionView;
|
|
15565
16215
|
standingLimitsSet(slug: string, soul: number, coreMemory: number): {
|
|
15566
16216
|
bot: PersonaBotDetail;
|
|
15567
16217
|
};
|
|
@@ -15655,6 +16305,11 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15655
16305
|
sources: PurgeSource[];
|
|
15656
16306
|
before?: string;
|
|
15657
16307
|
};
|
|
16308
|
+
storageUsage(): StorageUsage;
|
|
16309
|
+
storageCleanupPreview(before: string, channelIds?: string[], kinds?: StorageMediaKind[]): MediaCleanupPreview;
|
|
16310
|
+
storageCleanupConfirm(before: string, channelIds: string[] | undefined, kinds: StorageMediaKind[] | undefined, token: string): MediaCleanupResult;
|
|
16311
|
+
storageMessagesCleanupPreview(before: string, channelIds?: string[]): TextCleanupPreview;
|
|
16312
|
+
storageMessagesCleanupConfirm(before: string, channelIds: string[] | undefined, token: string): TextCleanupResult;
|
|
15658
16313
|
channelPurgePreview(channelId: string, sourceEventIds: string[]): PurgePreview;
|
|
15659
16314
|
channelPurgeConfirm(channelId: string, sourceEventIds: string[], token: string): {
|
|
15660
16315
|
accepted: number;
|
|
@@ -15700,11 +16355,8 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15700
16355
|
};
|
|
15701
16356
|
channelActivityToday(): ChannelActivityToday;
|
|
15702
16357
|
activityOverview(): ActivityOverview;
|
|
15703
|
-
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;
|
|
15704
|
-
humanAttentionStatus():
|
|
15705
|
-
unreadCount: number;
|
|
15706
|
-
hasAction: boolean;
|
|
15707
|
-
};
|
|
16358
|
+
humanAttention(category?: HumanAttentionCategory, botSlug?: string, channelId?: string, limit?: number, cursor?: string, sort?: 'newest' | 'oldest' | 'mentions-first', snoozed?: boolean, kind?: 'auto-rejection', search?: string, unreadOnly?: boolean, queryVersion?: number, dismissed?: boolean, notifications?: boolean): HumanAttentionPage;
|
|
16359
|
+
humanAttentionStatus(messageCounts?: boolean): HumanAttentionStatus;
|
|
15708
16360
|
channelUnreadCounts(): {
|
|
15709
16361
|
channels: Array<{
|
|
15710
16362
|
channelId: string;
|
|
@@ -15717,6 +16369,9 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15717
16369
|
humanAttentionDismiss(itemId: string, sourceKey: string): {
|
|
15718
16370
|
accepted: boolean;
|
|
15719
16371
|
};
|
|
16372
|
+
humanAttentionRestore(itemId: string, sourceKey: string): {
|
|
16373
|
+
accepted: boolean;
|
|
16374
|
+
};
|
|
15720
16375
|
humanAttentionIgnore(sourceEventId: string): {
|
|
15721
16376
|
accepted: boolean;
|
|
15722
16377
|
};
|
|
@@ -15745,6 +16400,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15745
16400
|
messageAttachmentTarget(channelId: string, messageId: string, fileId: string): {
|
|
15746
16401
|
target: MemoryFileTarget;
|
|
15747
16402
|
};
|
|
16403
|
+
folderBrowse(path?: string): FolderListing;
|
|
15748
16404
|
workspaceFileTarget(slug: string, grantId: string): {
|
|
15749
16405
|
target: {
|
|
15750
16406
|
path: string;
|
|
@@ -15768,6 +16424,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15768
16424
|
grantRevoke(slug: string, grantId: string): {
|
|
15769
16425
|
grant: WorkspaceGrant;
|
|
15770
16426
|
};
|
|
16427
|
+
grantRequestApprove(slug: string, channelId: string, requestMessageId: string, workspaceId: string, acknowledgeReadWrite: boolean): Promise<GrantRequestApprovalResult>;
|
|
15771
16428
|
grantWriteSet(slug: string, grantId: string, enabled: boolean): {
|
|
15772
16429
|
grant: WorkspaceGrant;
|
|
15773
16430
|
};
|
|
@@ -15787,7 +16444,7 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15787
16444
|
status: 'pending' | 'expired';
|
|
15788
16445
|
execution?: 'waiting-human' | 'waiting-capacity' | 'running' | 'settled' | 'needs-repair';
|
|
15789
16446
|
};
|
|
15790
|
-
toolApprovalDecide(channelId: string, messageId: string, outcome: 'allowed-once' | 'allowed-always-exact' | 'allowed-always-all' | 'rejected'): Promise<{
|
|
16447
|
+
toolApprovalDecide(channelId: string, messageId: string, outcome: 'allowed-once' | 'allowed-always-tool' | 'allowed-always-exact' | 'allowed-always-all' | 'rejected'): Promise<{
|
|
15791
16448
|
accepted: boolean;
|
|
15792
16449
|
}>;
|
|
15793
16450
|
toolAutoRejectionOverride(itemId: string): Promise<{
|
|
@@ -15855,6 +16512,9 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15855
16512
|
path: string;
|
|
15856
16513
|
body: string;
|
|
15857
16514
|
head: string;
|
|
16515
|
+
binary?: boolean;
|
|
16516
|
+
image?: MemoryImage;
|
|
16517
|
+
markdown?: MemoryMarkdown;
|
|
15858
16518
|
};
|
|
15859
16519
|
};
|
|
15860
16520
|
memoryHistory(channelId: string): {
|
|
@@ -15943,11 +16603,14 @@ export declare class BotharnessBridgeService extends TypertRemoteService {
|
|
|
15943
16603
|
received: true;
|
|
15944
16604
|
}>;
|
|
15945
16605
|
marketplaceTopics(): Promise<MarketplaceTopic[]>;
|
|
15946
|
-
marketplaceDetail(id: string): Promise<MarketplaceDetail>;
|
|
16606
|
+
marketplaceDetail(id: string, lang?: MarketplaceLanguage): Promise<MarketplaceDetail>;
|
|
15947
16607
|
releaseInfo(since?: string): Promise<ReleaseInfo>;
|
|
15948
16608
|
releaseUpdate(force?: boolean): Promise<ReleaseUpdate>;
|
|
15949
16609
|
releaseInstall(version: string): Promise<ReleaseInstall>;
|
|
15950
16610
|
releaseRestart(): Promise<ReleaseRestart>;
|
|
16611
|
+
pluginUpdates(force?: boolean): Promise<PluginUpdates>;
|
|
16612
|
+
pluginInstall(name: string, version: string): Promise<PluginInstall>;
|
|
16613
|
+
pluginRestart(): Promise<PluginRestart>;
|
|
15951
16614
|
telemetryStatus(): TelemetryStatus;
|
|
15952
16615
|
gitStatus(): GitStatus;
|
|
15953
16616
|
gitInstall(): GitStatus;
|
|
@@ -16018,7 +16681,7 @@ interface BotCreateFailure {
|
|
|
16018
16681
|
name: string;
|
|
16019
16682
|
};
|
|
16020
16683
|
}
|
|
16021
|
-
export declare const BOT_CREATE_HELP = "deepseekbot: create PersonaBots without clicking\n\nUsage:\n deepseekbot create --name <name> [--persona <text> | --persona-stdin]\n [--core-memory <text> | --core-memory-stdin]\n [--description <text>] [--role <tag> ...] [--avatar-file <image>]\n [--preset <model-preset-id>] [--memory-location <absolute-dir>]\n [--home <dsh-home>] [--operation-key <stable-key> (online blank creation)]\n deepseekbot create --name <name> --from-git <url | owner/repo> [...]\n deepseekbot create [--name <name>] --from-zip <file> [...]\n deepseekbot create [--name <name>] --from-dir <directory> [...]\n deepseekbot list [--home <dsh-home>]\n deepseekbot show <id> [--home <dsh-home>]\n deepseekbot model-presets [--home <dsh-home>]\n deepseekbot model-preset-create --name <preset> --orchestrator-provider <p> --orchestrator-model <m>\n [--orchestrator-effort <e>] --assignment-provider <p>\n --assignment-model <m> [--assignment-effort <e>] [--home <dsh-home>]\n [--plan-stdin (online Host only)]\n deepseekbot model-preset-apply <id> --preset <preset-id> [--expected-revision <n>] [--preset-revision <n>] [--home <dsh-home>]\n deepseekbot model-plan <id> [--home <dsh-home>]\n deepseekbot pause <id> [--home <dsh-home>]\n deepseekbot resume <id> [--home <dsh-home>]\n deepseekbot update <id> [--name <name>] [--description <text>] [--role <tag> ...] [--home <dsh-home>]\n deepseekbot human-name-set (--name <text> | --clear) [--home <dsh-home>]\n deepseekbot channel-human-name-set <channel> (--nickname <text> | --clear) [--home <dsh-home>]\n deepseekbot memory-snapshot <id> [--home <dsh-home>]\n deepseekbot memory-file <id> --path <file> [--home <dsh-home>]\n deepseekbot memory-history <id> [--limit <n>] [--home <dsh-home>]\n deepseekbot memory-diff <id> --sha <commit> [--home <dsh-home>]\n deepseekbot memory-save <id> --path <file> (--body <text> | --body-stdin)\n [--expected-head <sha>] [--edit-id <id>] [--home <dsh-home>]\n deepseekbot channels [--home <dsh-home>]\n deepseekbot channel-messages <channel> [--limit <n>] [--before <id>] [--home <dsh-home>]\n deepseekbot channel-media-target <channel> --source-event <id> --attachment <id>\n deepseekbot channel-media-download <channel> --source-event <id> --attachment <id> --out <path>\n deepseekbot grants <id> [--home <dsh-home>]\n deepseekbot grant-revoke <id> --grant <grant> [--home <dsh-home>] online: add --confirm\n deepseekbot grant-write-set <id> --grant <grant> (--enabled | --disabled) [--home <dsh-home>]\n deepseekbot schedules <id> [--home <dsh-home>]\n deepseekbot schedule-create <id> --title <t> --prompt <p> (--every <s> | --daily <HH:MM> |\n --weekly <HH:MM> --weekdays <0-6,..> | --once-date <d> --once-time <t> |\n --cron <expr>) [--timezone <tz>] [--enabled|--disabled] [--locked] [--home <dsh-home>]\n deepseekbot schedule-update <id> --sid <schedule> [--title ...] [--prompt ...] [trigger ...] [--home <dsh-home>]\n deepseekbot schedule-delete <id> --sid <schedule> [--confirm] [--home <dsh-home>]\n deepseekbot schedule-history <id> --sid <schedule> [--home <dsh-home>]\n deepseekbot schedule-run-now <id> --sid <schedule> [--home <dsh-home>]\n deepseekbot schedule-preview (--every <s> | --daily ... | ...) [--home <dsh-home>]\n deepseekbot pairings <id> [--home <dsh-home>]\n deepseekbot secret-put <NAME> [--home <dsh-home>] secret value arrives on stdin only\n deepseekbot secret-list [--home <dsh-home>] names, sources, writability; never values\n deepseekbot secret-unset <NAME> [--home <dsh-home>]\n deepseekbot search <words> find commands by words\n deepseekbot send <id> (--body <text> | --body-stdin) [--message-id human-<UUID>] [--timeout <seconds>]\n deepseekbot send-status <id> --message-id <Human-message-id>\n deepseekbot tool-approval-status <channel> --message-id <card-id>\n deepseekbot tool-approval-decide <channel> --message-id <card-id> --outcome allowed-once|rejected\n deepseekbot user-question-status <channel> --message-id <card-id>\n deepseekbot user-question-answer <channel> --message-id <card-id> --answer-stdin\n deepseekbot ask-secret-status <channel> --message-id <card-id>\n deepseekbot ask-secret-submit <channel> --message-id <card-id> --values-stdin\n deepseekbot ask-secret-cancel <channel> --message-id <card-id>\n deepseekbot ask-secret-account-status <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-replace <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-revoke <channel> --message-id <configured-card-id>\n deepseekbot ask-secret-accounts <id>\n deepseekbot release-info [--since <version>]\n deepseekbot release-check\n deepseekbot release-install <version> --confirm\n deepseekbot release-restart --confirm\n deepseekbot marketplace-list [--query <words>] [--topic <topic>] [--sort updated|stars] [--cursor <c>]\n deepseekbot marketplace-topics\n deepseekbot marketplace-detail <owner/repo>\n deepseekbot marketplace-submit <github-repo-url>\n deepseekbot marketplace-report <owner/repo> [--reason <text>]\n deepseekbot telemetry-status\n deepseekbot telemetry-set (--enabled | --disabled)\n deepseekbot git-status\n deepseekbot git-install\n deepseekbot pairing-list <id>\n deepseekbot pairing-review <id> <pairing-id> --decision approve|reject|revoke [--role <role-id> | --capability <c> ...] [--confirm]\n deepseekbot workspace-options\n deepseekbot grant-create <id> --workspace <workspace-id>\n deepseekbot browser-access-set <id> (--enabled | --disabled)\n deepseekbot computer-access-set <id> (--enabled | --disabled)\n deepseekbot access <id>\n deepseekbot access-set <id> --mode workspace-write|danger-full-access [--scope chat|assignments] [--acknowledge-risk]\n deepseekbot settings <namespace>\n deepseekbot settings-set <namespace> --patch-stdin [--expected-revision <n> --previous-value <json>]\n deepseekbot workspace-create <absolute-path>\n deepseekbot channel <channel-id>\n deepseekbot group-create <name> [--member <bot-id> ...] [--operation-key <key>]\n deepseekbot group-invite <channel-id> --bot <bot-id> [--operation-key <key>] [--expected-channel <fingerprint>]\n deepseekbot group-invite-cancel <channel-id> --invitation <invitation-id> [--expected-channel <fingerprint>]\n deepseekbot group-join-decide <channel-id> --request <join-request-id> (--accept | --decline) [--expected-channel <fingerprint>]\n deepseekbot channel-rename <channel-id> --name <name> [--expected-channel <fingerprint>]\n deepseekbot group-avatar-set <channel-id> (--avatar-file <path> | --clear) [--expected-channel <fingerprint>]\n deepseekbot group-wake-policies <channel-id>\n deepseekbot group-wake-set <channel-id> --bot <bot-id> (--mode all|mentions|digest|silent | --inherit) [--count <n>] [--interval <seconds>] [--expected-channel <fingerprint>]\n deepseekbot group-member-remove <channel-id> --bot <bot-id> [--expected-channel <fingerprint>]\n deepseekbot im-app-add <discord|slack|qq|dingtalk|wecom|matrix> --credentials-stdin\n deepseekbot im-app-status <platform>\n deepseekbot im-app-remove <platform> --app <app-id>\n deepseekbot im-bind <id> --app <app-id>\n deepseekbot im-unbind <id> --app <app-id>\n deepseekbot im-status <id>\n deepseekbot channel-connect <channel> --bot <id> --conversation <external-id> [--app <app-id>]\n deepseekbot channel-ingests <channel>\n deepseekbot browser-open <id>\n deepseekbot browser-frame <id> --out <absolute-file>\n deepseekbot browser-takeover <id> (--enabled | --disabled)\n deepseekbot browser-input <id> --args-stdin\n deepseekbot browser-stop <id>\n deepseekbot computer-start [--target local|container]\n deepseekbot computer-status\n deepseekbot computer-stop\n deepseekbot browser-tools\n deepseekbot browser-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n deepseekbot memory-file-target|memory-graph|memory-commit-diff|memory-changes <id> [...]\n deepseekbot memory-working-diff <id> --path <file> --kind staged|unstaged|untracked|current\n deepseekbot memory-checkpoints|memory-versions <id>\n deepseekbot memory-restore <id> --checkpoint <id> --expected-current <id>\n deepseekbot memory-restore-commit <id> --sha <commit> --expected-head <commit> [--name <version>]\n deepseekbot memory-version-name <id> --sha <commit> --name <version>\n deepseekbot memory-version-unname <id> --tag <version>\n deepseekbot memory-repair <id> --expected-head <commit>\n deepseekbot memory-move <id> (--memory-location <absolute-dir> | --default-location)\n deepseekbot model-catalog\n deepseekbot model-plan-set <id> --plan-stdin [--expected-revision <n>]\n deepseekbot model-plan-customize <id> --orchestrator-provider <p> --orchestrator-model <m> [--orchestrator-effort <e>]\n deepseekbot model-plan-inherit <id> [--expected-revision <n>]\n deepseekbot model-plan-assignments-set <id> --plan-stdin [--expected-revision <n>]\n deepseekbot model-preset-update <preset-id> [--name <n>] [--orchestrator-provider/-model/-effort ...]\n [--assignment-provider/-model/-effort ...] [--plan-stdin] [--expected-revision <n>]\n deepseekbot overview-usage [--period today|week|month|quarter] [--after <bot-cursor>]\n deepseekbot overview-memory [--after <bot-cursor>]\n deepseekbot activity-overview\n deepseekbot channel-activity-today\n deepseekbot bot-usage <id> --start <YYYY-MM-DD> --end <YYYY-MM-DD> [--model <m>] [--provider <p>]\n [--purpose orchestrator|assignment|subagent]\n deepseekbot bot-session-usage <id>\n deepseekbot bot-activity-history <id> [--before <YYYY-MM-DD>] [--weeks <1-104>]\n deepseekbot group-activity <channel>\n deepseekbot bot-trace <id> [--turns <1-20>] [--session <session-id>|direct]\n deepseekbot bot-tools\n deepseekbot bot-tool <id> <tool> [--args-stdin]\n deepseekbot computer-tools\n deepseekbot computer-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n deepseekbot todos\n deepseekbot todo-add --title <text>\n deepseekbot todo-update <todo-id> [--title <text>] [--done | --not-done]\n deepseekbot todo-remove <todo-id>\n deepseekbot todo-tools\n deepseekbot todo-tool <id> <tool> [--args-stdin]\n deepseekbot bot-attention <id> [--limit <1-100>] [--cursor <source-id>] [--state <state>]\n deepseekbot bot-sessions <id> [--limit <1-100>]\n deepseekbot bot-activity <id> [--limit <1-100>]\n deepseekbot inbox [--category action|info|unread|replies|handled] [--bot <id>] [--channel <id>]\n [--limit <1-100>] [--cursor <cursor>] [--sort newest|oldest] [--snoozed]\n [--kind auto-rejection]\n deepseekbot inbox-status\n deepseekbot inbox-dismiss <item-id> [--source-key <source-event-id>]\n deepseekbot inbox-allow-once <autoreject:item-id>\n deepseekbot inbox-snooze <item-id> [--source-key <source-event-id>] (--until <ISO time> | --clear)\n deepseekbot inbox-ignore <source-event-id>\n deepseekbot assignment-context <id> --session <session-id> --source <source-event-id>\n deepseekbot channel-assignments <group-channel>\n deepseekbot channel-assign <channel> (--section <section-id> | --unsectioned) [--index <n>]\n deepseekbot session-ids\n deepseekbot session-owner <session-id>\n deepseekbot session-archive-set <id> --session <session-id> (--archived | --unarchived)\n deepseekbot tool-approval-rules <id>\n deepseekbot tool-approval-rule-revoke <id> --rule <rule-id> --confirm\n deepseekbot private-mcp-set <id> --server <name> (--enabled | --disabled)\n deepseekbot private-mcp-remove <id> --server <name> --confirm\n deepseekbot bot-delete-preview <id>\n deepseekbot bot-delete-memory-folder <id>\n deepseekbot bot-delete-confirm <id> --confirmation-stdin --confirm [--erase-memory]\n deepseekbot bot-delete-retry <id> --confirm\n deepseekbot bot-avatar-set|bot-banner-set <id> (--file <image> | --clear)\n deepseekbot bot-banner-set|bot-appearance-set <id> --recipe-stdin\n deepseekbot bot-primary-color-set <id> (--color <#rrggbb> | --automatic)\n deepseekbot bot-source-policies <id>\n deepseekbot bot-source-policy-set <id> --source-class <class> [--wake <w>] [--delivery steer|turn]\n [--digest-count <n> --digest-interval <seconds>]\n deepseekbot bot-source-policy-reset <id> --source-class <class>\n deepseekbot bot-standing-limits-set <id> --soul <n> --core-memory <n>\n deepseekbot developer-mode-set (--enabled | --disabled)\n deepseekbot roster | human-identity | part-library\n deepseekbot roster-batch pin|unpin|hide|move <channel>... [--section <section-id>]\n deepseekbot roster-pins-set|roster-hidden-set [<channel>...]\n deepseekbot roster-section-create <name>\n deepseekbot roster-section-rename <section-id> --name <text>\n deepseekbot roster-section-remove <section-id> --confirm\n deepseekbot roster-section-reorder <section-id>...\n deepseekbot roster-top-reorder section:<id>|channel:<id>...\n deepseekbot part-library-add --part-stdin [--name <text>] [--parent <part-id>]\n deepseekbot part-library-import --file <png|zip>\n deepseekbot part-library-import-image --file <png> --slot <slot> --colors <n> [--name <text>]\n deepseekbot part-library-export --out <absolute-file> [--part-id <id> | --part-stdin]\n deepseekbot im-apps\n deepseekbot im-authorize <feishu|weixin>\n deepseekbot im-credentials <attempt-id> --credentials-stdin\n deepseekbot im-verify <attempt-id> --verification-stdin\n deepseekbot pairing-status <attempt-id> [--wait] [--timeout <seconds>]\n deepseekbot im-cancel <attempt-id>\n deepseekbot --help | deepseekbot create --help\n\nOutput:\n stdout carries JSON, pretty by default; --compact condenses it to one line\n for agents. Human-readable lines go to stderr only.\n\nSources (exactly one per create):\n (none) blank bot; --preset applies a model preset, otherwise the model\n step reports no-model-yet and activation stays a Settings task\n --from-git clone a Git repository as Memory (HTTPS, SSH, or owner/repo\n shorthand for https://github.com/owner/repo.git)\n --from-zip import a bot bundle zip (same shape as the bot-zip export)\n --from-dir import a bot bundle directory (same shape as the bot-zip export;\n a .git subtree is skipped as files but packed as history)\n\nMachine contract:\n stdout carries exactly one JSON document. Success exits 0 with the bot id,\n DM channel, data directory, per-step statuses, and next actions. Failure\n exits non-zero with {\"error\": {\"code\", \"message\"}} using a stable code\n (usage, secret-in-argv, bad-zip, bad-bundle, bad-ref, unknown-preset,\n unknown-bot, unknown-channel, duplicate-preset, git-not-found, git-clone-failed, git-clone-timeout,\n memory-unavailable, lease-unavailable, bad-credentials, invalid-input, invalid-avatar,\n file-unreadable). Human-readable lines go to stderr only.\n Stop the Host before offline database commands: the writer lease is exclusive.\n\nLive Host:\n Require --host <loopback-origin|tailnet-HTTPS-origin> or DEEPSEEKBOT_HOST.\n Auth: DEEPSEEKBOT_HOST_TOKEN or --token-file <private-file>, never a token in argv.\n Login is fresh per call; cookies stay in memory. --timeout defaults to 120 seconds (max 600).\n send returns its receipt and exact committed replies. Inspect send-status on timeout\n before retrying; send never automatically resubmits. channel-messages also accepts --host.\n create (blank, Git, Zip and directory), list/show, model-presets/create/apply/plan,\n channels and the schedule* commands use the Host when --host or DEEPSEEKBOT_HOST is set. Do not combine\n --home with an online target; failures never fall back to local database access.\n Zip/directory uploads contain local bytes; Git cloning uses the Host environment.\n Creation errors retain known bot/steps; outcome unknown means inspect before retrying.\n Bot diagnostics are bounded summaries, not full execution logs or live streams.\n grant-revoke and grant-write-set use the Host when it is targeted; revokes and removals\n (grant, tool approval rule, private MCP server) need --confirm, like the Web UI.\n Deletion requires preview then stdin {\"token\":\"<preview.token>\"}; Memory is retained.\n Question stdin: {\"answers\":[{\"id\":\"question-id\",\"selected\":[\"option\"],\"custom\":\"optional\"}]}\n Private input stdin: {\"field_id\":\"confidential value\",...}; only declared fields.\n Private input commands return status/acceptance only and never retry a submission.\n\nModels:\n model-presets lists the profile presets; model-preset-create mints one from\n explicit provider/model routes; model-preset-apply and model-plan read and\n write through the Host when selected, otherwise directly offline. Routes are shape-checked plus\n provider-existence-checked offline; catalog liveness and readiness\n inspection stay Host-side, and model-plan reports readiness deferred.\n\nMemory:\n memory-snapshot/file/history/diff read the bot memory store; memory-save\n writes one file and commits it. --expected-head defaults to the current\n HEAD (pass it explicitly for compare-and-swap); --edit-id defaults to a\n fresh UUID and makes repeat submissions idempotent. Conflicts, missing\n files, and bad shas fail coded (memory-conflict, not-found,\n memory-unknown-commit).\n\nIdentity:\n The bot name is a label. Every create mints a new bot id, so reusing a name\n always returns a second bot and still exits 0.\n\nSecrets:\n Never pass secrets as arguments: any --api-key/--token/--secret/--password\n style flag is a hard error (secret-in-argv). Model keys and tokens travel in\n the environment (for example DEEPSEEK_API_KEY, GITHUB_TOKEN) or a stdin pipe\n (--persona-stdin); result JSON never contains secret values.\n\nHome:\n --home points at the target DSH_HOME (a fresh directory works with zero\n clicks); without it, DSH_HOME from the environment is used.\n";
|
|
16684
|
+
export declare const BOT_CREATE_HELP = "tobs: manage your Bots\n\nUsage:\n tobs ssh-tunnel <alias> --pairing-file <private-file> --out <new-private-file>\n --local-port <port> --remote-port <port> [--ssh-config <absolute-file>]\n tobs create --name <name> [--persona <text> | --persona-stdin]\n [--core-memory <text> | --core-memory-stdin]\n [--description <text>] [--role <tag> ...] [--avatar-file <image>]\n [--preset <model-preset-id>] [--memory-location <absolute-dir>]\n [--home <dsh-home>] [--operation-key <stable-key> (online blank creation)]\n tobs create --name <name> --from-git <url | owner/repo> [...]\n tobs create [--name <name>] --from-zip <file> [...]\n tobs create [--name <name>] --from-dir <directory> [...]\n tobs bot-import-preview --from-git <url | owner/repo> --host <url>\n tobs create-status --name <name> --operation-key <stable-key> [same blank or pinned Git input] --host <url>\n tobs list [--home <dsh-home>]\n tobs bot-zip-upload --from-zip <file> --upload-key <key> --host <url>\n tobs bot-zip-preview --upload-key <key> --archive-sha256 <hash> --archive-size <bytes> --host <url>\n tobs bot-zip-import --upload-key <key> --archive-sha256 <hash> --archive-size <bytes> --operation-key <key> --name <name> --host <url>\n tobs bot-zip-import-status --archive-sha256 <hash> --operation-key <key> --name <name> --host <url>\n tobs show <id> [--home <dsh-home>]\n tobs model-presets [--home <dsh-home>]\n tobs model-preset-create --name <preset> --orchestrator-provider <p> --orchestrator-model <m>\n [--orchestrator-effort <e>] --assignment-provider <p>\n --assignment-model <m> [--assignment-effort <e>] [--home <dsh-home>]\n [--plan-stdin (online Host only)]\n tobs model-preset-apply <id> --preset <preset-id> [--expected-revision <n>] [--preset-revision <n>] [--home <dsh-home>]\n tobs model-plan <id> [--home <dsh-home>]\n tobs pause <id> [--home <dsh-home>]\n tobs resume <id> [--home <dsh-home>]\n tobs update <id> [--name <name>] [--description <text>] [--role <tag> ...] [--home <dsh-home>]\n tobs human-name-set (--name <text> | --clear) [--home <dsh-home>]\n tobs channel-human-name-set <channel> (--nickname <text> | --clear) [--home <dsh-home>]\n tobs memory-snapshot <id> [--home <dsh-home>]\n tobs memory-file <id> --path <file> [--home <dsh-home>]\n tobs memory-history <id> [--limit <n>] [--home <dsh-home>]\n tobs memory-diff <id> --sha <commit> [--home <dsh-home>]\n tobs memory-save <id> --path <file> (--body <text> | --body-stdin)\n [--expected-head <sha>] [--edit-id <id>] [--home <dsh-home>]\n tobs channels [--home <dsh-home>]\n tobs channel-messages <channel> [--limit <n>] [--before <id>] [--home <dsh-home>]\n tobs channel-media-target <channel> --source-event <id> --attachment <id>\n tobs channel-media-download <channel> --source-event <id> --attachment <id> --out <path>\n tobs grants <id> [--home <dsh-home>]\n tobs grant-revoke <id> --grant <grant> [--home <dsh-home>] online: add --confirm\n tobs grant-write-set <id> --grant <grant> (--enabled | --disabled) [--home <dsh-home>]\n tobs schedules <id> [--home <dsh-home>]\n tobs schedule-create <id> --title <t> --prompt <p> (--every <s> | --daily <HH:MM> |\n --weekly <HH:MM> --weekdays <0-6,..> | --once-date <d> --once-time <t> |\n --cron <expr>) [--timezone <tz>] [--enabled|--disabled] [--locked] [--home <dsh-home>]\n tobs schedule-update <id> --sid <schedule> [--title ...] [--prompt ...] [trigger ...] [--home <dsh-home>]\n tobs schedule-delete <id> --sid <schedule> [--confirm] [--home <dsh-home>]\n tobs schedule-history <id> --sid <schedule> [--home <dsh-home>]\n tobs schedule-run-now <id> --sid <schedule> [--home <dsh-home>]\n tobs schedule-preview (--every <s> | --daily ... | ...) [--home <dsh-home>]\n tobs pairings <id> [--home <dsh-home>]\n tobs secret-put <NAME> [--home <dsh-home>] secret value arrives on stdin only\n tobs secret-list [--home <dsh-home>] names, sources, writability; never values\n tobs secret-unset <NAME> [--home <dsh-home>]\n tobs search <words> find commands by words\n tobs send <id> (--body <text> | --body-stdin) [--message-id human-<UUID>] [--timeout <seconds>]\n tobs send-status <id> --message-id <Human-message-id>\n tobs tool-approval-status <channel> --message-id <card-id>\n tobs tool-approval-decide <channel> --message-id <card-id> --outcome allowed-once|rejected\n tobs user-question-status <channel> --message-id <card-id>\n tobs user-question-answer <channel> --message-id <card-id> --answer-stdin\n tobs ask-secret-status <channel> --message-id <card-id>\n tobs ask-secret-submit <channel> --message-id <card-id> --values-stdin\n tobs ask-secret-cancel <channel> --message-id <card-id>\n tobs ask-secret-account-status <channel> --message-id <configured-card-id>\n tobs ask-secret-replace <channel> --message-id <configured-card-id>\n tobs ask-secret-revoke <channel> --message-id <configured-card-id>\n tobs ask-secret-accounts <id>\n tobs release-info [--since <version>]\n tobs release-check\n tobs release-install <version> --confirm\n tobs release-restart --confirm\n tobs plugin-check [--force]\n tobs plugin-install <package> <version> --confirm\n tobs plugin-restart --confirm\n tobs marketplace-list [--query <words>] [--topic <topic>] [--sort updated|created|stars] [--cursor <c>]\n tobs marketplace-topics\n tobs marketplace-detail <owner/repo>\n tobs marketplace-submit <github-repo-url>\n tobs marketplace-report <owner/repo> [--reason <text>]\n tobs data-reset-preview\n tobs data-reset-confirm --confirmation-stdin --confirm\n tobs telemetry-status\n tobs telemetry-set (--enabled | --disabled)\n tobs git-status\n tobs git-install\n tobs pairing-list <id>\n tobs pairing-review <id> <pairing-id> --decision approve|reject|revoke [--role <role-id> | --capability <c> ...] [--confirm]\n tobs workspace-options\n tobs grant-create <id> --workspace <workspace-id>\n tobs browser-access-set <id> (--enabled | --disabled)\n tobs computer-access-set <id> (--enabled | --disabled)\n tobs access <id>\n tobs access-set <id> --mode workspace-write|danger-full-access [--scope chat|assignments] [--acknowledge-risk]\n tobs settings <namespace>\n tobs settings-set <namespace> --patch-stdin [--expected-revision <n> --previous-value <json>]\n tobs workspace-create <absolute-path>\n tobs channel <channel-id>\n tobs group-create <name> [--member <bot-id> ...] [--operation-key <key>]\n tobs group-invite <channel-id> --bot <bot-id> [--operation-key <key>] [--expected-channel <fingerprint>]\n tobs group-invite-cancel <channel-id> --invitation <invitation-id> [--expected-channel <fingerprint>]\n tobs group-join-decide <channel-id> --request <join-request-id> (--accept | --decline) [--expected-channel <fingerprint>]\n tobs channel-rename <channel-id> --name <name> [--expected-channel <fingerprint>]\n tobs group-avatar-set <channel-id> (--avatar-file <path> | --clear) [--expected-channel <fingerprint>]\n tobs group-wake-policies <channel-id>\n tobs group-wake-set <channel-id> --bot <bot-id> (--mode all|mentions|digest|silent | --inherit) [--count <n>] [--interval <seconds>] [--expected-channel <fingerprint>]\n tobs group-member-remove <channel-id> --bot <bot-id> [--expected-channel <fingerprint>]\n tobs im-app-add <discord|slack|qq|dingtalk|wecom|matrix> --credentials-stdin\n tobs im-app-status <platform>\n tobs im-app-remove <platform> --app <app-id>\n tobs im-bind <id> --app <app-id>\n tobs im-unbind <id> --app <app-id>\n tobs im-status <id>\n tobs channel-connect <channel> --bot <id> --conversation <external-id> [--app <app-id>]\n tobs channel-ingests <channel>\n tobs browser-open <id>\n tobs browser-frame <id> --out <absolute-file>\n tobs browser-takeover <id> (--enabled | --disabled)\n tobs browser-input <id> --args-stdin\n tobs browser-stop <id>\n tobs computer-start [--target local|container]\n tobs computer-status\n tobs computer-stop\n tobs browser-tools\n tobs browser-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n tobs memory-file-target|memory-graph|memory-commit-diff|memory-changes <id> [...]\n tobs memory-working-diff <id> --path <file> --kind staged|unstaged|untracked|current\n tobs memory-checkpoints|memory-versions <id>\n tobs memory-restore <id> --checkpoint <id> --expected-current <id>\n tobs memory-restore-commit <id> --sha <commit> --expected-head <commit> [--name <version>]\n tobs memory-version-name <id> --sha <commit> --name <version>\n tobs memory-version-unname <id> --tag <version>\n tobs memory-repair <id> --expected-head <commit>\n tobs memory-move <id> (--memory-location <absolute-dir> | --default-location)\n tobs model-catalog\n tobs model-plan-set <id> --plan-stdin [--expected-revision <n>]\n tobs model-plan-customize <id> --orchestrator-provider <p> --orchestrator-model <m> [--orchestrator-effort <e>]\n tobs model-plan-inherit <id> [--expected-revision <n>]\n tobs model-plan-assignments-set <id> --plan-stdin [--expected-revision <n>]\n tobs model-preset-update <preset-id> [--name <n>] [--orchestrator-provider/-model/-effort ...]\n [--assignment-provider/-model/-effort ...] [--plan-stdin] [--expected-revision <n>]\n tobs overview-usage [--period today|week|month|quarter] [--after <bot-cursor>]\n tobs overview-memory [--after <bot-cursor>]\n tobs activity-overview\n tobs channel-activity-today\n tobs bot-usage <id> --start <YYYY-MM-DD> --end <YYYY-MM-DD> [--model <m>] [--provider <p>]\n [--purpose orchestrator|assignment|subagent]\n tobs bot-session-usage <id>\n tobs bot-activity-history <id> [--before <YYYY-MM-DD>] [--weeks <1-104>]\n tobs group-activity <channel>\n tobs bot-trace <id> [--turns <1-20>] [--session <session-id>|direct]\n tobs bot-tools\n tobs bot-tool <id> <tool> [--args-stdin]\n tobs computer-tools\n tobs computer-tool <id> <tool> [--args-stdin] [--out <absolute-file>]\n tobs todos\n tobs todo-add --title <text>\n tobs todo-update <todo-id> [--title <text>] [--done | --not-done]\n tobs todo-remove <todo-id>\n tobs todo-tools\n tobs todo-tool <id> <tool> [--args-stdin]\n tobs bot-attention <id> [--limit <1-100>] [--cursor <source-id>] [--state <state>]\n tobs bot-sessions <id> [--limit <1-100>]\n tobs bot-activity <id> [--limit <1-100>]\n tobs inbox [--category action|info|unread|replies|handled] [--bot <id>] [--channel <id>]\n [--limit <1-100>] [--cursor <cursor>] [--sort newest|oldest]\n [--snoozed | --dismissed] [--kind auto-rejection]\n tobs inbox-status\n tobs inbox-dismiss <item-id> [--source-key <source-event-id>]\n tobs inbox-restore <item-id> [--source-key <source-event-id>]\n tobs inbox-allow-once <autoreject:item-id>\n tobs inbox-snooze <item-id> [--source-key <source-event-id>] (--until <ISO time> | --clear)\n tobs inbox-ignore <source-event-id>\n tobs assignment-context <id> --session <session-id> --source <source-event-id>\n tobs channel-assignments <group-channel>\n tobs channel-assign <channel> (--section <section-id> | --unsectioned) [--index <n>]\n tobs session-ids\n tobs session-owner <session-id>\n tobs session-archive-set <id> --session <session-id> (--archived | --unarchived)\n tobs tool-approval-rules <id>\n tobs tool-approval-rule-revoke <id> --rule <rule-id> --confirm\n tobs private-mcp-set <id> --server <name> (--enabled | --disabled)\n tobs private-mcp-remove <id> --server <name> --confirm\n tobs bot-delete-preview <id>\n tobs bot-delete-memory-folder <id>\n tobs bot-delete-confirm <id> --confirmation-stdin --confirm [--erase-memory]\n tobs bot-delete-retry <id> --confirm\n tobs bot-avatar-set|bot-banner-set <id> (--file <image> | --clear)\n tobs bot-banner-set|bot-appearance-set <id> --recipe-stdin\n tobs bot-primary-color-set <id> (--color <#rrggbb> | --automatic)\n tobs bot-source-policies <id>\n tobs bot-source-policy-set <id> --source-class <class> [--wake <w>] [--delivery steer|turn]\n [--digest-count <n> --digest-interval <seconds>]\n tobs bot-source-policy-reset <id> --source-class <class>\n tobs bot-standing-limits-set <id> --soul <n> --core-memory <n>\n tobs developer-mode-set (--enabled | --disabled)\n tobs roster | human-identity | part-library\n tobs roster-batch pin|unpin|hide|move <channel>... [--section <section-id>]\n tobs roster-pins-set|roster-hidden-set [<channel>...]\n tobs roster-section-create <name>\n tobs roster-section-rename <section-id> --name <text>\n tobs roster-section-remove <section-id> --confirm\n tobs roster-section-reorder <section-id>...\n tobs roster-top-reorder section:<id>|channel:<id>...\n tobs part-library-add --part-stdin [--name <text>] [--parent <part-id>]\n tobs part-library-import --file <png|zip>\n tobs part-library-import-image --file <png> --slot <slot> --colors <n> [--name <text>]\n tobs part-library-export --out <absolute-file> [--part-id <id> | --part-stdin]\n tobs im-apps\n tobs im-authorize <feishu|weixin>\n tobs im-credentials <attempt-id> --credentials-stdin\n tobs im-verify <attempt-id> --verification-stdin\n tobs pairing-status <attempt-id> [--wait] [--timeout <seconds>]\n tobs im-cancel <attempt-id>\n tobs --help | tobs create --help\n\nOutput:\n stdout carries JSON, pretty by default; --compact condenses it to one line\n for agents. Human-readable lines go to stderr only.\n\nSources (exactly one per create):\n (none) blank bot; --preset applies a model preset, otherwise the model\n step reports no-model-yet and activation stays a Settings task\n --from-git clone a Git repository as Memory (HTTPS, SSH, or owner/repo\n shorthand for https://github.com/owner/repo.git)\n --from-zip import a bot bundle zip (same shape as the bot-zip export)\n --from-dir import a bot bundle directory (same shape as the bot-zip export;\n a .git subtree is skipped as files but packed as history)\n\nMachine contract:\n stdout carries exactly one JSON document. Success exits 0 with the bot id,\n DM channel, data directory, per-step statuses, and next actions. Failure\n exits non-zero with {\"error\": {\"code\", \"message\"}} using a stable code\n (usage, secret-in-argv, bad-zip, bad-bundle, bad-ref, unknown-preset,\n unknown-bot, unknown-channel, duplicate-preset, git-not-found, git-clone-failed, git-clone-timeout,\n memory-unavailable, lease-unavailable, bad-credentials, invalid-input, invalid-avatar,\n file-unreadable). Human-readable lines go to stderr only.\n Stop the Host before offline database commands: the writer lease is exclusive.\n\nLive Host:\n Require --host <loopback-origin|tailnet-HTTPS-origin> or DEEPSEEKBOT_HOST.\n Auth: DEEPSEEKBOT_HOST_TOKEN or --token-file <private-file>, never a token in argv.\n Login is fresh per call; cookies stay in memory. --timeout defaults to 120 seconds (max 600).\n send returns its receipt and exact committed replies. Inspect send-status on timeout\n before retrying; send never automatically resubmits. channel-messages also accepts --host.\n create (blank, Git, Zip and directory), list/show, model-presets/create/apply/plan,\n channels and the schedule* commands use the Host when --host or DEEPSEEKBOT_HOST is set. Do not combine\n --home with an online target; failures never fall back to local database access.\n Zip/directory uploads contain local bytes; Git cloning uses the Host environment.\n Creation errors retain known bot/steps; outcome unknown means inspect before retrying.\n Bot diagnostics are bounded summaries, not full execution logs or live streams.\n grant-revoke and grant-write-set use the Host when it is targeted; revokes and removals\n (grant, tool approval rule, private MCP server) need --confirm, like the Web UI.\n Deletion requires preview then stdin {\"token\":\"<preview.token>\"}; Memory is retained.\n Question stdin: {\"answers\":[{\"id\":\"question-id\",\"selected\":[\"option\"],\"custom\":\"optional\"}]}\n Private input stdin: {\"field_id\":\"confidential value\",...}; only declared fields.\n Private input commands return status/acceptance only and never retry a submission.\n\nModels:\n model-presets lists the profile presets; model-preset-create mints one from\n explicit provider/model routes; model-preset-apply and model-plan read and\n write through the Host when selected, otherwise directly offline. Routes are shape-checked plus\n provider-existence-checked offline; catalog liveness and readiness\n inspection stay Host-side, and model-plan reports readiness deferred.\n\nMemory:\n memory-snapshot/file/history/diff read the bot memory store; memory-save\n writes one file and commits it. --expected-head defaults to the current\n HEAD (pass it explicitly for compare-and-swap); --edit-id defaults to a\n fresh UUID and makes repeat submissions idempotent. Conflicts, missing\n files, and bad shas fail coded (memory-conflict, not-found,\n memory-unknown-commit).\n\nIdentity:\n The bot name is a label. Every create mints a new bot id, so reusing a name\n always returns a second bot and still exits 0.\n\nSecrets:\n Never pass secrets as arguments: any --api-key/--token/--secret/--password\n style flag is a hard error (secret-in-argv). Model keys and tokens travel in\n the environment (for example DEEPSEEK_API_KEY, GITHUB_TOKEN) or a stdin pipe\n (--persona-stdin); result JSON never contains secret values.\n\nHome:\n --home points at the target DSH_HOME (a fresh directory works with zero\n clicks); without it, DSH_HOME from the environment is used.\n";
|
|
16022
16685
|
export declare function runBotCreateCli(argv: readonly string[], io: BotCreateCliIo): Promise<number>;
|
|
16023
16686
|
//#endregion
|
|
16024
16687
|
//#region packages/core/src/bots/slug.d.ts
|