openmates 0.20.0-alpha.1 → 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",
@@ -62126,6 +62153,14 @@ As of mid-2026, the severe supply shocks from the 2024\u20132025 avian flu have
62126
62153
  text: "OpenRouter is used as a routing aggregator for several third-party models, including Cerebras-hosted models. OpenRouter sees your chat messages with PII placeholders substituted client-side and forwards them to the underlying model host."
62127
62154
  }
62128
62155
  },
62156
+ typesafe: {
62157
+ heading: {
62158
+ text: "TypeSafe Jev (via OpenRouter)"
62159
+ },
62160
+ description: {
62161
+ text: "TypeSafe Jev receives bounded recent chat context and candidate metadata through OpenRouter to make internal routing, model-tier, skill, focus-mode, language, and safety decisions. It also checks external text for prompt injection. OpenMates does not send user identifiers, and Jev returns typed decisions rather than generated chat text."
62162
+ }
62163
+ },
62129
62164
  cerebras: {
62130
62165
  heading: {
62131
62166
  text: "Cerebras (US, via OpenRouter)"
@@ -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-IZIs_CNO.js';
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
@@ -13,7 +13,7 @@ import {
13
13
  serializeToYaml,
14
14
  shouldRequireTrustedAccountGuard,
15
15
  waitForWorkflowRun
16
- } from "./chunk-SVQF3GDG.js";
16
+ } from "./chunk-HAGQBTXG.js";
17
17
  import "./chunk-IWKP55ZB.js";
18
18
  import "./chunk-BBKJZ23O.js";
19
19
  export {
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-IZIs_CNO.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-IZIs_CNO.js';
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
@@ -42,7 +42,7 @@ import {
42
42
  selectAssistantMessagesForSpeech,
43
43
  serializeToYaml,
44
44
  summarizeAssistantSpeech
45
- } from "./chunk-SVQF3GDG.js";
45
+ } from "./chunk-HAGQBTXG.js";
46
46
  import "./chunk-IWKP55ZB.js";
47
47
  import "./chunk-BBKJZ23O.js";
48
48
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.20.0-alpha.1",
3
+ "version": "0.20.0-alpha.3",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",