@asaidimu/utils-workspace 6.5.1 → 6.5.3
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/index.d.mts +86 -16
- package/index.d.ts +86 -16
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
package/index.d.mts
CHANGED
|
@@ -495,6 +495,65 @@ type DeepPartial<T> = T extends object ? T extends readonly (infer U)[] ? readon
|
|
|
495
495
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> | undefined : T[K] | undefined;
|
|
496
496
|
} | undefined | T : T | undefined;
|
|
497
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Canonical conversational continuity artifact.
|
|
500
|
+
*
|
|
501
|
+
* A checkpoint captures the durable conversational state required
|
|
502
|
+
* to resume interaction faithfully after prior turns are discarded.
|
|
503
|
+
*
|
|
504
|
+
* Each checkpoint is cumulative and supersedes all previous checkpoints.
|
|
505
|
+
*/
|
|
506
|
+
interface CheckpointBlock extends BaseContentBlock<"checkpoint"> {
|
|
507
|
+
/**
|
|
508
|
+
* Complete conversational continuity state.
|
|
509
|
+
*
|
|
510
|
+
* This payload should contain all durable information required
|
|
511
|
+
* to continue the conversation with high semantic fidelity.
|
|
512
|
+
*/
|
|
513
|
+
state: CheckpointSessionState;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Durable conversational state preserved across context truncation.
|
|
517
|
+
*/
|
|
518
|
+
interface CheckpointSessionState {
|
|
519
|
+
/**
|
|
520
|
+
* Active user goals, intentions, or desired outcomes.
|
|
521
|
+
*/
|
|
522
|
+
objectives: string[];
|
|
523
|
+
/**
|
|
524
|
+
* Facts established, confirmed, or accepted during the conversation.
|
|
525
|
+
*
|
|
526
|
+
* These should represent canonical conversational truth state.
|
|
527
|
+
*/
|
|
528
|
+
facts: string[];
|
|
529
|
+
/**
|
|
530
|
+
* Constraints, requirements, prohibitions, preferences,
|
|
531
|
+
* environmental assumptions, or output expectations.
|
|
532
|
+
*/
|
|
533
|
+
constraints: string[];
|
|
534
|
+
/**
|
|
535
|
+
* Decisions, commitments, or selected implementation directions.
|
|
536
|
+
*
|
|
537
|
+
* Includes important rejected alternatives where relevant.
|
|
538
|
+
*/
|
|
539
|
+
decisions: string[];
|
|
540
|
+
/**
|
|
541
|
+
* Tentative assumptions, inferred premises,
|
|
542
|
+
* or unverified beliefs currently influencing reasoning.
|
|
543
|
+
*/
|
|
544
|
+
assumptions?: string[];
|
|
545
|
+
/**
|
|
546
|
+
* Open questions, unresolved issues, pending work,
|
|
547
|
+
* TODO items, or incomplete reasoning paths.
|
|
548
|
+
*/
|
|
549
|
+
unresolved: string[];
|
|
550
|
+
/**
|
|
551
|
+
* Additional continuity information that does not cleanly fit
|
|
552
|
+
* other state categories but is required for faithful continuation.
|
|
553
|
+
*/
|
|
554
|
+
notes?: string[];
|
|
555
|
+
}
|
|
556
|
+
|
|
498
557
|
/**
|
|
499
558
|
* This file contains the primary domain models, data structures, and command types
|
|
500
559
|
* for the AI Workspace. It acts as the "Source of Truth" for all modules.
|
|
@@ -733,7 +792,7 @@ interface RoleTransitionBlock extends BaseContentBlock<"role:transition"> {
|
|
|
733
792
|
newRole: string;
|
|
734
793
|
}
|
|
735
794
|
/** Union of all possible content types that can exist within a conversation Turn. */
|
|
736
|
-
type ContentBlock = TextBlock | ImageBlock | DocumentBlock | ToolUseBlock | ToolResultBlock | ThinkingBlock | SummaryBlock | RoleTransitionBlock;
|
|
795
|
+
type ContentBlock = TextBlock | ImageBlock | DocumentBlock | ToolUseBlock | ToolResultBlock | ThinkingBlock | SummaryBlock | CheckpointBlock | RoleTransitionBlock;
|
|
737
796
|
/** Definition of a tool available to the AI. */
|
|
738
797
|
interface ToolSummary {
|
|
739
798
|
/** The unique, system-level name of the tool (e.g., 'web_search'). */
|
|
@@ -2370,6 +2429,12 @@ interface PromptBuilderOptions {
|
|
|
2370
2429
|
* When true, PromptBuilder will call the Summarizer to compress old turns before returning the Prompt.
|
|
2371
2430
|
*/
|
|
2372
2431
|
summarize?: boolean;
|
|
2432
|
+
/**
|
|
2433
|
+
* When true, PromptBuilder will truncate all turns before the last
|
|
2434
|
+
* checkpoint.
|
|
2435
|
+
*
|
|
2436
|
+
*/
|
|
2437
|
+
compress?: boolean;
|
|
2373
2438
|
}
|
|
2374
2439
|
/**
|
|
2375
2440
|
* Transforms a SessionSnapshot into a standardized Prompt.
|
|
@@ -2734,23 +2799,13 @@ declare class TurnBuilder {
|
|
|
2734
2799
|
declare class DefaultPromptBuilder implements PromptBuilder {
|
|
2735
2800
|
private readonly contextRegistry;
|
|
2736
2801
|
private readonly retriever;
|
|
2802
|
+
/** @deprecated Summarization is being redesigned. Currently unused. */
|
|
2737
2803
|
private readonly summarizer?;
|
|
2738
|
-
constructor(contextRegistry: ContextRegistry, retriever: ContextRetriever,
|
|
2804
|
+
constructor(contextRegistry: ContextRegistry, retriever: ContextRetriever,
|
|
2805
|
+
/** @deprecated Summarization is being redesigned. Currently unused. */
|
|
2806
|
+
summarizer?: Summarizer | undefined);
|
|
2739
2807
|
build(snapshot: SessionSnapshot, _: WorkspaceContext, options?: PromptBuilderOptions): Promise<Result<Prompt, WorkspaceError>>;
|
|
2740
2808
|
}
|
|
2741
|
-
declare class JaccardContextRetriever implements ContextRetriever {
|
|
2742
|
-
private readonly contextRegistry;
|
|
2743
|
-
constructor(contextRegistry: ContextRegistry);
|
|
2744
|
-
rank(input: {
|
|
2745
|
-
entries: Context[];
|
|
2746
|
-
recentMessages: string[];
|
|
2747
|
-
topics: string[];
|
|
2748
|
-
config?: Record<string, any>;
|
|
2749
|
-
}): Context[];
|
|
2750
|
-
private tokenize;
|
|
2751
|
-
private jaccardSimilarity;
|
|
2752
|
-
private freshnessWeight;
|
|
2753
|
-
}
|
|
2754
2809
|
|
|
2755
2810
|
declare class DefaultSystemPromptAssembler implements SystemPromptAssembler {
|
|
2756
2811
|
/**
|
|
@@ -2772,6 +2827,20 @@ declare class DefaultSystemPromptAssembler implements SystemPromptAssembler {
|
|
|
2772
2827
|
}
|
|
2773
2828
|
declare function createDefaultAssembler(): DefaultSystemPromptAssembler;
|
|
2774
2829
|
|
|
2830
|
+
declare class JaccardContextRetriever implements ContextRetriever {
|
|
2831
|
+
private readonly contextRegistry;
|
|
2832
|
+
constructor(contextRegistry: ContextRegistry);
|
|
2833
|
+
rank(input: {
|
|
2834
|
+
entries: Context[];
|
|
2835
|
+
recentMessages: string[];
|
|
2836
|
+
topics: string[];
|
|
2837
|
+
config?: Record<string, any>;
|
|
2838
|
+
}): Context[];
|
|
2839
|
+
private tokenize;
|
|
2840
|
+
private jaccardSimilarity;
|
|
2841
|
+
private freshnessWeight;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2775
2844
|
declare class TurnRepository {
|
|
2776
2845
|
private readonly turnStore;
|
|
2777
2846
|
private readonly sessionStore;
|
|
@@ -2814,6 +2883,7 @@ declare function bufferToBase64(buffer: Uint8Array): string;
|
|
|
2814
2883
|
*/
|
|
2815
2884
|
declare function shortHash(s: string, length?: number): string;
|
|
2816
2885
|
declare function getExtension<K extends string, V>(index: Index, key: K): Record<string, V>;
|
|
2886
|
+
declare function sessionStateToMarkdown(state: CheckpointSessionState): string;
|
|
2817
2887
|
|
|
2818
2888
|
declare const createEmptySession: (overrides?: Partial<SessionMetadata>) => SessionMetadata;
|
|
2819
2889
|
declare const createEmptyTurn: (overrides?: Partial<Turn>, session?: SessionMetadata) => Turn;
|
|
@@ -3017,4 +3087,4 @@ declare function createWorkspace(params: CreateWorkspaceParams): Promise<{
|
|
|
3017
3087
|
bootstrap: (config: BootstrapConfig) => Promise<BootstrapResult>;
|
|
3018
3088
|
}>;
|
|
3019
3089
|
|
|
3020
|
-
export { type AdapterStatus, type AddContext, type AddPreference, type AddRole, type AddSessionTopics, type AddTopic, type AddTurn, type AssemblerExtension, type AuthRequest, type BackendError, type BaseCommand, type BaseContentBlock, type BlobCommand, type BlobContextContent, type BlobError, type BlobMediaType, type BlobRecord, type BlobRef, type BlobResolver, type BlockMapper, type BootstrapConfig, type BootstrapResult, type BranchInfo, type BranchTurn, COLLECTIONS, type Collections, type Command, type ContentBlock, type ContentBlockDefinition, type Context, type ContextContent, type ContextDefinition, type ContextRetriever, type ContextSummary, type CreateSession, type CreateWorkspace, type CreateWorkspaceParams, type DeepPartial, type DefaultContextContent, DefaultPromptBuilder, DefaultSystemPromptAssembler, type DeleteContext, type DeletePreference, type DeleteRole, type DeleteSession, type DeleteTopic, type DeleteTurn, type DocumentBlock, type DocumentMediaType, type DuplicateKeyError, EMPTY_SYSTEM_ROLE, type EditTurn, type ExecuteResult, type ForkSession, index as GoogleAdapter, type ImageBlock, type ImageMediaType, type Index, type IndexExtensions, type IndexedDBBlobConfig, IndexedDBBlobStorage, type Indexer, type InvalidCommandError, JaccardContextRetriever, type JsonContextContent, type LLMAdapter, type LLMAdapterStatic, LRUCache, MemoryBlobStorage, type MergeTopics, type ModelConstraint, type ModelConstraintMap, type ModelName, type ModelProfile, type ModelRegistry, type NotFoundError, type OverrideSessionPreferences, type PermissionDeniedError, type PermissionGuard, type Preference, type PreferenceSummary, type PreparedPrompt, type Project, type Prompt, type PromptBuilder, type PromptBuilderOptions, type PromptSection, type PurgeBlob, type RecordBlobRemoteId, type RegisterBlob, type ReleaseBlob, type RemoteContextContent, type ResolvedBlob, type ResolvedSession, type Result, type RetainBlob, type Role, type RoleSummary, type RoleTransitionBlock, type SHA256, Session, SessionManager, type SessionMetadata, type SessionSnapshot, type Settings, type Store, type Summarizer, type SummaryBlock, type SwitchSessionRole, type SyncWorkspace, type SystemActor, type SystemPromptAssembler, type TextBlock, type TextContextContent, type ThinkingBlock, type Timestamp, type ToolCall, type ToolCallCommand, type ToolRegistry, type ToolResultBlock, type ToolSummary, type ToolUseBlock, type Topic, type TopicIndex, type Turn, TurnBuilder, type TurnKey, type TurnNode, type TurnProcessor, type TurnRef, TurnTree, type URI, type UUID, type UpdateContext, type UpdatePreference, type UpdateRole, type UpdateSession, type UpdateTopic, type UpdateTurn, type Workspace, WorkspaceApi, type WorkspaceBundle, type WorkspaceContext, type WorkspaceDatabase, type WorkspaceError, type WorkspaceEvents, type WorkspaceExtension, WorkspaceManager, type WorkspaceMiddleware, type WorkspaceReducer, WorkspaceRegistry, type WorkspaceServices, bufferToBase64, computeSHA256, createDefaultAssembler, createEmptySession, createEmptyTurn, createEmptyWorkspace, createWorkspace, createWorkspaceDatabase, del, error, getExtension, merge, omitNullUndefined, shortHash, success };
|
|
3090
|
+
export { type AdapterStatus, type AddContext, type AddPreference, type AddRole, type AddSessionTopics, type AddTopic, type AddTurn, type AssemblerExtension, type AuthRequest, type BackendError, type BaseCommand, type BaseContentBlock, type BlobCommand, type BlobContextContent, type BlobError, type BlobMediaType, type BlobRecord, type BlobRef, type BlobResolver, type BlockMapper, type BootstrapConfig, type BootstrapResult, type BranchInfo, type BranchTurn, COLLECTIONS, type CheckpointBlock, type CheckpointSessionState, type Collections, type Command, type ContentBlock, type ContentBlockDefinition, type Context, type ContextContent, type ContextDefinition, type ContextRetriever, type ContextSummary, type CreateSession, type CreateWorkspace, type CreateWorkspaceParams, type DeepPartial, type DefaultContextContent, DefaultPromptBuilder, DefaultSystemPromptAssembler, type DeleteContext, type DeletePreference, type DeleteRole, type DeleteSession, type DeleteTopic, type DeleteTurn, type DocumentBlock, type DocumentMediaType, type DuplicateKeyError, EMPTY_SYSTEM_ROLE, type EditTurn, type ExecuteResult, type ForkSession, index as GoogleAdapter, type ImageBlock, type ImageMediaType, type Index, type IndexExtensions, type IndexedDBBlobConfig, IndexedDBBlobStorage, type Indexer, type InvalidCommandError, JaccardContextRetriever, type JsonContextContent, type LLMAdapter, type LLMAdapterStatic, LRUCache, MemoryBlobStorage, type MergeTopics, type ModelConstraint, type ModelConstraintMap, type ModelName, type ModelProfile, type ModelRegistry, type NotFoundError, type OverrideSessionPreferences, type PermissionDeniedError, type PermissionGuard, type Preference, type PreferenceSummary, type PreparedPrompt, type Project, type Prompt, type PromptBuilder, type PromptBuilderOptions, type PromptSection, type PurgeBlob, type RecordBlobRemoteId, type RegisterBlob, type ReleaseBlob, type RemoteContextContent, type ResolvedBlob, type ResolvedSession, type Result, type RetainBlob, type Role, type RoleSummary, type RoleTransitionBlock, type SHA256, Session, SessionManager, type SessionMetadata, type SessionSnapshot, type Settings, type Store, type Summarizer, type SummaryBlock, type SwitchSessionRole, type SyncWorkspace, type SystemActor, type SystemPromptAssembler, type TextBlock, type TextContextContent, type ThinkingBlock, type Timestamp, type ToolCall, type ToolCallCommand, type ToolRegistry, type ToolResultBlock, type ToolSummary, type ToolUseBlock, type Topic, type TopicIndex, type Turn, TurnBuilder, type TurnKey, type TurnNode, type TurnProcessor, type TurnRef, TurnTree, type URI, type UUID, type UpdateContext, type UpdatePreference, type UpdateRole, type UpdateSession, type UpdateTopic, type UpdateTurn, type Workspace, WorkspaceApi, type WorkspaceBundle, type WorkspaceContext, type WorkspaceDatabase, type WorkspaceError, type WorkspaceEvents, type WorkspaceExtension, WorkspaceManager, type WorkspaceMiddleware, type WorkspaceReducer, WorkspaceRegistry, type WorkspaceServices, bufferToBase64, computeSHA256, createDefaultAssembler, createEmptySession, createEmptyTurn, createEmptyWorkspace, createWorkspace, createWorkspaceDatabase, del, error, getExtension, merge, omitNullUndefined, sessionStateToMarkdown, shortHash, success };
|
package/index.d.ts
CHANGED
|
@@ -495,6 +495,65 @@ type DeepPartial<T> = T extends object ? T extends readonly (infer U)[] ? readon
|
|
|
495
495
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> | undefined : T[K] | undefined;
|
|
496
496
|
} | undefined | T : T | undefined;
|
|
497
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Canonical conversational continuity artifact.
|
|
500
|
+
*
|
|
501
|
+
* A checkpoint captures the durable conversational state required
|
|
502
|
+
* to resume interaction faithfully after prior turns are discarded.
|
|
503
|
+
*
|
|
504
|
+
* Each checkpoint is cumulative and supersedes all previous checkpoints.
|
|
505
|
+
*/
|
|
506
|
+
interface CheckpointBlock extends BaseContentBlock<"checkpoint"> {
|
|
507
|
+
/**
|
|
508
|
+
* Complete conversational continuity state.
|
|
509
|
+
*
|
|
510
|
+
* This payload should contain all durable information required
|
|
511
|
+
* to continue the conversation with high semantic fidelity.
|
|
512
|
+
*/
|
|
513
|
+
state: CheckpointSessionState;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Durable conversational state preserved across context truncation.
|
|
517
|
+
*/
|
|
518
|
+
interface CheckpointSessionState {
|
|
519
|
+
/**
|
|
520
|
+
* Active user goals, intentions, or desired outcomes.
|
|
521
|
+
*/
|
|
522
|
+
objectives: string[];
|
|
523
|
+
/**
|
|
524
|
+
* Facts established, confirmed, or accepted during the conversation.
|
|
525
|
+
*
|
|
526
|
+
* These should represent canonical conversational truth state.
|
|
527
|
+
*/
|
|
528
|
+
facts: string[];
|
|
529
|
+
/**
|
|
530
|
+
* Constraints, requirements, prohibitions, preferences,
|
|
531
|
+
* environmental assumptions, or output expectations.
|
|
532
|
+
*/
|
|
533
|
+
constraints: string[];
|
|
534
|
+
/**
|
|
535
|
+
* Decisions, commitments, or selected implementation directions.
|
|
536
|
+
*
|
|
537
|
+
* Includes important rejected alternatives where relevant.
|
|
538
|
+
*/
|
|
539
|
+
decisions: string[];
|
|
540
|
+
/**
|
|
541
|
+
* Tentative assumptions, inferred premises,
|
|
542
|
+
* or unverified beliefs currently influencing reasoning.
|
|
543
|
+
*/
|
|
544
|
+
assumptions?: string[];
|
|
545
|
+
/**
|
|
546
|
+
* Open questions, unresolved issues, pending work,
|
|
547
|
+
* TODO items, or incomplete reasoning paths.
|
|
548
|
+
*/
|
|
549
|
+
unresolved: string[];
|
|
550
|
+
/**
|
|
551
|
+
* Additional continuity information that does not cleanly fit
|
|
552
|
+
* other state categories but is required for faithful continuation.
|
|
553
|
+
*/
|
|
554
|
+
notes?: string[];
|
|
555
|
+
}
|
|
556
|
+
|
|
498
557
|
/**
|
|
499
558
|
* This file contains the primary domain models, data structures, and command types
|
|
500
559
|
* for the AI Workspace. It acts as the "Source of Truth" for all modules.
|
|
@@ -733,7 +792,7 @@ interface RoleTransitionBlock extends BaseContentBlock<"role:transition"> {
|
|
|
733
792
|
newRole: string;
|
|
734
793
|
}
|
|
735
794
|
/** Union of all possible content types that can exist within a conversation Turn. */
|
|
736
|
-
type ContentBlock = TextBlock | ImageBlock | DocumentBlock | ToolUseBlock | ToolResultBlock | ThinkingBlock | SummaryBlock | RoleTransitionBlock;
|
|
795
|
+
type ContentBlock = TextBlock | ImageBlock | DocumentBlock | ToolUseBlock | ToolResultBlock | ThinkingBlock | SummaryBlock | CheckpointBlock | RoleTransitionBlock;
|
|
737
796
|
/** Definition of a tool available to the AI. */
|
|
738
797
|
interface ToolSummary {
|
|
739
798
|
/** The unique, system-level name of the tool (e.g., 'web_search'). */
|
|
@@ -2370,6 +2429,12 @@ interface PromptBuilderOptions {
|
|
|
2370
2429
|
* When true, PromptBuilder will call the Summarizer to compress old turns before returning the Prompt.
|
|
2371
2430
|
*/
|
|
2372
2431
|
summarize?: boolean;
|
|
2432
|
+
/**
|
|
2433
|
+
* When true, PromptBuilder will truncate all turns before the last
|
|
2434
|
+
* checkpoint.
|
|
2435
|
+
*
|
|
2436
|
+
*/
|
|
2437
|
+
compress?: boolean;
|
|
2373
2438
|
}
|
|
2374
2439
|
/**
|
|
2375
2440
|
* Transforms a SessionSnapshot into a standardized Prompt.
|
|
@@ -2734,23 +2799,13 @@ declare class TurnBuilder {
|
|
|
2734
2799
|
declare class DefaultPromptBuilder implements PromptBuilder {
|
|
2735
2800
|
private readonly contextRegistry;
|
|
2736
2801
|
private readonly retriever;
|
|
2802
|
+
/** @deprecated Summarization is being redesigned. Currently unused. */
|
|
2737
2803
|
private readonly summarizer?;
|
|
2738
|
-
constructor(contextRegistry: ContextRegistry, retriever: ContextRetriever,
|
|
2804
|
+
constructor(contextRegistry: ContextRegistry, retriever: ContextRetriever,
|
|
2805
|
+
/** @deprecated Summarization is being redesigned. Currently unused. */
|
|
2806
|
+
summarizer?: Summarizer | undefined);
|
|
2739
2807
|
build(snapshot: SessionSnapshot, _: WorkspaceContext, options?: PromptBuilderOptions): Promise<Result<Prompt, WorkspaceError>>;
|
|
2740
2808
|
}
|
|
2741
|
-
declare class JaccardContextRetriever implements ContextRetriever {
|
|
2742
|
-
private readonly contextRegistry;
|
|
2743
|
-
constructor(contextRegistry: ContextRegistry);
|
|
2744
|
-
rank(input: {
|
|
2745
|
-
entries: Context[];
|
|
2746
|
-
recentMessages: string[];
|
|
2747
|
-
topics: string[];
|
|
2748
|
-
config?: Record<string, any>;
|
|
2749
|
-
}): Context[];
|
|
2750
|
-
private tokenize;
|
|
2751
|
-
private jaccardSimilarity;
|
|
2752
|
-
private freshnessWeight;
|
|
2753
|
-
}
|
|
2754
2809
|
|
|
2755
2810
|
declare class DefaultSystemPromptAssembler implements SystemPromptAssembler {
|
|
2756
2811
|
/**
|
|
@@ -2772,6 +2827,20 @@ declare class DefaultSystemPromptAssembler implements SystemPromptAssembler {
|
|
|
2772
2827
|
}
|
|
2773
2828
|
declare function createDefaultAssembler(): DefaultSystemPromptAssembler;
|
|
2774
2829
|
|
|
2830
|
+
declare class JaccardContextRetriever implements ContextRetriever {
|
|
2831
|
+
private readonly contextRegistry;
|
|
2832
|
+
constructor(contextRegistry: ContextRegistry);
|
|
2833
|
+
rank(input: {
|
|
2834
|
+
entries: Context[];
|
|
2835
|
+
recentMessages: string[];
|
|
2836
|
+
topics: string[];
|
|
2837
|
+
config?: Record<string, any>;
|
|
2838
|
+
}): Context[];
|
|
2839
|
+
private tokenize;
|
|
2840
|
+
private jaccardSimilarity;
|
|
2841
|
+
private freshnessWeight;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2775
2844
|
declare class TurnRepository {
|
|
2776
2845
|
private readonly turnStore;
|
|
2777
2846
|
private readonly sessionStore;
|
|
@@ -2814,6 +2883,7 @@ declare function bufferToBase64(buffer: Uint8Array): string;
|
|
|
2814
2883
|
*/
|
|
2815
2884
|
declare function shortHash(s: string, length?: number): string;
|
|
2816
2885
|
declare function getExtension<K extends string, V>(index: Index, key: K): Record<string, V>;
|
|
2886
|
+
declare function sessionStateToMarkdown(state: CheckpointSessionState): string;
|
|
2817
2887
|
|
|
2818
2888
|
declare const createEmptySession: (overrides?: Partial<SessionMetadata>) => SessionMetadata;
|
|
2819
2889
|
declare const createEmptyTurn: (overrides?: Partial<Turn>, session?: SessionMetadata) => Turn;
|
|
@@ -3017,4 +3087,4 @@ declare function createWorkspace(params: CreateWorkspaceParams): Promise<{
|
|
|
3017
3087
|
bootstrap: (config: BootstrapConfig) => Promise<BootstrapResult>;
|
|
3018
3088
|
}>;
|
|
3019
3089
|
|
|
3020
|
-
export { type AdapterStatus, type AddContext, type AddPreference, type AddRole, type AddSessionTopics, type AddTopic, type AddTurn, type AssemblerExtension, type AuthRequest, type BackendError, type BaseCommand, type BaseContentBlock, type BlobCommand, type BlobContextContent, type BlobError, type BlobMediaType, type BlobRecord, type BlobRef, type BlobResolver, type BlockMapper, type BootstrapConfig, type BootstrapResult, type BranchInfo, type BranchTurn, COLLECTIONS, type Collections, type Command, type ContentBlock, type ContentBlockDefinition, type Context, type ContextContent, type ContextDefinition, type ContextRetriever, type ContextSummary, type CreateSession, type CreateWorkspace, type CreateWorkspaceParams, type DeepPartial, type DefaultContextContent, DefaultPromptBuilder, DefaultSystemPromptAssembler, type DeleteContext, type DeletePreference, type DeleteRole, type DeleteSession, type DeleteTopic, type DeleteTurn, type DocumentBlock, type DocumentMediaType, type DuplicateKeyError, EMPTY_SYSTEM_ROLE, type EditTurn, type ExecuteResult, type ForkSession, index as GoogleAdapter, type ImageBlock, type ImageMediaType, type Index, type IndexExtensions, type IndexedDBBlobConfig, IndexedDBBlobStorage, type Indexer, type InvalidCommandError, JaccardContextRetriever, type JsonContextContent, type LLMAdapter, type LLMAdapterStatic, LRUCache, MemoryBlobStorage, type MergeTopics, type ModelConstraint, type ModelConstraintMap, type ModelName, type ModelProfile, type ModelRegistry, type NotFoundError, type OverrideSessionPreferences, type PermissionDeniedError, type PermissionGuard, type Preference, type PreferenceSummary, type PreparedPrompt, type Project, type Prompt, type PromptBuilder, type PromptBuilderOptions, type PromptSection, type PurgeBlob, type RecordBlobRemoteId, type RegisterBlob, type ReleaseBlob, type RemoteContextContent, type ResolvedBlob, type ResolvedSession, type Result, type RetainBlob, type Role, type RoleSummary, type RoleTransitionBlock, type SHA256, Session, SessionManager, type SessionMetadata, type SessionSnapshot, type Settings, type Store, type Summarizer, type SummaryBlock, type SwitchSessionRole, type SyncWorkspace, type SystemActor, type SystemPromptAssembler, type TextBlock, type TextContextContent, type ThinkingBlock, type Timestamp, type ToolCall, type ToolCallCommand, type ToolRegistry, type ToolResultBlock, type ToolSummary, type ToolUseBlock, type Topic, type TopicIndex, type Turn, TurnBuilder, type TurnKey, type TurnNode, type TurnProcessor, type TurnRef, TurnTree, type URI, type UUID, type UpdateContext, type UpdatePreference, type UpdateRole, type UpdateSession, type UpdateTopic, type UpdateTurn, type Workspace, WorkspaceApi, type WorkspaceBundle, type WorkspaceContext, type WorkspaceDatabase, type WorkspaceError, type WorkspaceEvents, type WorkspaceExtension, WorkspaceManager, type WorkspaceMiddleware, type WorkspaceReducer, WorkspaceRegistry, type WorkspaceServices, bufferToBase64, computeSHA256, createDefaultAssembler, createEmptySession, createEmptyTurn, createEmptyWorkspace, createWorkspace, createWorkspaceDatabase, del, error, getExtension, merge, omitNullUndefined, shortHash, success };
|
|
3090
|
+
export { type AdapterStatus, type AddContext, type AddPreference, type AddRole, type AddSessionTopics, type AddTopic, type AddTurn, type AssemblerExtension, type AuthRequest, type BackendError, type BaseCommand, type BaseContentBlock, type BlobCommand, type BlobContextContent, type BlobError, type BlobMediaType, type BlobRecord, type BlobRef, type BlobResolver, type BlockMapper, type BootstrapConfig, type BootstrapResult, type BranchInfo, type BranchTurn, COLLECTIONS, type CheckpointBlock, type CheckpointSessionState, type Collections, type Command, type ContentBlock, type ContentBlockDefinition, type Context, type ContextContent, type ContextDefinition, type ContextRetriever, type ContextSummary, type CreateSession, type CreateWorkspace, type CreateWorkspaceParams, type DeepPartial, type DefaultContextContent, DefaultPromptBuilder, DefaultSystemPromptAssembler, type DeleteContext, type DeletePreference, type DeleteRole, type DeleteSession, type DeleteTopic, type DeleteTurn, type DocumentBlock, type DocumentMediaType, type DuplicateKeyError, EMPTY_SYSTEM_ROLE, type EditTurn, type ExecuteResult, type ForkSession, index as GoogleAdapter, type ImageBlock, type ImageMediaType, type Index, type IndexExtensions, type IndexedDBBlobConfig, IndexedDBBlobStorage, type Indexer, type InvalidCommandError, JaccardContextRetriever, type JsonContextContent, type LLMAdapter, type LLMAdapterStatic, LRUCache, MemoryBlobStorage, type MergeTopics, type ModelConstraint, type ModelConstraintMap, type ModelName, type ModelProfile, type ModelRegistry, type NotFoundError, type OverrideSessionPreferences, type PermissionDeniedError, type PermissionGuard, type Preference, type PreferenceSummary, type PreparedPrompt, type Project, type Prompt, type PromptBuilder, type PromptBuilderOptions, type PromptSection, type PurgeBlob, type RecordBlobRemoteId, type RegisterBlob, type ReleaseBlob, type RemoteContextContent, type ResolvedBlob, type ResolvedSession, type Result, type RetainBlob, type Role, type RoleSummary, type RoleTransitionBlock, type SHA256, Session, SessionManager, type SessionMetadata, type SessionSnapshot, type Settings, type Store, type Summarizer, type SummaryBlock, type SwitchSessionRole, type SyncWorkspace, type SystemActor, type SystemPromptAssembler, type TextBlock, type TextContextContent, type ThinkingBlock, type Timestamp, type ToolCall, type ToolCallCommand, type ToolRegistry, type ToolResultBlock, type ToolSummary, type ToolUseBlock, type Topic, type TopicIndex, type Turn, TurnBuilder, type TurnKey, type TurnNode, type TurnProcessor, type TurnRef, TurnTree, type URI, type UUID, type UpdateContext, type UpdatePreference, type UpdateRole, type UpdateSession, type UpdateTopic, type UpdateTurn, type Workspace, WorkspaceApi, type WorkspaceBundle, type WorkspaceContext, type WorkspaceDatabase, type WorkspaceError, type WorkspaceEvents, type WorkspaceExtension, WorkspaceManager, type WorkspaceMiddleware, type WorkspaceReducer, WorkspaceRegistry, type WorkspaceServices, bufferToBase64, computeSHA256, createDefaultAssembler, createEmptySession, createEmptyTurn, createEmptyWorkspace, createWorkspace, createWorkspaceDatabase, del, error, getExtension, merge, omitNullUndefined, sessionStateToMarkdown, shortHash, success };
|