openmates 0.20.0-alpha.2 → 0.20.0-alpha.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.
|
@@ -3617,6 +3617,8 @@ var OpenMatesWsClient = class {
|
|
|
3617
3617
|
let chatSummary = null;
|
|
3618
3618
|
let chatTags = [];
|
|
3619
3619
|
let updatedChatTitle = null;
|
|
3620
|
+
let sourceTitleVersion = null;
|
|
3621
|
+
let sourceMetadataVersion = null;
|
|
3620
3622
|
let generatedTitle = null;
|
|
3621
3623
|
let generatedIcon = null;
|
|
3622
3624
|
let taskProposals = [];
|
|
@@ -3712,6 +3714,8 @@ var OpenMatesWsClient = class {
|
|
|
3712
3714
|
chatSummary,
|
|
3713
3715
|
chatTags,
|
|
3714
3716
|
updatedChatTitle,
|
|
3717
|
+
sourceTitleVersion,
|
|
3718
|
+
sourceMetadataVersion,
|
|
3715
3719
|
generatedTitle,
|
|
3716
3720
|
generatedIcon,
|
|
3717
3721
|
taskProposals,
|
|
@@ -3746,6 +3750,8 @@ var OpenMatesWsClient = class {
|
|
|
3746
3750
|
chatSummary,
|
|
3747
3751
|
chatTags,
|
|
3748
3752
|
updatedChatTitle,
|
|
3753
|
+
sourceTitleVersion,
|
|
3754
|
+
sourceMetadataVersion,
|
|
3749
3755
|
generatedTitle,
|
|
3750
3756
|
generatedIcon,
|
|
3751
3757
|
taskProposals,
|
|
@@ -3776,6 +3782,8 @@ var OpenMatesWsClient = class {
|
|
|
3776
3782
|
chatSummary,
|
|
3777
3783
|
chatTags,
|
|
3778
3784
|
updatedChatTitle,
|
|
3785
|
+
sourceTitleVersion,
|
|
3786
|
+
sourceMetadataVersion,
|
|
3779
3787
|
generatedTitle,
|
|
3780
3788
|
generatedIcon,
|
|
3781
3789
|
taskProposals,
|
|
@@ -4074,6 +4082,12 @@ var OpenMatesWsClient = class {
|
|
|
4074
4082
|
if (typeof p.updated_chat_title === "string" && p.updated_chat_title.trim()) {
|
|
4075
4083
|
updatedChatTitle = p.updated_chat_title.trim();
|
|
4076
4084
|
}
|
|
4085
|
+
if (typeof p.source_title_v === "number" && Number.isFinite(p.source_title_v)) {
|
|
4086
|
+
sourceTitleVersion = p.source_title_v;
|
|
4087
|
+
}
|
|
4088
|
+
if (typeof p.source_metadata_v === "number" && Number.isFinite(p.source_metadata_v)) {
|
|
4089
|
+
sourceMetadataVersion = p.source_metadata_v;
|
|
4090
|
+
}
|
|
4077
4091
|
taskProposals = parseTaskProposals(p.task_proposals);
|
|
4078
4092
|
taskUpdateProposals = parseTaskUpdateProposals(p.task_update_proposals);
|
|
4079
4093
|
if (aiResponseDone) {
|
|
@@ -4107,6 +4121,8 @@ var OpenMatesWsClient = class {
|
|
|
4107
4121
|
chatSummary,
|
|
4108
4122
|
chatTags,
|
|
4109
4123
|
updatedChatTitle,
|
|
4124
|
+
sourceTitleVersion,
|
|
4125
|
+
sourceMetadataVersion,
|
|
4110
4126
|
generatedTitle,
|
|
4111
4127
|
generatedIcon,
|
|
4112
4128
|
taskProposals,
|
|
@@ -11937,6 +11953,8 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
11937
11953
|
chatSummary: resp.chatSummary,
|
|
11938
11954
|
chatTags: resp.chatTags,
|
|
11939
11955
|
updatedChatTitle: resp.updatedChatTitle,
|
|
11956
|
+
sourceTitleVersion: resp.sourceTitleVersion,
|
|
11957
|
+
sourceMetadataVersion: resp.sourceMetadataVersion,
|
|
11940
11958
|
encryptedChatKey
|
|
11941
11959
|
});
|
|
11942
11960
|
await persistCompressionCheckpoints(resp.compressionCheckpoints);
|
|
@@ -12408,6 +12426,11 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
12408
12426
|
const encryptedChatSummary = params.chatSummary ? await encryptWithAesGcmCombined(params.chatSummary, params.chatKeyBytes) : "";
|
|
12409
12427
|
const encryptedChatTags = params.chatTags.length > 0 ? await encryptWithAesGcmCombined(JSON.stringify(params.chatTags.slice(0, 10)), params.chatKeyBytes) : "";
|
|
12410
12428
|
const encryptedUpdatedTitle = params.updatedChatTitle ? await encryptWithAesGcmCombined(params.updatedChatTitle, params.chatKeyBytes) : "";
|
|
12429
|
+
const nextTitleVersion = encryptedUpdatedTitle ? Math.max(params.sourceTitleVersion ?? 0, 0) + 1 : Math.max(params.sourceTitleVersion ?? 0, 0);
|
|
12430
|
+
const nextMetadataVersion = Math.max(
|
|
12431
|
+
params.sourceMetadataVersion ?? 0,
|
|
12432
|
+
nextTitleVersion
|
|
12433
|
+
);
|
|
12411
12434
|
if (!encryptedFollowUps && encryptedNewChatSuggestions.length === 0 && !encryptedChatSummary && !encryptedChatTags && !encryptedUpdatedTitle) return;
|
|
12412
12435
|
await params.ws.sendAsync("update_post_processing_metadata", {
|
|
12413
12436
|
chat_id: params.chatId,
|
|
@@ -12417,7 +12440,11 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
12417
12440
|
encrypted_chat_summary: encryptedChatSummary,
|
|
12418
12441
|
encrypted_chat_tags: encryptedChatTags,
|
|
12419
12442
|
encrypted_title: encryptedUpdatedTitle,
|
|
12420
|
-
encrypted_chat_key: params.encryptedChatKey ?? ""
|
|
12443
|
+
encrypted_chat_key: params.encryptedChatKey ?? "",
|
|
12444
|
+
versions: {
|
|
12445
|
+
title_v: nextTitleVersion,
|
|
12446
|
+
metadata_v: nextMetadataVersion
|
|
12447
|
+
}
|
|
12421
12448
|
});
|
|
12422
12449
|
await params.ws.waitForMessage(
|
|
12423
12450
|
"post_processing_metadata_stored",
|
|
@@ -267,6 +267,8 @@ declare class OpenMatesWsClient {
|
|
|
267
267
|
chatSummary: string | null;
|
|
268
268
|
chatTags: string[];
|
|
269
269
|
updatedChatTitle: string | null;
|
|
270
|
+
sourceTitleVersion: number | null;
|
|
271
|
+
sourceMetadataVersion: number | null;
|
|
270
272
|
generatedTitle: string | null;
|
|
271
273
|
generatedIcon: string | null;
|
|
272
274
|
taskProposals: TaskProposalEvent[];
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, aD as assertTrustedAccountCommandAllowed, aE as assertTrustedAccountGuardEnvironment, av as buildImagesAiDetectionSummary, aF as buildTravelConnectionsRequest, aw as classifyImagesAiDetection, ay as formatImagesAiDetectionLabel, az as getExtForLang, aG as printWhoAmI, aH as requireExactConfirmation, aI as resolveProjectContext, aC as serializeToYaml, aJ as shouldRequireTrustedAccountGuard, aK as waitForWorkflowRun } from './cli-
|
|
2
|
+
export { ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, aD as assertTrustedAccountCommandAllowed, aE as assertTrustedAccountGuardEnvironment, av as buildImagesAiDetectionSummary, aF as buildTravelConnectionsRequest, aw as classifyImagesAiDetection, ay as formatImagesAiDetectionLabel, az as getExtForLang, aG as printWhoAmI, aH as requireExactConfirmation, aI as resolveProjectContext, aC as serializeToYaml, aJ as shouldRequireTrustedAccountGuard, aK as waitForWorkflowRun } from './cli-Dd-21ctu.js';
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UserPlanStatus, a as UserPlanRecord, b as UserPlanVerificationStatus, c as UserPlanLearningType, d as UserPlanLearningTargetKind, e as UserPlanLearningStatus, f as UserPlanLearningLevel, g as UserPlanLearningRecord, h as UserPlanCriterionRecord, i as UserPlanVerificationRecord, j as UserPlanCreateInput, k as UserPlanUpdateInput, P as ProjectItemRecord, T as TaskCreateOptions, l as TaskUpdateOptions, m as UserPlanLearningCreateTasksInput, n as UserPlanLearningCreateTasksResult, o as UserTaskStatus, E as ExternalChatContext, p as TaskPriorityLevel, D as DecryptedUserTask, q as DecryptedTaskActivityEntry, r as TaskActivityCreateOptions, s as UserTaskReorderInput, W as WorkflowSummary, t as WorkflowCapability, u as WorkflowDetail, v as WorkflowInputStartParams, w as WorkflowInputSessionResult, x as WorkflowInputSessionDetail, y as WorkflowInputEvent, z as WorkflowGraph, A as WorkflowRunContentRetention, B as WorkflowRunDetail, C as WorkflowNode, F as WorkflowRunCancellationResult, G as WorkflowTemplateProjectionUpsertParams, H as WorkflowTemplateProjectionResult, I as PublicWorkflowTemplateProjection, J as WorkflowTemplateProjectionRevocationResult, K as WorkflowTemplateBindingCompletionParams, L as WorkflowTemplateBindingCompletionResult, M as WorkflowTemplateShortUrlParams, N as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, O as WorkflowTemplateImportPayload, Q as ImportedWorkflowTemplate } from './cli-
|
|
2
|
-
export { R as AuthMethodsStatus, V as AuthoritativeChatReconciliation, X as BackupCodesResult, Y as BankTransferOrderDetails, Z as BankTransferStatus, _ as CachedChat, $ as CachedNewChatSuggestion, a0 as ChatListPage, a1 as CliSignupResult, a2 as DecryptedDraft, a3 as DecryptedEmbed, a4 as DecryptedMemoryEntry, a5 as DecryptedMessage, a6 as DecryptedNewChatSuggestion, a7 as DocsFile, a8 as DocsFolder, a9 as DocsSearchResult, aa as DocsTree, ab as EncryptedDraft, ac as GiftCardBankTransferStatus, ad as INTEREST_TAG_IDS, ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, ag as InterestTagId, ah as MATE_NAMES, ai as MEMORY_TYPE_REGISTRY, aj as MemoryFieldDef, ak as MemoryTypeDef, al as OpenMatesClient, am as OpenMatesClientOptions, an as OpenMatesSession, ao as SyncCache, ap as TopicPreferencesPayload, aq as TotpSetupStartResult, ar as WorkflowEdge, as as WorkflowNodeRun, at as WorkflowNodeType, au as WorkflowRunContentStorage, av as buildImagesAiDetectionSummary, aw as classifyImagesAiDetection, ax as deriveAppUrl, ay as formatImagesAiDetectionLabel, az as getExtForLang, aA as normalizeInterestTagIds, aB as reconcileAuthoritativeChats, aC as serializeToYaml } from './cli-
|
|
1
|
+
import { U as UserPlanStatus, a as UserPlanRecord, b as UserPlanVerificationStatus, c as UserPlanLearningType, d as UserPlanLearningTargetKind, e as UserPlanLearningStatus, f as UserPlanLearningLevel, g as UserPlanLearningRecord, h as UserPlanCriterionRecord, i as UserPlanVerificationRecord, j as UserPlanCreateInput, k as UserPlanUpdateInput, P as ProjectItemRecord, T as TaskCreateOptions, l as TaskUpdateOptions, m as UserPlanLearningCreateTasksInput, n as UserPlanLearningCreateTasksResult, o as UserTaskStatus, E as ExternalChatContext, p as TaskPriorityLevel, D as DecryptedUserTask, q as DecryptedTaskActivityEntry, r as TaskActivityCreateOptions, s as UserTaskReorderInput, W as WorkflowSummary, t as WorkflowCapability, u as WorkflowDetail, v as WorkflowInputStartParams, w as WorkflowInputSessionResult, x as WorkflowInputSessionDetail, y as WorkflowInputEvent, z as WorkflowGraph, A as WorkflowRunContentRetention, B as WorkflowRunDetail, C as WorkflowNode, F as WorkflowRunCancellationResult, G as WorkflowTemplateProjectionUpsertParams, H as WorkflowTemplateProjectionResult, I as PublicWorkflowTemplateProjection, J as WorkflowTemplateProjectionRevocationResult, K as WorkflowTemplateBindingCompletionParams, L as WorkflowTemplateBindingCompletionResult, M as WorkflowTemplateShortUrlParams, N as WorkflowTemplateShortUrlResult, S as ShortUrlRevokeResult, O as WorkflowTemplateImportPayload, Q as ImportedWorkflowTemplate } from './cli-Dd-21ctu.js';
|
|
2
|
+
export { R as AuthMethodsStatus, V as AuthoritativeChatReconciliation, X as BackupCodesResult, Y as BankTransferOrderDetails, Z as BankTransferStatus, _ as CachedChat, $ as CachedNewChatSuggestion, a0 as ChatListPage, a1 as CliSignupResult, a2 as DecryptedDraft, a3 as DecryptedEmbed, a4 as DecryptedMemoryEntry, a5 as DecryptedMessage, a6 as DecryptedNewChatSuggestion, a7 as DocsFile, a8 as DocsFolder, a9 as DocsSearchResult, aa as DocsTree, ab as EncryptedDraft, ac as GiftCardBankTransferStatus, ad as INTEREST_TAG_IDS, ae as ImagesAiDetectionClassification, af as ImagesAiDetectionSummary, ag as InterestTagId, ah as MATE_NAMES, ai as MEMORY_TYPE_REGISTRY, aj as MemoryFieldDef, ak as MemoryTypeDef, al as OpenMatesClient, am as OpenMatesClientOptions, an as OpenMatesSession, ao as SyncCache, ap as TopicPreferencesPayload, aq as TotpSetupStartResult, ar as WorkflowEdge, as as WorkflowNodeRun, at as WorkflowNodeType, au as WorkflowRunContentStorage, av as buildImagesAiDetectionSummary, aw as classifyImagesAiDetection, ax as deriveAppUrl, ay as formatImagesAiDetectionLabel, az as getExtForLang, aA as normalizeInterestTagIds, aB as reconcileAuthoritativeChats, aC as serializeToYaml } from './cli-Dd-21ctu.js';
|
|
3
3
|
|
|
4
4
|
interface ProjectedAssistantSpeechSegment {
|
|
5
5
|
sequence: number;
|
package/dist/index.js
CHANGED