Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

ui ux enhancement

Dinh Long Nguyen340042682a75
diff --git a/core/src/browser/extensions/index.ts b/core/src/browser/extensions/index.ts
index 339bb0d2b..6284ad719 100644
--- a/core/src/browser/extensions/index.ts
+++ b/core/src/browser/extensions/index.ts
@@ -25,6 +25,6 @@ export { MCPExtension } from './mcp'
export * from './engines'
export { RAGExtension, RAG_INTERNAL_SERVER } from './rag'
-export type { AttachmentInput } from './rag'
+export type { AttachmentInput, IngestAttachmentsResult } from './rag'
export { VectorDBExtension } from './vector-db'
-export type { SearchMode, VectorDBStatus, VectorChunkInput, VectorSearchResult, AttachmentFileInfo } from './vector-db'
+export type { SearchMode, VectorDBStatus, VectorChunkInput, VectorSearchResult, AttachmentFileInfo, VectorDBFileInput, VectorDBIngestOptions } from './vector-db'
diff --git a/core/src/browser/extensions/rag.ts b/core/src/browser/extensions/rag.ts
index 5df474ce0..251d0fcad 100644
--- a/core/src/browser/extensions/rag.ts
+++ b/core/src/browser/extensions/rag.ts
@@ -1,5 +1,6 @@
import { BaseExtension, ExtensionTypeEnum } from '../extension'
import type { MCPTool, MCPToolCallResult } from '../../types'
+import type { AttachmentFileInfo } from './vector-db'
export interface AttachmentInput {
path: string
@@ -8,6 +9,12 @@ export interface AttachmentInput {
size?: number
}
+export interface IngestAttachmentsResult {
+ filesProcessed: number
+ chunksInserted: number
+ files: AttachmentFileInfo[]
+}
+
export const RAG_INTERNAL_SERVER = 'rag-internal'
/**
@@ -25,8 +32,5 @@ export abstract class RAGExtension extends BaseExtension {
abstract getToolNames(): Promise<string[]>
abstract callTool(toolName: string, args: Record<string, unknown>): Promise<MCPToolCallResult>
- abstract ingestAttachments(threadId: string, files: AttachmentInput[]): Promise<{
- filesProcessed: number
- chunksInserted: number
- } | void>
+ abstract ingestAttachments(threadId: string, files: AttachmentInput[]): Promise<IngestAttachmentsResult>
}
diff --git a/core/src/browser/extensions/vector-db.ts b/core/src/browser/extensions/vector-db.ts
index ffbf0b4ab..27dec0367 100644
--- a/core/src/browser/extensions/vector-db.ts
+++ b/core/src/browser/extensions/vector-db.ts
@@ -7,10 +7,8 @@ export interface VectorDBStatus {
}
export interface VectorChunkInput {
- id?: string
text: string
embedding: number[]
- metadata?: Record<string, any>
}
export interface VectorSearchResult {
@@ -30,6 +28,19 @@ export interface AttachmentFileInfo {
chunk_count: number
}
+// High-level input types for file ingestion
+export interface VectorDBFileInput {
+ path: string
+ name?: string
+ type?: string
+ size?: number
+}
+
+export interface VectorDBIngestOptions {
+ chunkSize: number
+ chunkOverlap: number
+}
+
/**
* Vector DB extension base: abstraction over local vector storage and search.
*/
@@ -39,22 +50,31 @@ export abstract class VectorDBExtension extends BaseExtension {
}
abstract getStatus(): Promise<VectorDBStatus>
- abstract createCollection(name: string, dimension: number): Promise<void>
- abstract insertChunks(collection: string, chunks: VectorChunkInput[]): Promise<void>
+ abstract createCollection(threadId: string, dimension: number): Promise<void>
+ abstract insertChunks(
+ threadId: string,
+ fileId: string,
+ chunks: VectorChunkInput[]
+ ): Promise<void>
+ abstract ingestFile(
+ threadId: string,
+ file: VectorDBFileInput,
+ opts: VectorDBIngestOptions
+ ): Promise<AttachmentFileInfo>
abstract searchCollection(
- collection: string,
+ threadId: string,
query_embedding: number[],
limit: number,
threshold: number,
mode?: SearchMode,
fileIds?: string[]
): Promise<VectorSearchResult[]>
- abstract deleteChunks(collection: string, ids: string[]): Promise<void>
- abstract deleteCollection(collection: string): Promise<void>
- abstract chunkText(text: string, chunkSize: number, chunkOverlap: number): Promise<string[]>
- abstract listAttachments(collection: string, limit?: number): Promise<AttachmentFileInfo[]>
+ abstract deleteChunks(threadId: string, ids: string[]): Promise<void>
+ abstract deleteFile(threadId: string, fileId: string): Promise<void>
+ abstract deleteCollection(threadId: string): Promise<void>
+ abstract listAttachments(threadId: string, limit?: number): Promise<AttachmentFileInfo[]>
abstract getChunks(
- collection: string,
+ threadId: string,
fileId: string,
startOrder: number,
endOrder: number
diff --git a/extensions/rag-extension/src/index.ts b/extensions/rag-extension/src/index.ts
index 21860c471..4a2edc2ea 100644
--- a/extensions/rag-extension/src/index.ts
+++ b/extensions/rag-extension/src/index.ts
@@ -1,7 +1,5 @@
-import { RAGExtension, MCPTool, MCPToolCallResult, ExtensionTypeEnum, VectorDBExtension, type AttachmentInput, type SettingComponentProps, AIEngine } from '@janhq/core'
+import { RAGExtension, MCPTool, MCPToolCallResult, ExtensionTypeEnum, VectorDBExtension, type AttachmentInput, type SettingComponentProps, AIEngine, type AttachmentFileInfo } from '@janhq/core'
import './env.d'
-import * as ragApi from '@janhq/tauri-plugin-rag-api'
-import * as vecdbApi from '@janhq/tauri-plugin-vector-db-api'
import { getRAGTools, RETRIEVE, LIST_ATTACHMENTS, GET_CHUNKS } from './tools'
export default class RagExtension extends RAGExtension {
@@ -75,11 +73,10 @@ export default class RagExtension extends RAGExtension {
}
try {
const vec = window.core?.extensionManager.get(ExtensionTypeEnum.VectorDB) as unknown as VectorDBExtension
- const collection = `attachments_${threadId}`
if (!vec?.listAttachments) {
return { error: 'Vector DB extension missing listAttachments', content: [{ type: 'text', text: 'Vector DB extension missing listAttachments' }] }
}
- const files = await vec.listAttachments(collection)
+ const files = await vec.listAttachments(threadId)
return {
error: '',
content: [
@@ -143,9 +140,8 @@ export default class RagExtension extends RAGExtension {
}
}
- const collection = `attachments_${threadId}`
const results = await vec.searchCollection(
- collection,
+ threadId,
queryEmb,
topK,
threshold,
@@ -163,7 +159,6 @@ export default class RagExtension extends RAGExtension {
file_id: r.file_id,
chunk_file_order: r.chunk_file_order
})) ?? [],
- collection,
mode,
}
return { error: '', content: [{ type: 'text', text: JSON.stringify(payload) }] }
@@ -203,8 +198,7 @@ export default class RagExtension extends RAGExtension {
}
}
- const collection = `attachments_${threadId}`
- const chunks = await vec.getChunks(collection, fileId, startOrder, endOrder)
+ const chunks = await vec.getChunks(threadId, fileId, startOrder, endOrder)
const payload = {
thread_id: threadId,
@@ -222,8 +216,15 @@ export default class RagExtension extends RAGExtension {
async ingestAttachments(
threadId: string,
files: AttachmentInput[]
- ): Promise<{ filesProcessed: number; chunksInserted: number } | void> {
- if (!threadId || !Array.isArray(files) || files.length === 0) return
+ ): Promise<{ filesProcessed: number; chunksInserted: number; files: AttachmentFileInfo[] }> {
+ if (!threadId || !Array.isArray(files) || files.length === 0) {
+ return { filesProcessed: 0, chunksInserted: 0, files: [] }
+ }
+
+ // Respect feature flag: do nothing when disabled
+ if (this.config.enabled === false) {
+ return { filesProcessed: 0, chunksInserted: 0, files: [] }
+ }
const vec = window.core?.extensionManager.get(ExtensionTypeEnum.VectorDB) as unknown as VectorDBExtension
if (!vec?.createCollection || !vec?.insertChunks) {
@@ -237,41 +238,32 @@ export default class RagExtension extends RAGExtension {
const chunkOverlap = s?.overlapTokens as number | undefined
let totalChunks = 0
- let processed = 0
- const collection = `attachments_${threadId}`
- let created = false
+ const processedFiles: AttachmentFileInfo[] = []
for (const f of files) {
if (!f?.path) continue
- if (maxSize && f.size && f.size > maxSize * 1024 * 1024) continue
-
- const type = f.type || 'application/octet-stream'
- const chunks = await this.parseAndEmbed(f.path, type, {
- chunkSize: chunkSize ?? 512,
- chunkOverlap: chunkOverlap ?? 64,
- meta: { file: { name: f.name || f.path.split(/[\\/]/).pop(), path: f.path, type: f.type, size: f.size }, threadId },
- })
-
- if (!chunks?.length) {
- processed += 1
- continue
+ if (maxSize && f.size && f.size > maxSize * 1024 * 1024) {
+ throw new Error(`File '${f.name}' exceeds size limit (${f.size} bytes > ${maxSize} MB).`)
}
- // Ensure collection
- if (!created) {
- await vec.createCollection(collection, chunks[0].embedding.length)
- created = true
+ const fileName = f.name || f.path.split(/[\\/]/).pop()
+ // Preferred/required path: let Vector DB extension handle full file ingestion
+ const canIngestFile = typeof (vec as any)?.ingestFile === 'function'
+ if (!canIngestFile) {
+ console.error('[RAG] Vector DB extension missing ingestFile; cannot ingest document')
+ continue
}
-
- await vec.insertChunks(
- collection,
- chunks.map((c) => ({ text: c.text, embedding: c.embedding, metadata: c.metadata }))
+ const info = await (vec as VectorDBExtension).ingestFile(
+ threadId,
+ { path: f.path, name: fileName, type: f.type, size: f.size },
+ { chunkSize: chunkSize ?? 512, chunkOverlap: chunkOverlap ?? 64 }
)
- totalChunks += chunks.length
- processed += 1
+ totalChunks += Number(info?.chunk_count || 0)
+ processedFiles.push(info)
}
- return { filesProcessed: processed, chunksInserted: totalChunks }
+ // Return files we ingested with real IDs directly from ingestFile
+ return { filesProcessed: processedFiles.length, chunksInserted: totalChunks, files: processedFiles }
}
onSettingUpdate<T>(key: string, value: T): void {
@@ -310,19 +302,4 @@ export default class RagExtension extends RAGExtension {
for (const item of data) out[item.index] = item.embedding
return out
}
-
- private async parseAndEmbed(
- filePath: string,
- fileType: string,
- opts: { chunkSize: number; chunkOverlap: number; meta?: Record<string, any> }
- ): Promise<Array<{ text: string; embedding: number[]; metadata?: Record<string, any> }>> {
- const text = await ragApi.parseDocument(filePath, fileType)
- const chunks = await vecdbApi.chunkText(text, opts.chunkSize, opts.chunkOverlap)
- const embeddings = await this.embedTexts(chunks)
- return chunks.map((text, i) => ({
- text,
- embedding: embeddings[i],
- metadata: opts.meta,
- }))
- }
}
diff --git a/extensions/vector-db-extension/package.json b/extensions/vector-db-extension/package.json
index 183d00d82..ba3a8d439 100644
--- a/extensions/vector-db-extension/package.json
+++ b/extensions/vector-db-extension/package.json
@@ -19,6 +19,7 @@
},
"dependencies": {
"@janhq/core": "../../core/package.tgz",
+ "@janhq/tauri-plugin-rag-api": "link:../../src-tauri/plugins/tauri-plugin-rag",
"@janhq/tauri-plugin-vector-db-api": "link:../../src-tauri/plugins/tauri-plugin-vector-db"
},
"files": [
diff --git a/extensions/vector-db-extension/src/index.ts b/extensions/vector-db-extension/src/index.ts
index 5eadad28f..f55710f07 100644
--- a/extensions/vector-db-extension/src/index.ts
+++ b/extensions/vector-db-extension/src/index.ts
@@ -1,5 +1,6 @@
-import { VectorDBExtension, type SearchMode, type VectorDBStatus, type VectorChunkInput, type VectorSearchResult, type AttachmentFileInfo } from '@janhq/core'
+import { VectorDBExtension, type SearchMode, type VectorDBStatus, type VectorChunkInput, type VectorSearchResult, type AttachmentFileInfo, type VectorDBFileInput, type VectorDBIngestOptions, AIEngine } from '@janhq/core'
import * as vecdb from '@janhq/tauri-plugin-vector-db-api'
+import * as ragApi from '@janhq/tauri-plugin-rag-api'
export default class VectorDBExt extends VectorDBExtension {
async onLoad(): Promise<void> {
@@ -12,47 +13,95 @@ export default class VectorDBExt extends VectorDBExtension {
return await vecdb.getStatus() as VectorDBStatus
}
- async createCollection(name: string, dimension: number): Promise<void> {
- return await vecdb.createCollection(name, dimension)
+ private collectionForThread(threadId: string): string {
+ return `attachments_${threadId}`
}
- async insertChunks(collection: string, chunks: VectorChunkInput[]): Promise<void> {
- return await vecdb.insertChunks(collection, chunks)
+ async createCollection(threadId: string, dimension: number): Promise<void> {
+ return await vecdb.createCollection(this.collectionForThread(threadId), dimension)
+ }
+
+ async insertChunks(threadId: string, fileId: string, chunks: VectorChunkInput[]): Promise<void> {
+ return await vecdb.insertChunks(this.collectionForThread(threadId), fileId, chunks)
}
async searchCollection(
- collection: string,
+ threadId: string,
query_embedding: number[],
limit: number,
threshold: number,
mode?: SearchMode,
fileIds?: string[]
): Promise<VectorSearchResult[]> {
- return await vecdb.searchCollection(collection, query_embedding, limit, threshold, mode, fileIds) as VectorSearchResult[]
+ return await vecdb.searchCollection(this.collectionForThread(threadId), query_embedding, limit, threshold, mode, fileIds) as VectorSearchResult[]
}
- async deleteChunks(collection: string, ids: string[]): Promise<void> {
- return await vecdb.deleteChunks(collection, ids)
+ async deleteChunks(threadId: string, ids: string[]): Promise<void> {
+ return await vecdb.deleteChunks(this.collectionForThread(threadId), ids)
}
- async deleteCollection(collection: string): Promise<void> {
- return await vecdb.deleteCollection(collection)
+ async deleteCollection(threadId: string): Promise<void> {
+ return await vecdb.deleteCollection(this.collectionForThread(threadId))
}
- async chunkText(text: string, chunkSize: number, chunkOverlap: number): Promise<string[]> {
+ // Optional helper for chunking
+ private async chunkText(text: string, chunkSize: number, chunkOverlap: number): Promise<string[]> {
return await vecdb.chunkText(text, chunkSize, chunkOverlap)
}
- async listAttachments(collection: string, limit?: number): Promise<AttachmentFileInfo[]> {
- return await vecdb.listAttachments(collection, limit) as AttachmentFileInfo[]
+ private async embedTexts(texts: string[]): Promise<number[][]> {
+ const llm = window.core?.extensionManager.getByName('@janhq/llamacpp-extension') as AIEngine & { embed?: (texts: string[]) => Promise<{ data: Array<{ embedding: number[]; index: number }> }> }
+ if (!llm?.embed) throw new Error('llamacpp extension not available')
+ const res = await llm.embed(texts)
+ const data: Array<{ embedding: number[]; index: number }> = res?.data || []
+ const out: number[][] = new Array(texts.length)
+ for (const item of data) out[item.index] = item.embedding
+ return out
+ }
+
+ async ingestFile(threadId: string, file: VectorDBFileInput, opts: VectorDBIngestOptions): Promise<AttachmentFileInfo> {
+ // Check for duplicate file (same name + path)
+ const existingFiles = await vecdb.listAttachments(this.collectionForThread(threadId)).catch(() => [])
+ const duplicate = existingFiles.find((f: any) => f.name === file.name && f.path === file.path)
+ if (duplicate) {
+ throw new Error(`File '${file.name}' has already been attached to this thread`)
+ }
+
+ const text = await ragApi.parseDocument(file.path, file.type || 'application/octet-stream')
+ const chunks = await this.chunkText(text, opts.chunkSize, opts.chunkOverlap)
+ if (!chunks.length) {
+ const fi = await vecdb.createFile(this.collectionForThread(threadId), file)
+ return fi
+ }
+ const embeddings = await this.embedTexts(chunks)
+ const dimension = embeddings[0]?.length || 0
+ if (dimension <= 0) throw new Error('Embedding dimension not available')
+ await this.createCollection(threadId, dimension)
+ const fi = await vecdb.createFile(this.collectionForThread(threadId), file)
+ await vecdb.insertChunks(
+ this.collectionForThread(threadId),
+ fi.id,
+ chunks.map((t, i) => ({ text: t, embedding: embeddings[i] }))
+ )
+ const infos = await vecdb.listAttachments(this.collectionForThread(threadId))
+ const updated = infos.find((e) => e.id === fi.id)
+ return updated || { ...fi, chunk_count: chunks.length }
+ }
+
+ async listAttachments(threadId: string, limit?: number): Promise<AttachmentFileInfo[]> {
+ return await vecdb.listAttachments(this.collectionForThread(threadId), limit) as AttachmentFileInfo[]
}
async getChunks(
- collection: string,
+ threadId: string,
fileId: string,
startOrder: number,
endOrder: number
): Promise<VectorSearchResult[]> {
- return await vecdb.getChunks(collection, fileId, startOrder, endOrder) as VectorSearchResult[]
+ return await vecdb.getChunks(this.collectionForThread(threadId), fileId, startOrder, endOrder) as VectorSearchResult[]
+ }
+
+ async deleteFile(threadId: string, fileId: string): Promise<void> {
+ return await vecdb.deleteFile(this.collectionForThread(threadId), fileId)
}
}
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index bef9d5114..1f2850c2f 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -14,7 +14,7 @@ dependencies = [
"hyper 0.14.32",
"jan-utils",
"libc",
- "libloading 0.8.8",
+ "libloading 0.8.9",
"log",
"nix",
"once_cell",
@@ -42,7 +42,7 @@ dependencies = [
"tauri-plugin-updater",
"tauri-plugin-vector-db",
"tempfile",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"tokio-util",
"url",
@@ -53,9 +53,9 @@ dependencies = [
[[package]]
name = "addr2line"
-version = "0.24.2"
+version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
+checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b"
dependencies = [
"gimli",
]
@@ -125,12 +125,6 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
-[[package]]
-name = "android-tzdata"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
-
[[package]]
name = "android_log-sys"
version = "0.3.2"
@@ -159,15 +153,15 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.98"
+version = "1.0.100"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
+checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
[[package]]
name = "arbitrary"
-version = "1.4.1"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
dependencies = [
"derive_arbitrary",
]
@@ -234,9 +228,9 @@ dependencies = [
[[package]]
name = "async-executor"
-version = "1.13.2"
+version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb812ffb58524bdd10860d7d974e2f01cc0950c2438a74ee5ec2e2280c6c4ffa"
+checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8"
dependencies = [
"async-task",
"concurrent-queue",
@@ -248,11 +242,11 @@ dependencies = [
[[package]]
name = "async-io"
-version = "2.5.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19634d6336019ef220f09fd31168ce5c184b295cbf80345437cc36094ef223ca"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
dependencies = [
- "async-lock",
+ "autocfg",
"cfg-if",
"concurrent-queue",
"futures-io",
@@ -261,7 +255,7 @@ dependencies = [
"polling",
"rustix",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -277,9 +271,9 @@ dependencies = [
[[package]]
name = "async-process"
-version = "2.4.0"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65daa13722ad51e6ab1a1b9c01299142bc75135b337923cfa10e79bbbd669f00"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
dependencies = [
"async-channel",
"async-io",
@@ -301,14 +295,14 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "async-signal"
-version = "0.2.12"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f567af260ef69e1d52c2b560ce0ea230763e6fbb9214a85d768760a920e3e3c1"
+checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
dependencies = [
"async-io",
"async-lock",
@@ -319,7 +313,7 @@ dependencies = [
"rustix",
"signal-hook-registry",
"slab",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -330,13 +324,13 @@ checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
[[package]]
name = "async-trait"
-version = "0.1.88"
+version = "0.1.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"
+checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -385,9 +379,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
[[package]]
name = "backtrace"
-version = "0.3.75"
+version = "0.3.76"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
+checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6"
dependencies = [
"addr2line",
"cfg-if",
@@ -395,7 +389,7 @@ dependencies = [
"miniz_oxide",
"object",
"rustc-demangle",
- "windows-targets 0.52.6",
+ "windows-link 0.2.1",
]
[[package]]
@@ -424,9 +418,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.9.1"
+version = "2.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
+checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
dependencies = [
"serde",
]
@@ -463,11 +457,11 @@ dependencies = [
[[package]]
name = "block2"
-version = "0.6.1"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "340d2f0bdb2a43c1d3cd40513185b2bd7def0aa1052f956455114bc98f82dcf2"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.3",
]
[[package]]
@@ -500,10 +494,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdd1d3c0c2f5833f22386f252fe8ed005c7f59fdcddeef025c01b4c3b9fd9ac3"
dependencies = [
"once_cell",
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -547,22 +541,22 @@ dependencies = [
[[package]]
name = "bytemuck"
-version = "1.23.1"
+version = "1.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c76a5792e44e4abe34d3abf15636779261d45a7450612059293d1d2cfc63422"
+checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
-version = "1.10.1"
+version = "1.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f154e572231cb6ba2bd1176980827e3d5dc04cc183a75dea38109fbdd672d29"
+checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -606,7 +600,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cairo-sys-rs",
"glib",
"libc",
@@ -642,11 +636,11 @@ dependencies = [
[[package]]
name = "camino"
-version = "1.1.10"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0da45bc31171d8d6960122e222a67740df867c1dd53b4d51caa297084c185cab"
+checksum = "276a59bf2b2c967788139340c9f0c5b12d7fd6630315c15c217e559de85d2609"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -669,7 +663,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
]
[[package]]
@@ -679,15 +673,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
dependencies = [
"serde",
- "toml 0.9.5",
+ "toml 0.9.7",
]
[[package]]
name = "cc"
-version = "1.2.31"
+version = "1.2.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3a42d84bb6b69d3a8b3eaacf0d88f179e1929695e1ad012b6cf64d9caaa5fd2"
+checksum = "e1d05d92f4b1fd76aad469d46cdd858ca761576082cd37df81416691e50199fb"
dependencies = [
+ "find-msvc-tools",
"jobserver",
"libc",
"shlex",
@@ -722,9 +717,9 @@ dependencies = [
[[package]]
name = "cfg-if"
-version = "1.0.1"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
+checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cfg_aliases"
@@ -745,17 +740,16 @@ dependencies = [
[[package]]
name = "chrono"
-version = "0.4.41"
+version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d"
+checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
dependencies = [
- "android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"serde",
"wasm-bindgen",
- "windows-link",
+ "windows-link 0.2.1",
]
[[package]]
@@ -895,7 +889,7 @@ version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.10.1",
"core-graphics-types 0.2.0",
"foreign-types 0.5.0",
@@ -919,7 +913,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.10.1",
"libc",
]
@@ -1021,7 +1015,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1052,7 +1046,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
dependencies = [
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1067,12 +1061,12 @@ dependencies = [
[[package]]
name = "darling"
-version = "0.21.2"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08440b3dd222c3d0433e63e097463969485f112baff337dfdaca043a0d760570"
+checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
dependencies = [
- "darling_core 0.21.2",
- "darling_macro 0.21.2",
+ "darling_core 0.21.3",
+ "darling_macro 0.21.3",
]
[[package]]
@@ -1086,21 +1080,21 @@ dependencies = [
"proc-macro2",
"quote",
"strsim",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "darling_core"
-version = "0.21.2"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d25b7912bc28a04ab1b7715a68ea03aaa15662b43a1a4b2c480531fd19f8bf7e"
+checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1111,18 +1105,18 @@ checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
"darling_core 0.20.11",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "darling_macro"
-version = "0.21.2"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce154b9bea7fb0c8e8326e62d00354000c36e79770ff21b8c84e3aa267d9d531"
+checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
dependencies = [
- "darling_core 0.21.2",
+ "darling_core 0.21.3",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1140,9 +1134,9 @@ dependencies = [
[[package]]
name = "data-url"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"
+checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
[[package]]
name = "der"
@@ -1157,23 +1151,23 @@ dependencies = [
[[package]]
name = "deranged"
-version = "0.4.0"
+version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e"
+checksum = "a41953f86f8a05768a6cda24def994fd2f424b04ec5c719cf89989779f199071"
dependencies = [
"powerfmt",
- "serde",
+ "serde_core",
]
[[package]]
name = "derive_arbitrary"
-version = "1.4.1"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1186,7 +1180,7 @@ dependencies = [
"proc-macro2",
"quote",
"rustc_version",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1219,7 +1213,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1234,10 +1228,10 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
dependencies = [
- "bitflags 2.9.1",
- "block2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.3",
]
[[package]]
@@ -1248,7 +1242,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1257,7 +1251,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"
dependencies = [
- "libloading 0.8.8",
+ "libloading 0.8.9",
]
[[package]]
@@ -1280,7 +1274,7 @@ checksum = "788160fb30de9cdd857af31c6a2675904b16ece8fc2737b2c7127ba368c9d0f4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1360,14 +1354,14 @@ dependencies = [
[[package]]
name = "embed-resource"
-version = "3.0.5"
+version = "3.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6d81016d6c977deefb2ef8d8290da019e27cc26167e102185da528e6c0ab38"
+checksum = "55a075fc573c64510038d7ee9abc7990635863992f83ebc52c8b433b8411a02e"
dependencies = [
"cc",
"memchr",
"rustc_version",
- "toml 0.9.5",
+ "toml 0.9.7",
"vswhom",
"winreg 0.55.0",
]
@@ -1411,7 +1405,7 @@ checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1441,31 +1435,26 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "erased-serde"
-version = "0.4.6"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e004d887f51fcb9fef17317a2f3525c887d8aa3f4f50fed920816a688284a5b7"
+checksum = "259d404d09818dec19332e31d94558aeb442fea04c817006456c24b5460bbd4b"
dependencies = [
"serde",
+ "serde_core",
"typeid",
]
[[package]]
name = "errno"
-version = "0.3.13"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "euclid"
-version = "0.20.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2bb7ef65b3777a325d1eeefefab5b6d4959da54747e33bd6258e789640f307ad"
-dependencies = [
- "num-traits",
name = "etcetera"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1476,6 +1465,15 @@ dependencies = [
"windows-sys 0.48.0",
]
+[[package]]
+name = "euclid"
+version = "0.20.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bb7ef65b3777a325d1eeefefab5b6d4959da54747e33bd6258e789640f307ad"
+dependencies = [
+ "num-traits",
+]
+
[[package]]
name = "event-listener"
version = "5.4.1"
@@ -1545,20 +1543,26 @@ dependencies = [
[[package]]
name = "filetime"
-version = "0.2.25"
+version = "0.2.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"
+checksum = "bc0505cd1b6fa6580283f6bdf70a73fcf4aba1184038c90902b92b3dd0df63ed"
dependencies = [
"cfg-if",
"libc",
"libredox",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0399f9d26e5191ce32c498bebd31e7a3ceabc2745f0ac54af3f335126c3f24b3"
+
[[package]]
name = "fix-path-env"
version = "0.0.0"
-source = "git+https://github.com/tauri-apps/fix-path-env-rs#0e479e2804edc1a7e5f15ece2b48ee30858c2838"
+source = "git+https://github.com/tauri-apps/fix-path-env-rs#c4c45d503ea115a839aae718d02f79e7c7f0f673"
dependencies = [
"home",
"strip-ansi-escapes",
@@ -1567,9 +1571,9 @@ dependencies = [
[[package]]
name = "flate2"
-version = "1.1.2"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a3d7db9596fecd151c5f638c0ee5d5bd487b6e0ea232e5dc96d5250f6f94b1d"
+checksum = "dc5a4e564e38c699f2880d3fda590bedc2e69f3f84cd48b457bd892ce61d0aa9"
dependencies = [
"crc32fast",
"miniz_oxide",
@@ -1625,7 +1629,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1642,9 +1646,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
-version = "1.2.1"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
dependencies = [
"percent-encoding",
]
@@ -1745,7 +1749,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -1940,15 +1944,15 @@ dependencies = [
"js-sys",
"libc",
"r-efi",
- "wasi 0.14.2+wasi-0.2.4",
+ "wasi 0.14.7+wasi-0.2.4",
"wasm-bindgen",
]
[[package]]
name = "gimli"
-version = "0.31.1"
+version = "0.32.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
+checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
[[package]]
name = "gio"
@@ -1988,7 +1992,7 @@ version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"futures-channel",
"futures-core",
"futures-executor",
@@ -2012,11 +2016,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
dependencies = [
"heck 0.4.1",
- "proc-macro-crate 2.0.0",
+ "proc-macro-crate 2.0.2",
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2031,9 +2035,9 @@ dependencies = [
[[package]]
name = "glob"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
+checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
[[package]]
name = "gobject-sys"
@@ -2095,7 +2099,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -2110,7 +2114,7 @@ dependencies = [
"futures-sink",
"futures-util",
"http 0.2.12",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"slab",
"tokio",
"tokio-util",
@@ -2129,7 +2133,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http 1.3.1",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"slab",
"tokio",
"tokio-util",
@@ -2167,9 +2171,9 @@ dependencies = [
[[package]]
name = "hashbrown"
-version = "0.15.4"
+version = "0.15.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
dependencies = [
"allocator-api2",
"equivalent",
@@ -2177,13 +2181,10 @@ dependencies = [
]
[[package]]
-name = "hashlink"
-version = "0.10.0"
+name = "hashbrown"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
-dependencies = [
- "hashbrown 0.15.4",
-]
+checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d"
[[package]]
name = "hashlink"
@@ -2194,6 +2195,15 @@ dependencies = [
"hashbrown 0.14.5",
]
+[[package]]
+name = "hashlink"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1"
+dependencies = [
+ "hashbrown 0.15.5",
+]
+
[[package]]
name = "heck"
version = "0.4.1"
@@ -2386,19 +2396,21 @@ dependencies = [
[[package]]
name = "hyper"
-version = "1.6.0"
+version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
+checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e"
dependencies = [
+ "atomic-waker",
"bytes",
"futures-channel",
- "futures-util",
+ "futures-core",
"h2 0.4.12",
"http 1.3.1",
"http-body 1.0.1",
"httparse",
"itoa",
"pin-project-lite",
+ "pin-utils",
"smallvec",
"tokio",
"want",
@@ -2425,14 +2437,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
dependencies = [
"http 1.3.1",
- "hyper 1.6.0",
+ "hyper 1.7.0",
"hyper-util",
- "rustls 0.23.31",
+ "rustls 0.23.32",
"rustls-pki-types",
"tokio",
- "tokio-rustls 0.26.2",
+ "tokio-rustls 0.26.4",
"tower-service",
- "webpki-roots 1.0.2",
+ "webpki-roots 1.0.3",
]
[[package]]
@@ -2450,9 +2462,9 @@ dependencies = [
[[package]]
name = "hyper-util"
-version = "0.1.16"
+version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e"
+checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -2461,7 +2473,7 @@ dependencies = [
"futures-util",
"http 1.3.1",
"http-body 1.0.1",
- "hyper 1.6.0",
+ "hyper 1.7.0",
"ipnet",
"libc",
"percent-encoding",
@@ -2476,9 +2488,9 @@ dependencies = [
[[package]]
name = "iana-time-zone"
-version = "0.1.63"
+version = "0.1.64"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8"
+checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@@ -2486,7 +2498,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.61.2",
+ "windows-core 0.62.2",
]
[[package]]
@@ -2602,9 +2614,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
-version = "1.0.3"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
dependencies = [
"idna_adapter",
"smallvec",
@@ -2634,13 +2646,14 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.10.0"
+version = "2.11.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
+checksum = "4b0f83760fb341a774ed326568e19f5a863af4a952def8c39f9ab92fd95b88e5"
dependencies = [
"equivalent",
- "hashbrown 0.15.4",
+ "hashbrown 0.16.0",
"serde",
+ "serde_core",
]
[[package]]
@@ -2672,11 +2685,11 @@ dependencies = [
[[package]]
name = "io-uring"
-version = "0.7.9"
+version = "0.7.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
+checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"libc",
]
@@ -2796,9 +2809,9 @@ dependencies = [
[[package]]
name = "js-sys"
-version = "0.3.77"
+version = "0.3.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
+checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305"
dependencies = [
"once_cell",
"wasm-bindgen",
@@ -2832,7 +2845,7 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"serde",
"unicode-segmentation",
]
@@ -2845,7 +2858,7 @@ checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"
dependencies = [
"cssparser",
"html5ever 0.29.1",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"selectors",
]
@@ -2884,9 +2897,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.174"
+version = "0.2.176"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
+checksum = "58f929b4d672ea937a23a1ab494143d968337a5f47e56d0815df1e0890ddf174"
[[package]]
name = "libloading"
@@ -2900,12 +2913,12 @@ dependencies = [
[[package]]
name = "libloading"
-version = "0.8.8"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
dependencies = [
"cfg-if",
- "windows-targets 0.53.3",
+ "windows-link 0.2.1",
]
[[package]]
@@ -2916,11 +2929,11 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de"
[[package]]
name = "libredox"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "391290121bad3d37fbddad76d8f5d1c1c314cfc646d143d7e07a3086ddff0ce3"
+checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"libc",
"redox_syscall",
]
@@ -2938,9 +2951,9 @@ dependencies = [
[[package]]
name = "linux-raw-sys"
-version = "0.9.4"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
+checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
[[package]]
name = "litemap"
@@ -2956,19 +2969,18 @@ checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed"
[[package]]
name = "lock_api"
-version = "0.4.13"
+version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
dependencies = [
- "autocfg",
"scopeguard",
]
[[package]]
name = "log"
-version = "0.4.27"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
+checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
dependencies = [
"value-bag",
]
@@ -2981,7 +2993,7 @@ checksum = "c5c8ecfc6c72051981c0459f75ccc585e7ff67c70829560cda8e647882a9abff"
dependencies = [
"encoding_rs",
"flate2",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"itoa",
"log",
"md-5",
@@ -3048,7 +3060,7 @@ checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3069,9 +3081,9 @@ dependencies = [
[[package]]
name = "memchr"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
+checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
[[package]]
name = "memoffset"
@@ -3131,14 +3143,14 @@ dependencies = [
"dpi",
"gtk",
"keyboard-types",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"once_cell",
"png",
"serde",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"windows-sys 0.60.2",
]
@@ -3165,7 +3177,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"jni-sys",
"log",
"ndk-sys",
@@ -3201,7 +3213,7 @@ version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"cfg_aliases",
"libc",
@@ -3302,10 +3314,10 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3323,8 +3335,8 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9bff0aa1d48904a1385ea2a8b97576fbdcbc9a3cfccd0d31fe978e1c4038c5"
dependencies = [
- "bitflags 2.9.1",
- "libloading 0.8.8",
+ "bitflags 2.9.4",
+ "libloading 0.8.9",
"nvml-wrapper-sys",
"static_assertions",
"thiserror 1.0.69",
@@ -3337,7 +3349,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "698d45156f28781a4e79652b6ebe2eaa0589057d588d3aec1333f6466f13fcb5"
dependencies = [
- "libloading 0.8.8",
+ "libloading 0.8.9",
]
[[package]]
@@ -3367,9 +3379,9 @@ dependencies = [
[[package]]
name = "objc2"
-version = "0.6.1"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "88c6597e14493ab2e44ce58f2fdecf095a51f12ca57bec060a11c57332520551"
+checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
dependencies = [
"objc2-encode",
"objc2-exception-helper",
@@ -3377,77 +3389,104 @@ dependencies = [
[[package]]
name = "objc2-app-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
dependencies = [
- "bitflags 2.9.1",
- "block2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-cloud-kit",
"objc2-core-data",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-core-image",
- "objc2-foundation 0.3.1",
- "objc2-quartz-core 0.3.1",
+ "objc2-core-text",
+ "objc2-core-video",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
]
[[package]]
name = "objc2-cloud-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17614fdcd9b411e6ff1117dfb1d0150f908ba83a7df81b1f118005fe0a8ea15d"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-core-data"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "291fbbf7d29287518e8686417cf7239c74700fd4b607623140a7d4a3c834329d"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-core-foundation"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.3",
]
[[package]]
name = "objc2-core-graphics"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "989c6c68c13021b5c2d6b71456ebb0f9dc78d752e86a98da7c716f4f9470f5a4"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"dispatch2",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-core-foundation",
"objc2-io-surface",
]
[[package]]
name = "objc2-core-image"
-version = "0.3.1"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-core-video"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79b3dc0cc4386b6ccf21c157591b34a7f44c8e75b064f85502901ab2188c007e"
+checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"
dependencies = [
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-io-surface",
]
[[package]]
@@ -3471,7 +3510,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"libc",
"objc2 0.5.2",
@@ -3479,35 +3518,35 @@ dependencies = [
[[package]]
name = "objc2-foundation"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "900831247d2fe1a09a683278e5384cfb8c80c79fe6b166f9d14bfdde0ea1b03c"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
- "bitflags 2.9.1",
- "block2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
"libc",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-core-foundation",
]
[[package]]
name = "objc2-io-surface"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7282e9ac92529fa3457ce90ebb15f4ecbc383e8338060960760fa2cf75420c3c"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
"objc2-core-foundation",
]
[[package]]
name = "objc2-javascript-core"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9052cb1bb50a4c161d934befcf879526fb87ae9a68858f241e693ca46225cf5a"
+checksum = "2a1e6550c4caed348956ce3370c9ffeca70bb1dbed4fa96112e7c6170e074586"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-core-foundation",
]
@@ -3517,7 +3556,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -3525,14 +3564,14 @@ dependencies = [
[[package]]
name = "objc2-osa-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26bb88504b5a050dbba515d2414607bf5e57dd56b107bc5f0351197a3e7bdc5d"
+checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
"objc2-app-kit",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
]
[[package]]
@@ -3541,7 +3580,7 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"block2 0.5.1",
"objc2 0.5.2",
"objc2-foundation 0.2.2",
@@ -3550,59 +3589,59 @@ dependencies = [
[[package]]
name = "objc2-quartz-core"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90ffb6a0cd5f182dc964334388560b12a57f7b74b3e2dec5e2722aa2dfb2ccd5"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-security"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1f8e0ef3ab66b08c42644dcb34dba6ec0a574bbd8adbb8bdbdc7a2779731a44"
+checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
"objc2-core-foundation",
]
[[package]]
name = "objc2-ui-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25b1312ad7bc8a0e92adae17aa10f90aae1fb618832f9b993b022b591027daed"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
dependencies = [
- "bitflags 2.9.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "objc2 0.6.3",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-web-kit"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91672909de8b1ce1c2252e95bbee8c1649c9ad9d14b9248b3d7b4c47903c47ad"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
dependencies = [
- "bitflags 2.9.1",
- "block2 0.6.1",
- "objc2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"objc2-javascript-core",
"objc2-security",
]
[[package]]
name = "object"
-version = "0.36.7"
+version = "0.37.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
+checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe"
dependencies = [
"memchr",
]
@@ -3631,7 +3670,7 @@ version = "0.10.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"cfg-if",
"foreign-types 0.3.2",
"libc",
@@ -3648,7 +3687,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -3659,9 +3698,9 @@ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
[[package]]
name = "openssl-src"
-version = "300.5.2+3.5.2"
+version = "300.5.3+3.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d270b79e2926f5150189d475bc7e9d2c69f9c4697b185fa917d5a32b792d21b4"
+checksum = "dc6bad8cd0233b63971e232cc9c5e83039375b8586d2312f31fda85db8f888c2"
dependencies = [
"cc",
]
@@ -3733,12 +3772,12 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
dependencies = [
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
"objc2-osa-kit",
"serde",
"serde_json",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
]
[[package]]
@@ -3774,9 +3813,9 @@ checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
[[package]]
name = "parking_lot"
-version = "0.12.4"
+version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
dependencies = [
"lock_api",
"parking_lot_core",
@@ -3784,15 +3823,15 @@ dependencies = [
[[package]]
name = "parking_lot_core"
-version = "0.9.11"
+version = "0.9.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
dependencies = [
"cfg-if",
"libc",
"redox_syscall",
"smallvec",
- "windows-targets 0.52.6",
+ "windows-link 0.2.1",
]
[[package]]
@@ -3843,6 +3882,9 @@ dependencies = [
"postscript",
"type1-encoding-parser",
"unicode-normalization",
+]
+
+[[package]]
name = "pem-rfc7468"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3853,9 +3895,9 @@ dependencies = [
[[package]]
name = "percent-encoding"
-version = "2.3.1"
+version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
[[package]]
name = "phf"
@@ -3971,7 +4013,7 @@ dependencies = [
"phf_shared 0.11.3",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -4053,13 +4095,13 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]]
name = "plist"
-version = "1.7.4"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3af6b589e163c5a788fab00ce0c0366f6efbb9959c2f9874b224936af7fce7e1"
+checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"
dependencies = [
"base64 0.22.1",
- "indexmap 2.10.0",
- "quick-xml 0.38.1",
+ "indexmap 2.11.4",
+ "quick-xml 0.38.3",
"serde",
"time",
]
@@ -4079,16 +4121,16 @@ dependencies = [
[[package]]
name = "polling"
-version = "3.10.0"
+version = "3.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5bd19146350fe804f7cb2669c851c03d69da628803dab0d98018142aaa5d829"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
dependencies = [
"cfg-if",
"concurrent-queue",
"hermit-abi",
"pin-project-lite",
"rustix",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4105,9 +4147,9 @@ checksum = "78451badbdaebaf17f053fd9152b3ffb33b516104eacb45e7864aaa9c712f306"
[[package]]
name = "potential_utf"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
+checksum = "84df19adbe5b5a0782edcab45899906947ab039ccf4573713735ee7de1e6b08a"
dependencies = [
"zerovec",
]
@@ -4145,20 +4187,21 @@ dependencies = [
[[package]]
name = "proc-macro-crate"
-version = "2.0.0"
+version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
dependencies = [
- "toml_edit 0.20.7",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
]
[[package]]
name = "proc-macro-crate"
-version = "3.3.0"
+version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
+checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
dependencies = [
- "toml_edit 0.22.27",
+ "toml_edit 0.23.6",
]
[[package]]
@@ -4193,9 +4236,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]]
name = "proc-macro2"
-version = "1.0.95"
+version = "1.0.101"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
+checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
dependencies = [
"unicode-ident",
]
@@ -4207,7 +4250,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3ef4f2f0422f23a82ec9f628ea2acd12871c81a9362b02c43c1aa86acfc3ba1"
dependencies = [
"futures",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"nix",
"tokio",
"tracing",
@@ -4272,18 +4315,18 @@ dependencies = [
[[package]]
name = "quick-xml"
-version = "0.38.1"
+version = "0.38.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9845d9dccf565065824e69f9f235fafba1587031eda353c1f1561cd6a6be78f4"
+checksum = "42a232e7487fc2ef313d96dde7948e7a3c05101870d8985e4fd8d26aedd27b89"
dependencies = [
"memchr",
]
[[package]]
name = "quinn"
-version = "0.11.8"
+version = "0.11.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "626214629cda6781b6dc1d316ba307189c85ba657213ce642d9c77670f8202c8"
+checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"
dependencies = [
"bytes",
"cfg_aliases",
@@ -4291,9 +4334,9 @@ dependencies = [
"quinn-proto",
"quinn-udp",
"rustc-hash",
- "rustls 0.23.31",
- "socket2 0.5.10",
- "thiserror 2.0.12",
+ "rustls 0.23.32",
+ "socket2 0.6.0",
+ "thiserror 2.0.17",
"tokio",
"tracing",
"web-time",
@@ -4301,9 +4344,9 @@ dependencies = [
[[package]]
name = "quinn-proto"
-version = "0.11.12"
+version = "0.11.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e"
+checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31"
dependencies = [
"bytes",
"getrandom 0.3.3",
@@ -4311,10 +4354,10 @@ dependencies = [
"rand 0.9.2",
"ring",
"rustc-hash",
- "rustls 0.23.31",
+ "rustls 0.23.32",
"rustls-pki-types",
"slab",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tinyvec",
"tracing",
"web-time",
@@ -4322,23 +4365,23 @@ dependencies = [
[[package]]
name = "quinn-udp"
-version = "0.5.13"
+version = "0.5.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcebb1209ee276352ef14ff8732e24cc2b02bbac986cd74a4c81bcb2f9881970"
+checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"
dependencies = [
"cfg_aliases",
"libc",
"once_cell",
- "socket2 0.5.10",
+ "socket2 0.6.0",
"tracing",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "quote"
-version = "1.0.40"
+version = "1.0.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
+checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
dependencies = [
"proc-macro2",
]
@@ -4485,11 +4528,11 @@ checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
[[package]]
name = "redox_syscall"
-version = "0.5.17"
+version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5407465600fb0548f1442edf71dd20683c6ed326200ace4b1ef0763521bb3b77"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
]
[[package]]
@@ -4500,34 +4543,34 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
"getrandom 0.2.16",
"libredox",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
]
[[package]]
name = "ref-cast"
-version = "1.0.24"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf"
+checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"
dependencies = [
"ref-cast-impl",
]
[[package]]
name = "ref-cast-impl"
-version = "1.0.24"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7"
+checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "regex"
-version = "1.11.1"
+version = "1.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
+checksum = "8b5288124840bee7b386bc413c487869b360b2b4ec421ea56425128692f2a82c"
dependencies = [
"aho-corasick",
"memchr",
@@ -4537,9 +4580,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.9"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
+checksum = "833eb9ce86d40ef33cb1306d8accf7bc8ec2bfea4355cbdebb3df68b40925cad"
dependencies = [
"aho-corasick",
"memchr",
@@ -4548,9 +4591,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.5"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
+checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
[[package]]
name = "rend"
@@ -4609,9 +4652,9 @@ dependencies = [
[[package]]
name = "reqwest"
-version = "0.12.22"
+version = "0.12.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cbc931937e6ca3a06e3b6c0aa7841849b160a90351d6ab467a8b9b9959767531"
+checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
dependencies = [
"base64 0.22.1",
"bytes",
@@ -4624,7 +4667,7 @@ dependencies = [
"http 1.3.1",
"http-body 1.0.1",
"http-body-util",
- "hyper 1.6.0",
+ "hyper 1.7.0",
"hyper-rustls 0.27.7",
"hyper-util",
"js-sys",
@@ -4633,14 +4676,14 @@ dependencies = [
"percent-encoding",
"pin-project-lite",
"quinn",
- "rustls 0.23.31",
+ "rustls 0.23.32",
"rustls-pki-types",
"serde",
"serde_json",
"serde_urlencoded",
"sync_wrapper 1.0.2",
"tokio",
- "tokio-rustls 0.26.2",
+ "tokio-rustls 0.26.4",
"tokio-util",
"tower",
"tower-http",
@@ -4650,7 +4693,7 @@ dependencies = [
"wasm-bindgen-futures",
"wasm-streams",
"web-sys",
- "webpki-roots 1.0.2",
+ "webpki-roots 1.0.3",
]
[[package]]
@@ -4660,17 +4703,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed"
dependencies = [
"ashpd",
- "block2 0.6.1",
+ "block2 0.6.2",
"dispatch2",
"glib-sys",
"gobject-sys",
"gtk-sys",
"js-sys",
"log",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"raw-window-handle 0.6.2",
"wasm-bindgen",
"wasm-bindgen-futures",
@@ -4723,9 +4766,9 @@ dependencies = [
[[package]]
name = "rmcp"
-version = "0.6.0"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb21cd3555f1059f27e4813827338dec44429a08ecd0011acc41d9907b160c00"
+checksum = "41ab0892f4938752b34ae47cb53910b1b0921e55e77ddb6e44df666cab17939f"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -4734,13 +4777,13 @@ dependencies = [
"paste",
"pin-project-lite",
"process-wrap",
- "reqwest 0.12.22",
+ "reqwest 0.12.23",
"rmcp-macros",
"schemars 1.0.4",
"serde",
"serde_json",
"sse-stream",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"tokio-stream",
"tokio-util",
@@ -4750,29 +4793,18 @@ dependencies = [
[[package]]
name = "rmcp-macros"
-version = "0.6.0"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab5d16ae1ff3ce2c5fd86c37047b2869b75bec795d53a4b1d8257b15415a2354"
+checksum = "1827cd98dab34cade0513243c6fe0351f0f0b2c9d6825460bcf45b42804bdda0"
dependencies = [
- "darling 0.21.2",
+ "darling 0.21.3",
"proc-macro2",
"quote",
"serde_json",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
-name = "rusqlite"
-version = "0.32.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e"
-dependencies = [
- "bitflags 2.9.1",
- "fallible-iterator",
- "fallible-streaming-iterator",
- "hashlink",
- "libsqlite3-sys",
- "smallvec",
name = "rsa"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4792,11 +4824,25 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "rusqlite"
+version = "0.32.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e"
+dependencies = [
+ "bitflags 2.9.4",
+ "fallible-iterator",
+ "fallible-streaming-iterator",
+ "hashlink 0.9.1",
+ "libsqlite3-sys",
+ "smallvec",
+]
+
[[package]]
name = "rust-ini"
-version = "0.21.2"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7295b7ce3bf4806b419dc3420745998b447178b7005e2011947b38fc5aa6791"
+checksum = "796e8d2b6696392a43bea58116b667fb4c29727dc5abd27d6acf338bb4f688c7"
dependencies = [
"cfg-if",
"ordered-multimap",
@@ -4804,9 +4850,9 @@ dependencies = [
[[package]]
name = "rust_decimal"
-version = "1.37.2"
+version = "1.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b203a6425500a03e0919c42d3c47caca51e79f1132046626d2c8871c5092035d"
+checksum = "c8975fc98059f365204d635119cf9c5a60ae67b841ed49b5422a9a7e56cdfac0"
dependencies = [
"arrayvec",
"borsh",
@@ -4841,15 +4887,15 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.0.8"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8"
+checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4866,14 +4912,14 @@ dependencies = [
[[package]]
name = "rustls"
-version = "0.23.31"
+version = "0.23.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0ebcbd2f03de0fc1122ad9bb24b127a5a6cd51d72604a3f3c50ac459762b6cc"
+checksum = "cd3c25631629d034ce7cd9940adc9d45762d46de2b0f57193c4443b92c6d4d40"
dependencies = [
"once_cell",
"ring",
"rustls-pki-types",
- "rustls-webpki 0.103.4",
+ "rustls-webpki 0.103.7",
"subtle",
"zeroize",
]
@@ -4909,9 +4955,9 @@ dependencies = [
[[package]]
name = "rustls-webpki"
-version = "0.103.4"
+version = "0.103.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a17884ae0c1b773f1ccd2bd4a8c72f16da897310a98b0e84bf349ad5ead92fc"
+checksum = "e10b3f4191e8a80e6b43eebabfac91e5dcecebb27a71f04e820c47ec41d314bf"
dependencies = [
"ring",
"rustls-pki-types",
@@ -4920,9 +4966,9 @@ dependencies = [
[[package]]
name = "rustversion"
-version = "1.0.21"
+version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "ryu"
@@ -4941,11 +4987,11 @@ dependencies = [
[[package]]
name = "schannel"
-version = "0.1.27"
+version = "0.1.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
+checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4998,7 +5044,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5010,7 +5056,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5047,7 +5093,7 @@ version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.9.4",
"core-foundation-sys",
"libc",
@@ -5056,9 +5102,9 @@ dependencies = [
[[package]]
name = "security-framework-sys"
-version = "2.14.0"
+version = "2.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
+checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0"
dependencies = [
"core-foundation-sys",
"libc",
@@ -5084,42 +5130,54 @@ dependencies = [
[[package]]
name = "semver"
-version = "1.0.26"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
+checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
dependencies = [
"serde",
+ "serde_core",
]
[[package]]
name = "serde"
-version = "1.0.219"
+version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
+checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
dependencies = [
+ "serde_core",
"serde_derive",
]
[[package]]
name = "serde-untagged"
-version = "0.1.7"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "299d9c19d7d466db4ab10addd5703e4c615dec2a5a16dbbafe191045e87ee66e"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
dependencies = [
"erased-serde",
"serde",
+ "serde_core",
"typeid",
]
+[[package]]
+name = "serde_core"
+version = "1.0.228"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+dependencies = [
+ "serde_derive",
+]
+
[[package]]
name = "serde_derive"
-version = "1.0.219"
+version = "1.0.228"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
+checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5130,19 +5188,20 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "serde_json"
-version = "1.0.142"
+version = "1.0.145"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "030fedb782600dcbd6f02d479bf0d817ac3bb40d644745b769d6a96bc3afc5a7"
+checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
dependencies = [
"itoa",
"memchr",
"ryu",
"serde",
+ "serde_core",
]
[[package]]
@@ -5153,7 +5212,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5167,11 +5226,11 @@ dependencies = [
[[package]]
name = "serde_spanned"
-version = "1.0.0"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40734c41988f7306bb04f0ecf60ec0f3f1caa34290e4e8ea471dcd3346483b83"
+checksum = "5417783452c2be558477e104686f7de5dae53dba813c28435e0e70f82d9b04ee"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -5188,19 +5247,18 @@ dependencies = [
[[package]]
name = "serde_with"
-version = "3.14.0"
+version = "3.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5"
+checksum = "6093cd8c01b25262b84927e0f7151692158fab02d961e04c979d3903eba7ecc5"
dependencies = [
"base64 0.22.1",
"chrono",
"hex",
"indexmap 1.9.3",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"schemars 0.9.0",
"schemars 1.0.4",
- "serde",
- "serde_derive",
+ "serde_core",
"serde_json",
"serde_with_macros",
"time",
@@ -5208,14 +5266,14 @@ dependencies = [
[[package]]
name = "serde_with_macros"
-version = "3.14.0"
+version = "3.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f"
+checksum = "a7e6c180db0816026a61afa1cff5344fb7ebded7e4d3062772179f2501481c27"
dependencies = [
- "darling 0.20.11",
+ "darling 0.21.3",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5224,7 +5282,7 @@ version = "0.9.34+deprecated"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
dependencies = [
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"itoa",
"ryu",
"serde",
@@ -5250,7 +5308,7 @@ checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5368,9 +5426,9 @@ checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
[[package]]
name = "slab"
-version = "0.4.10"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d"
+checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
[[package]]
name = "smallvec"
@@ -5497,9 +5555,9 @@ dependencies = [
"futures-intrusive",
"futures-io",
"futures-util",
- "hashbrown 0.15.4",
- "hashlink",
- "indexmap 2.10.0",
+ "hashbrown 0.15.5",
+ "hashlink 0.10.0",
+ "indexmap 2.11.4",
"log",
"memchr",
"once_cell",
@@ -5508,7 +5566,7 @@ dependencies = [
"serde_json",
"sha2",
"smallvec",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"tokio-stream",
"tracing",
@@ -5525,7 +5583,7 @@ dependencies = [
"quote",
"sqlx-core",
"sqlx-macros-core",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5548,7 +5606,7 @@ dependencies = [
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
- "syn 2.0.104",
+ "syn 2.0.106",
"tokio",
"url",
]
@@ -5561,7 +5619,7 @@ checksum = "aa003f0038df784eb8fecbbac13affe3da23b45194bd57dba231c8f48199c526"
dependencies = [
"atoi",
"base64 0.22.1",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"byteorder",
"bytes",
"crc",
@@ -5590,7 +5648,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tracing",
"whoami",
]
@@ -5603,7 +5661,7 @@ checksum = "db58fcd5a53cf07c184b154801ff91347e4c30d17a3562a635ff028ad5deda46"
dependencies = [
"atoi",
"base64 0.22.1",
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"byteorder",
"crc",
"dotenvy",
@@ -5627,7 +5685,7 @@ dependencies = [
"smallvec",
"sqlx-core",
"stringprep",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tracing",
"whoami",
]
@@ -5651,7 +5709,7 @@ dependencies = [
"serde",
"serde_urlencoded",
"sqlx-core",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tracing",
"url",
]
@@ -5762,9 +5820,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.104"
+version = "2.0.106"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
+checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
dependencies = [
"proc-macro2",
"quote",
@@ -5794,7 +5852,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5836,7 +5894,7 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"core-foundation 0.9.4",
"system-configuration-sys 0.6.0",
]
@@ -5870,7 +5928,7 @@ dependencies = [
"cfg-expr",
"heck 0.5.0",
"pkg-config",
- "toml 0.8.23",
+ "toml 0.8.2",
"version-compare",
]
@@ -5880,8 +5938,8 @@ version = "0.34.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "959469667dbcea91e5485fc48ba7dd6023face91bb0f1a14681a70f99847c3f7"
dependencies = [
- "bitflags 2.9.1",
- "block2 0.6.1",
+ "bitflags 2.9.4",
+ "block2 0.6.2",
"core-foundation 0.10.1",
"core-graphics",
"crossbeam-channel",
@@ -5898,9 +5956,9 @@ dependencies = [
"ndk",
"ndk-context",
"ndk-sys",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"once_cell",
"parking_lot",
"raw-window-handle 0.6.2",
@@ -5922,7 +5980,7 @@ checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -5971,15 +6029,15 @@ dependencies = [
"log",
"mime",
"muda",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"objc2-ui-kit",
"objc2-web-kit",
"percent-encoding",
"plist",
"raw-window-handle 0.6.2",
- "reqwest 0.12.22",
+ "reqwest 0.12.23",
"serde",
"serde_json",
"serde_repr",
@@ -5990,7 +6048,7 @@ dependencies = [
"tauri-runtime",
"tauri-runtime-wry",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"tray-icon",
"url",
@@ -6019,7 +6077,7 @@ dependencies = [
"serde_json",
"tauri-utils",
"tauri-winres",
- "toml 0.9.5",
+ "toml 0.9.7",
"walkdir",
]
@@ -6040,9 +6098,9 @@ dependencies = [
"serde",
"serde_json",
"sha2",
- "syn 2.0.104",
+ "syn 2.0.106",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"time",
"url",
"uuid",
@@ -6058,7 +6116,7 @@ dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"tauri-codegen",
"tauri-utils",
]
@@ -6076,7 +6134,7 @@ dependencies = [
"serde",
"serde_json",
"tauri-utils",
- "toml 0.9.5",
+ "toml 0.9.7",
"walkdir",
]
@@ -6094,7 +6152,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tracing",
"url",
"windows-registry",
@@ -6103,9 +6161,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-dialog"
-version = "2.3.2"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37e5858cc7b455a73ab4ea2ebc08b5be33682c00ff1bf4cad5537d4fb62499d9"
+checksum = "0beee42a4002bc695550599b011728d9dfabf82f767f134754ed6655e434824e"
dependencies = [
"log",
"raw-window-handle 0.6.2",
@@ -6115,15 +6173,15 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-plugin-fs",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"url",
]
[[package]]
name = "tauri-plugin-fs"
-version = "2.4.1"
+version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c6ef84ee2f2094ce093e55106d90d763ba343fad57566992962e8f76d113f99"
+checksum = "315784ec4be45e90a987687bae7235e6be3d6e9e350d2b75c16b8a4bf22c1db7"
dependencies = [
"anyhow",
"dunce",
@@ -6136,8 +6194,8 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.12",
- "toml 0.8.23",
+ "thiserror 2.0.17",
+ "toml 0.9.7",
"url",
]
@@ -6147,7 +6205,7 @@ version = "0.6.599"
dependencies = [
"ash",
"libc",
- "libloading 0.8.8",
+ "libloading 0.8.9",
"log",
"nvml-wrapper",
"serde",
@@ -6160,23 +6218,23 @@ dependencies = [
[[package]]
name = "tauri-plugin-http"
-version = "2.5.1"
+version = "2.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcde333d97e565a7765aad82f32d8672458f7bd77b6ee653830d5dded9d7b5c2"
+checksum = "938a3d7051c9a82b431e3a0f3468f85715b3442b3c3a3913095e9fa509e2652c"
dependencies = [
"bytes",
"cookie_store",
"data-url",
"http 1.3.1",
"regex",
- "reqwest 0.12.22",
+ "reqwest 0.12.23",
"schemars 0.8.22",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
"tauri-plugin-fs",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"url",
"urlpattern",
@@ -6200,49 +6258,49 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-plugin-hardware",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
]
[[package]]
name = "tauri-plugin-log"
-version = "2.6.0"
+version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a59139183e0907cec1499dddee4e085f5a801dc659efa0848ee224f461371426"
+checksum = "61c1438bc7662acd16d508c919b3c087efd63669a4c75625dff829b1c75975ec"
dependencies = [
"android_logger",
"byte-unit",
"fern",
"log",
- "objc2 0.6.1",
- "objc2-foundation 0.3.1",
+ "objc2 0.6.3",
+ "objc2-foundation 0.3.2",
"serde",
"serde_json",
"serde_repr",
"swift-rs",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"time",
]
[[package]]
name = "tauri-plugin-opener"
-version = "2.4.0"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecee219f11cdac713ab32959db5d0cceec4810ba4f4458da992292ecf9660321"
+checksum = "786156aa8e89e03d271fbd3fe642207da8e65f3c961baa9e2930f332bf80a1f5"
dependencies = [
"dunce",
"glob",
"objc2-app-kit",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"open",
"schemars 0.8.22",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"url",
"windows 0.61.3",
"zbus",
@@ -6263,7 +6321,7 @@ dependencies = [
"sys-locale",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
]
[[package]]
@@ -6283,16 +6341,16 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"zip 0.6.6",
]
[[package]]
name = "tauri-plugin-shell"
-version = "2.3.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b9ffadec5c3523f11e8273465cacb3d86ea7652a28e6e2a2e9b5c182f791d25"
+checksum = "54777d0c0d8add34eea3ced84378619ef5b97996bd967d3038c668feefd21071"
dependencies = [
"encoding_rs",
"log",
@@ -6305,7 +6363,7 @@ dependencies = [
"shared_child",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
]
@@ -6319,7 +6377,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin-deep-link",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tracing",
"windows-sys 0.60.2",
"zbus",
@@ -6327,16 +6385,16 @@ dependencies = [
[[package]]
name = "tauri-plugin-store"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5916c609664a56c82aeaefffca9851fd072d4d41f73d63f22ee3ee451508194f"
+checksum = "d85dd80d60a76ee2c2fdce09e9ef30877b239c2a6bb76e6d7d03708aa5f13a19"
dependencies = [
"dunce",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"tracing",
]
@@ -6357,7 +6415,7 @@ dependencies = [
"minisign-verify",
"osakit",
"percent-encoding",
- "reqwest 0.12.22",
+ "reqwest 0.12.23",
"semver",
"serde",
"serde_json",
@@ -6365,12 +6423,12 @@ dependencies = [
"tauri",
"tauri-plugin",
"tempfile",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"time",
"tokio",
"url",
"windows-sys 0.60.2",
- "zip 4.3.0",
+ "zip 4.6.1",
]
[[package]]
@@ -6384,7 +6442,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"tokio",
"uuid",
]
@@ -6400,14 +6458,14 @@ dependencies = [
"gtk",
"http 1.3.1",
"jni",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-ui-kit",
"objc2-web-kit",
"raw-window-handle 0.6.2",
"serde",
"serde_json",
"tauri-utils",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"url",
"webkit2gtk",
"webview2-com",
@@ -6424,9 +6482,9 @@ dependencies = [
"http 1.3.1",
"jni",
"log",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"once_cell",
"percent-encoding",
"raw-window-handle 0.6.2",
@@ -6470,8 +6528,8 @@ dependencies = [
"serde_json",
"serde_with",
"swift-rs",
- "thiserror 2.0.12",
- "toml 0.9.5",
+ "thiserror 2.0.17",
+ "toml 0.9.7",
"url",
"urlpattern",
"uuid",
@@ -6480,26 +6538,25 @@ dependencies = [
[[package]]
name = "tauri-winres"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c6d9028d41d4de835e3c482c677a8cb88137ac435d6ff9a71f392d4421576c9"
+checksum = "fd21509dd1fa9bd355dc29894a6ff10635880732396aa38c0066c1e6c1ab8074"
dependencies = [
"embed-resource",
- "indexmap 2.10.0",
- "toml 0.9.5",
+ "toml 0.9.7",
]
[[package]]
name = "tempfile"
-version = "3.20.0"
+version = "3.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1"
+checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"
dependencies = [
"fastrand",
"getrandom 0.3.3",
"once_cell",
"rustix",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -6524,11 +6581,11 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.12"
+version = "2.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
+checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
dependencies = [
- "thiserror-impl 2.0.12",
+ "thiserror-impl 2.0.17",
]
[[package]]
@@ -6539,18 +6596,18 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.12"
+version = "2.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
+checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -6564,9 +6621,9 @@ dependencies = [
[[package]]
name = "time"
-version = "0.3.41"
+version = "0.3.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40"
+checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d"
dependencies = [
"deranged",
"itoa",
@@ -6581,15 +6638,15 @@ dependencies = [
[[package]]
name = "time-core"
-version = "0.1.4"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c"
+checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b"
[[package]]
name = "time-macros"
-version = "0.2.22"
+version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49"
+checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3"
dependencies = [
"num-conv",
"time-core",
@@ -6616,9 +6673,9 @@ dependencies = [
[[package]]
name = "tinyvec"
-version = "1.9.0"
+version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71"
+checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
dependencies = [
"tinyvec_macros",
]
@@ -6658,7 +6715,7 @@ checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -6683,11 +6740,11 @@ dependencies = [
[[package]]
name = "tokio-rustls"
-version = "0.26.2"
+version = "0.26.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
+checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
dependencies = [
- "rustls 0.23.31",
+ "rustls 0.23.32",
"tokio",
]
@@ -6717,47 +6774,47 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.8.23"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
dependencies = [
"serde",
"serde_spanned 0.6.9",
- "toml_datetime 0.6.11",
- "toml_edit 0.22.27",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
]
[[package]]
name = "toml"
-version = "0.9.5"
+version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75129e1dc5000bfbaa9fee9d1b21f974f9fbad9daec557a521ee6e080825f6e8"
+checksum = "00e5e5d9bf2475ac9d4f0d9edab68cc573dc2fd644b0dba36b0c30a92dd9eaa0"
dependencies = [
- "indexmap 2.10.0",
- "serde",
- "serde_spanned 1.0.0",
- "toml_datetime 0.7.0",
+ "indexmap 2.11.4",
+ "serde_core",
+ "serde_spanned 1.0.2",
+ "toml_datetime 0.7.2",
"toml_parser",
"toml_writer",
- "winnow 0.7.12",
+ "winnow 0.7.13",
]
[[package]]
name = "toml_datetime"
-version = "0.6.11"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
dependencies = [
"serde",
]
[[package]]
name = "toml_datetime"
-version = "0.7.0"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bade1c3e902f58d73d3f294cd7f20391c1cb2fbcb643b73566bc773971df91e3"
+checksum = "32f1085dec27c2b6632b04c80b3bb1b4300d6495d1e129693bdda7d91e72eec1"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -6766,56 +6823,50 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.10.0",
- "toml_datetime 0.6.11",
+ "indexmap 2.11.4",
+ "toml_datetime 0.6.3",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.20.7"
+version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
dependencies = [
- "indexmap 2.10.0",
- "toml_datetime 0.6.11",
+ "indexmap 2.11.4",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
-version = "0.22.27"
+version = "0.23.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
+checksum = "f3effe7c0e86fdff4f69cdd2ccc1b96f933e24811c5441d44904e8683e27184b"
dependencies = [
- "indexmap 2.10.0",
- "serde",
- "serde_spanned 0.6.9",
- "toml_datetime 0.6.11",
- "toml_write",
- "winnow 0.7.12",
+ "indexmap 2.11.4",
+ "toml_datetime 0.7.2",
+ "toml_parser",
+ "winnow 0.7.13",
]
[[package]]
name = "toml_parser"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b551886f449aa90d4fe2bdaa9f4a2577ad2dde302c61ecf262d80b116db95c10"
+checksum = "4cf893c33be71572e0e9aa6dd15e6677937abd686b066eac3f8cd3531688a627"
dependencies = [
- "winnow 0.7.12",
+ "winnow 0.7.13",
]
-[[package]]
-name = "toml_write"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
-
[[package]]
name = "toml_writer"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcc842091f2def52017664b53082ecbbeb5c7731092bad69d2c63050401dfd64"
+checksum = "d163a63c116ce562a22cda521fcc4d79152e7aba014456fb5eb442f6d6a10109"
[[package]]
name = "tower"
@@ -6838,7 +6889,7 @@ version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"bytes",
"futures-util",
"http 1.3.1",
@@ -6882,7 +6933,7 @@ checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -6904,15 +6955,15 @@ dependencies = [
"dirs",
"libappindicator",
"muda",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-core-graphics",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"once_cell",
"png",
"serde",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"windows-sys 0.59.0",
]
@@ -6939,9 +6990,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "typenum"
-version = "1.18.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f"
+checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
[[package]]
name = "uds_windows"
@@ -7003,9 +7054,9 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
[[package]]
name = "unicode-ident"
-version = "1.0.18"
+version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
+checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
[[package]]
name = "unicode-normalization"
@@ -7048,9 +7099,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
-version = "2.5.4"
+version = "2.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
+checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
dependencies = [
"form_urlencoded",
"idna",
@@ -7090,9 +7141,9 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
[[package]]
name = "uuid"
-version = "1.17.0"
+version = "1.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d"
+checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2"
dependencies = [
"getrandom 0.3.3",
"js-sys",
@@ -7175,8 +7226,8 @@ dependencies = [
"crossbeam-queue",
"half",
"heck 0.4.1",
- "indexmap 2.10.0",
- "libloading 0.8.8",
+ "indexmap 2.11.4",
+ "libloading 0.8.9",
"objc",
"once_cell",
"parking_lot",
@@ -7237,11 +7288,20 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasi"
-version = "0.14.2+wasi-0.2.4"
+version = "0.14.7+wasi-0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
+dependencies = [
+ "wasip2",
+]
+
+[[package]]
+name = "wasip2"
+version = "1.0.1+wasi-0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
+checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
dependencies = [
- "wit-bindgen-rt",
+ "wit-bindgen",
]
[[package]]
@@ -7252,35 +7312,36 @@ checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b"
[[package]]
name = "wasm-bindgen"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
+checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d"
dependencies = [
"cfg-if",
"once_cell",
"rustversion",
"wasm-bindgen-macro",
+ "wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
+checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19"
dependencies = [
"bumpalo",
"log",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.50"
+version = "0.4.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
+checksum = "7e038d41e478cc73bae0ff9b36c60cff1c98b8f38f8d7e8061e79ee63608ac5c"
dependencies = [
"cfg-if",
"js-sys",
@@ -7291,9 +7352,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
+checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -7301,22 +7362,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
+checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.100"
+version = "0.2.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
+checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1"
dependencies = [
"unicode-ident",
]
@@ -7354,7 +7415,7 @@ version = "0.31.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c66a47e840dc20793f2264eb4b3e4ecb4b75d91c0dd4af04b456128e0bdd449d"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"rustix",
"wayland-backend",
"wayland-scanner",
@@ -7366,7 +7427,7 @@ version = "0.32.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efa790ed75fbfd71283bd2521a1cfdc022aabcc28bdcff00851f9e4ae88d9901"
dependencies = [
- "bitflags 2.9.1",
+ "bitflags 2.9.4",
"wayland-backend",
"wayland-client",
"wayland-scanner",
@@ -7396,9 +7457,9 @@ dependencies = [
[[package]]
name = "web-sys"
-version = "0.3.77"
+version = "0.3.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
+checksum = "9367c417a924a74cae129e6a2ae3b47fabb1f8995595ab474029da749a8be120"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -7466,9 +7527,9 @@ checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"
[[package]]
name = "webpki-roots"
-version = "1.0.2"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e8983c3ab33d6fb807cfcdad2491c4ea8cbc8ed839181c7dfd9c67c83e261b2"
+checksum = "32b130c0d2d49f8b6889abc456e795e82525204f27c42cf767cf0d7734e089b8"
dependencies = [
"rustls-pki-types",
]
@@ -7483,8 +7544,8 @@ dependencies = [
"webview2-com-sys",
"windows 0.61.3",
"windows-core 0.61.2",
- "windows-implement 0.60.0",
- "windows-interface 0.59.1",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
]
[[package]]
@@ -7495,7 +7556,7 @@ checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7504,7 +7565,7 @@ version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36695906a1b53a3bf5c4289621efedac12b73eeb0b89e7e1a89b517302d5d75c"
dependencies = [
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"windows 0.61.3",
"windows-core 0.61.2",
]
@@ -7514,6 +7575,8 @@ name = "weezl"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a751b3277700db47d3e574514de2eced5e54dc8a5436a3bf7a0b248b2cee16f3"
+
+[[package]]
name = "whoami"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -7541,11 +7604,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
-version = "0.1.9"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -7560,10 +7623,10 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
dependencies = [
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"raw-window-handle 0.6.2",
"windows-sys 0.59.0",
"windows-version",
@@ -7588,7 +7651,7 @@ dependencies = [
"windows-collections",
"windows-core 0.61.2",
"windows-future",
- "windows-link",
+ "windows-link 0.1.3",
"windows-numerics",
]
@@ -7619,11 +7682,24 @@ version = "0.61.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
dependencies = [
- "windows-implement 0.60.0",
- "windows-interface 0.59.1",
- "windows-link",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
+ "windows-link 0.1.3",
"windows-result 0.3.4",
- "windows-strings",
+ "windows-strings 0.4.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
+ "windows-link 0.2.1",
+ "windows-result 0.4.1",
+ "windows-strings 0.5.1",
]
[[package]]
@@ -7633,7 +7709,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
dependencies = [
"windows-core 0.61.2",
- "windows-link",
+ "windows-link 0.1.3",
"windows-threading",
]
@@ -7645,18 +7721,18 @@ checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "windows-implement"
-version = "0.60.0"
+version = "0.60.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7667,18 +7743,18 @@ checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
name = "windows-interface"
-version = "0.59.1"
+version = "0.59.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -7687,6 +7763,12 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
[[package]]
name = "windows-numerics"
version = "0.2.0"
@@ -7694,7 +7776,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
dependencies = [
"windows-core 0.61.2",
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
@@ -7703,9 +7785,9 @@ version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
"windows-result 0.3.4",
- "windows-strings",
+ "windows-strings 0.4.2",
]
[[package]]
@@ -7723,7 +7805,16 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link 0.2.1",
]
[[package]]
@@ -7732,7 +7823,16 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link 0.2.1",
]
[[package]]
@@ -7777,7 +7877,16 @@ version = "0.60.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
dependencies = [
- "windows-targets 0.53.3",
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link 0.2.1",
]
[[package]]
@@ -7828,19 +7937,19 @@ dependencies = [
[[package]]
name = "windows-targets"
-version = "0.53.3"
+version = "0.53.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
dependencies = [
- "windows-link",
- "windows_aarch64_gnullvm 0.53.0",
- "windows_aarch64_msvc 0.53.0",
- "windows_i686_gnu 0.53.0",
- "windows_i686_gnullvm 0.53.0",
- "windows_i686_msvc 0.53.0",
- "windows_x86_64_gnu 0.53.0",
- "windows_x86_64_gnullvm 0.53.0",
- "windows_x86_64_msvc 0.53.0",
+ "windows-link 0.2.1",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
]
[[package]]
@@ -7849,16 +7958,16 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
dependencies = [
- "windows-link",
+ "windows-link 0.1.3",
]
[[package]]
name = "windows-version"
-version = "0.1.4"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e04a5c6627e310a23ad2358483286c7df260c964eb2d003d8efd6d0f4e79265c"
+checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"
dependencies = [
- "windows-link",
+ "windows-link 0.2.1",
]
[[package]]
@@ -7881,9 +7990,9 @@ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
[[package]]
name = "windows_aarch64_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
[[package]]
name = "windows_aarch64_msvc"
@@ -7905,9 +8014,9 @@ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
[[package]]
name = "windows_aarch64_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
[[package]]
name = "windows_i686_gnu"
@@ -7929,9 +8038,9 @@ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
[[package]]
name = "windows_i686_gnu"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
[[package]]
name = "windows_i686_gnullvm"
@@ -7941,9 +8050,9 @@ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
[[package]]
name = "windows_i686_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
[[package]]
name = "windows_i686_msvc"
@@ -7965,9 +8074,9 @@ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
[[package]]
name = "windows_i686_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
[[package]]
name = "windows_x86_64_gnu"
@@ -7989,9 +8098,9 @@ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
[[package]]
name = "windows_x86_64_gnu"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
[[package]]
name = "windows_x86_64_gnullvm"
@@ -8013,9 +8122,9 @@ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
[[package]]
name = "windows_x86_64_gnullvm"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
[[package]]
name = "windows_x86_64_msvc"
@@ -8037,9 +8146,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "windows_x86_64_msvc"
-version = "0.53.0"
+version = "0.53.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
[[package]]
name = "winnow"
@@ -8052,9 +8161,9 @@ dependencies = [
[[package]]
name = "winnow"
-version = "0.7.12"
+version = "0.7.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95"
+checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
dependencies = [
"memchr",
]
@@ -8080,13 +8189,10 @@ dependencies = [
]
[[package]]
-name = "wit-bindgen-rt"
-version = "0.39.0"
+name = "wit-bindgen"
+version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
-dependencies = [
- "bitflags 2.9.1",
-]
+checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "wrapcenum-derive"
@@ -8097,7 +8203,7 @@ dependencies = [
"darling 0.20.11",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8108,12 +8214,12 @@ checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
[[package]]
name = "wry"
-version = "0.53.3"
+version = "0.53.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31f0e9642a0d061f6236c54ccae64c2722a7879ad4ec7dff59bd376d446d8e90"
+checksum = "6d78ec082b80fa088569a970d043bb3050abaabf4454101d44514ee8d9a8c9f6"
dependencies = [
"base64 0.22.1",
- "block2 0.6.1",
+ "block2 0.6.2",
"cookie",
"crossbeam-channel",
"dirs",
@@ -8128,10 +8234,10 @@ dependencies = [
"kuchikiki",
"libc",
"ndk",
- "objc2 0.6.1",
+ "objc2 0.6.3",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.1",
+ "objc2-foundation 0.3.2",
"objc2-ui-kit",
"objc2-web-kit",
"once_cell",
@@ -8140,7 +8246,7 @@ dependencies = [
"sha2",
"soup3",
"tao-macros",
- "thiserror 2.0.12",
+ "thiserror 2.0.17",
"url",
"webkit2gtk",
"webkit2gtk-sys",
@@ -8183,9 +8289,9 @@ dependencies = [
[[package]]
name = "xattr"
-version = "1.5.1"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af3a19837351dc82ba89f8a125e22a3c475f05aba604acc023d62b2739ae2909"
+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
dependencies = [
"libc",
"rustix",
@@ -8228,15 +8334,15 @@ checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"synstructure",
]
[[package]]
name = "zbus"
-version = "5.9.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bb4f9a464286d42851d18a605f7193b8febaf5b0919d71c6399b7b26e5b0aad"
+checksum = "2d07e46d035fb8e375b2ce63ba4e4ff90a7f73cf2ffb0138b29e1158d2eaadf7"
dependencies = [
"async-broadcast",
"async-executor",
@@ -8259,8 +8365,8 @@ dependencies = [
"tokio",
"tracing",
"uds_windows",
- "windows-sys 0.59.0",
- "winnow 0.7.12",
+ "windows-sys 0.60.2",
+ "winnow 0.7.13",
"zbus_macros",
"zbus_names",
"zvariant",
@@ -8268,14 +8374,14 @@ dependencies = [
[[package]]
name = "zbus_macros"
-version = "5.9.0"
+version = "5.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef9859f68ee0c4ee2e8cde84737c78e3f4c54f946f2a38645d0d4c7a95327659"
+checksum = "57e797a9c847ed3ccc5b6254e8bcce056494b375b511b3d6edcec0aeb4defaca"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"zbus_names",
"zvariant",
"zvariant_utils",
@@ -8289,28 +8395,28 @@ checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"
dependencies = [
"serde",
"static_assertions",
- "winnow 0.7.12",
+ "winnow 0.7.13",
"zvariant",
]
[[package]]
name = "zerocopy"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1039dd0d3c310cf05de012d8a39ff557cb0d23087fd44cad61df08fc31907a2f"
+checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.26"
+version = "0.8.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
+checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8330,15 +8436,15 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"synstructure",
]
[[package]]
name = "zeroize"
-version = "1.8.1"
+version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
+checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
[[package]]
name = "zerotrie"
@@ -8370,7 +8476,7 @@ checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
]
[[package]]
@@ -8395,13 +8501,13 @@ dependencies = [
[[package]]
name = "zip"
-version = "4.3.0"
+version = "4.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9aed4ac33e8eb078c89e6cbb1d5c4c7703ec6d299fc3e7c3695af8f8b423468b"
+checksum = "caa8cd6af31c3b31c6631b8f483848b91589021b28fffe50adada48d4f4d2ed1"
dependencies = [
"arbitrary",
"crc32fast",
- "indexmap 2.10.0",
+ "indexmap 2.11.4",
"memchr",
]
@@ -8436,42 +8542,41 @@ dependencies = [
[[package]]
name = "zvariant"
-version = "5.6.0"
+version = "5.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d91b3680bb339216abd84714172b5138a4edac677e641ef17e1d8cb1b3ca6e6f"
+checksum = "999dd3be73c52b1fccd109a4a81e4fcd20fab1d3599c8121b38d04e1419498db"
dependencies = [
"endi",
"enumflags2",
"serde",
"url",
- "winnow 0.7.12",
+ "winnow 0.7.13",
"zvariant_derive",
"zvariant_utils",
]
[[package]]
name = "zvariant_derive"
-version = "5.6.0"
+version = "5.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a8c68501be459a8dbfffbe5d792acdd23b4959940fc87785fb013b32edbc208"
+checksum = "6643fd0b26a46d226bd90d3f07c1b5321fe9bb7f04673cb37ac6d6883885b68e"
dependencies = [
- "proc-macro-crate 3.3.0",
+ "proc-macro-crate 3.4.0",
"proc-macro2",
"quote",
- "syn 2.0.104",
+ "syn 2.0.106",
"zvariant_utils",
]
[[package]]
name = "zvariant_utils"
-version = "3.2.0"
+version = "3.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e16edfee43e5d7b553b77872d99bc36afdda75c223ca7ad5e3fbecd82ca5fc34"
+checksum = "c6949d142f89f6916deca2232cf26a8afacf2b9fdc35ce766105e104478be599"
dependencies = [
"proc-macro2",
"quote",
"serde",
- "static_assertions",
- "syn 2.0.104",
- "winnow 0.7.12",
+ "syn 2.0.106",
+ "winnow 0.7.13",
]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 1a3a107cb..7407bfa87 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -63,7 +63,9 @@ log = "0.4"
rmcp = { version = "0.6.0", features = [
"client",
"transport-sse-client",
+ "transport-sse-client-reqwest",
"transport-streamable-http-client",
+ "transport-streamable-http-client-reqwest",
"transport-child-process",
"tower",
"reqwest",
diff --git a/src-tauri/plugins/tauri-plugin-rag/src/parser.rs b/src-tauri/plugins/tauri-plugin-rag/src/parser.rs
index 2c4d99dad..d21c1de5d 100644
--- a/src-tauri/plugins/tauri-plugin-rag/src/parser.rs
+++ b/src-tauri/plugins/tauri-plugin-rag/src/parser.rs
@@ -13,8 +13,24 @@ use std::borrow::Cow;
pub fn parse_pdf(file_path: &str) -> Result<String, RagError> {
let bytes = fs::read(file_path)?;
- pdf_extract::extract_text_from_mem(&bytes)
- .map_err(|e| RagError::ParseError(format!("PDF parse error: {}", e)))
+ let text = pdf_extract::extract_text_from_mem(&bytes)
+ .map_err(|e| RagError::ParseError(format!("PDF parse error: {}", e)))?;
+
+ // Validate that the PDF has extractable text (not image-based/scanned)
+ // Count meaningful characters (excluding whitespace)
+ let meaningful_chars = text.chars()
+ .filter(|c| !c.is_whitespace())
+ .count();
+
+ // Require at least 50 non-whitespace characters to consider it a text PDF
+ // This threshold filters out PDFs that are purely images or scanned documents
+ if meaningful_chars < 50 {
+ return Err(RagError::ParseError(
+ "PDF appears to be image-based or scanned. OCR is not supported yet. Please use a text-based PDF.".to_string()
+ ));
+ }
+
+ Ok(text)
}
pub fn parse_text(file_path: &str) -> Result<String, RagError> {
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/build.rs b/src-tauri/plugins/tauri-plugin-vector-db/build.rs
index 71c8c3a52..0f2f3f4fd 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/build.rs
+++ b/src-tauri/plugins/tauri-plugin-vector-db/build.rs
@@ -1,12 +1,16 @@
fn main() {
tauri_plugin::Builder::new(&[
"create_collection",
+ "create_file",
"insert_chunks",
"search_collection",
"delete_chunks",
+ "delete_file",
"delete_collection",
"chunk_text",
"get_status",
+ "list_attachments",
+ "get_chunks",
])
.build();
}
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/guest-js/index.ts b/src-tauri/plugins/tauri-plugin-vector-db/guest-js/index.ts
index 4b65786a5..d66af5cb4 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/guest-js/index.ts
+++ b/src-tauri/plugins/tauri-plugin-vector-db/guest-js/index.ts
@@ -2,13 +2,6 @@ import { invoke } from '@tauri-apps/api/core'
export type SearchMode = 'auto' | 'ann' | 'linear'
-export interface ChunkInput {
- id?: string
- text: string
- embedding: number[]
- metadata?: Record<string, any>
-}
-
export interface SearchResult {
id: string
text: string
@@ -42,11 +35,26 @@ export async function createCollection(name: string, dimension: number): Promise
return await invoke('plugin:vector-db|create_collection', { name, dimension })
}
+export async function createFile(
+ collection: string,
+ file: { path: string; name?: string; type?: string; size?: number }
+): Promise<AttachmentFileInfo> {
+ return await invoke('plugin:vector-db|create_file', { collection, file })
+}
+
export async function insertChunks(
collection: string,
- chunks: ChunkInput[]
+ fileId: string,
+ chunks: Array<{ text: string; embedding: number[] }>
+): Promise<void> {
+ return await invoke('plugin:vector-db|insert_chunks', { collection, fileId, chunks })
+}
+
+export async function deleteFile(
+ collection: string,
+ fileId: string
): Promise<void> {
- return await invoke('plugin:vector-db|insert_chunks', { collection, chunks })
+ return await invoke('plugin:vector-db|delete_file', { collection, fileId })
}
export async function searchCollection(
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/create_file.toml b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/create_file.toml
new file mode 100644
index 000000000..7fc6c3ff8
--- /dev/null
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/create_file.toml
@@ -0,0 +1,13 @@
+# Automatically generated - DO NOT EDIT!
+
+"$schema" = "../../schemas/schema.json"
+
+[[permission]]
+identifier = "allow-create-file"
+description = "Enables the create_file command without any pre-configured scope."
+commands.allow = ["create_file"]
+
+[[permission]]
+identifier = "deny-create-file"
+description = "Denies the create_file command without any pre-configured scope."
+commands.deny = ["create_file"]
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/delete_file.toml b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/delete_file.toml
new file mode 100644
index 000000000..aafe069a6
--- /dev/null
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/delete_file.toml
@@ -0,0 +1,13 @@
+# Automatically generated - DO NOT EDIT!
+
+"$schema" = "../../schemas/schema.json"
+
+[[permission]]
+identifier = "allow-delete-file"
+description = "Enables the delete_file command without any pre-configured scope."
+commands.allow = ["delete_file"]
+
+[[permission]]
+identifier = "deny-delete-file"
+description = "Denies the delete_file command without any pre-configured scope."
+commands.deny = ["delete_file"]
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/list_attachments.toml b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/list_attachments.toml
index 0daac76c7..bbf2d996f 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/list_attachments.toml
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/commands/list_attachments.toml
@@ -11,4 +11,3 @@ commands.allow = ["list_attachments"]
identifier = "deny-list-attachments"
description = "Denies the list_attachments command without any pre-configured scope."
commands.deny = ["list_attachments"]
-
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/reference.md b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/reference.md
index 78663f5aa..b859ecb87 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/reference.md
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/autogenerated/reference.md
@@ -7,8 +7,10 @@ Default permissions for the vector-db plugin
- `allow-get-status`
- `allow-create-collection`
- `allow-insert-chunks`
+- `allow-create-file`
- `allow-search-collection`
- `allow-delete-chunks`
+- `allow-delete-file`
- `allow-delete-collection`
- `allow-chunk-text`
- `allow-list-attachments`
@@ -78,6 +80,32 @@ Denies the create_collection command without any pre-configured scope.
<tr>
<td>
+`vector-db:allow-create-file`
+
+</td>
+<td>
+
+Enables the create_file command without any pre-configured scope.
+
+</td>
+</tr>
+
+<tr>
+<td>
+
+`vector-db:deny-create-file`
+
+</td>
+<td>
+
+Denies the create_file command without any pre-configured scope.
+
+</td>
+</tr>
+
+<tr>
+<td>
+
`vector-db:allow-delete-chunks`
</td>
@@ -130,6 +158,32 @@ Denies the delete_collection command without any pre-configured scope.
<tr>
<td>
+`vector-db:allow-delete-file`
+
+</td>
+<td>
+
+Enables the delete_file command without any pre-configured scope.
+
+</td>
+</tr>
+
+<tr>
+<td>
+
+`vector-db:deny-delete-file`
+
+</td>
+<td>
+
+Denies the delete_file command without any pre-configured scope.
+
+</td>
+</tr>
+
+<tr>
+<td>
+
`vector-db:allow-get-chunks`
</td>
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/default.toml b/src-tauri/plugins/tauri-plugin-vector-db/permissions/default.toml
index 1e4233865..a29998640 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/permissions/default.toml
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/default.toml
@@ -4,8 +4,10 @@ permissions = [
"allow-get-status",
"allow-create-collection",
"allow-insert-chunks",
+ "allow-create-file",
"allow-search-collection",
"allow-delete-chunks",
+ "allow-delete-file",
"allow-delete-collection",
"allow-chunk-text",
"allow-list-attachments",
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/permissions/schemas/schema.json b/src-tauri/plugins/tauri-plugin-vector-db/permissions/schemas/schema.json
index 1192c07ee..6410337c5 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/permissions/schemas/schema.json
+++ b/src-tauri/plugins/tauri-plugin-vector-db/permissions/schemas/schema.json
@@ -318,6 +318,18 @@
"const": "deny-create-collection",
"markdownDescription": "Denies the create_collection command without any pre-configured scope."
},
+ {
+ "description": "Enables the create_file command without any pre-configured scope.",
+ "type": "string",
+ "const": "allow-create-file",
+ "markdownDescription": "Enables the create_file command without any pre-configured scope."
+ },
+ {
+ "description": "Denies the create_file command without any pre-configured scope.",
+ "type": "string",
+ "const": "deny-create-file",
+ "markdownDescription": "Denies the create_file command without any pre-configured scope."
+ },
{
"description": "Enables the delete_chunks command without any pre-configured scope.",
"type": "string",
@@ -342,6 +354,18 @@
"const": "deny-delete-collection",
"markdownDescription": "Denies the delete_collection command without any pre-configured scope."
},
+ {
+ "description": "Enables the delete_file command without any pre-configured scope.",
+ "type": "string",
+ "const": "allow-delete-file",
+ "markdownDescription": "Enables the delete_file command without any pre-configured scope."
+ },
+ {
+ "description": "Denies the delete_file command without any pre-configured scope.",
+ "type": "string",
+ "const": "deny-delete-file",
+ "markdownDescription": "Denies the delete_file command without any pre-configured scope."
+ },
{
"description": "Enables the get_chunks command without any pre-configured scope.",
"type": "string",
@@ -403,10 +427,10 @@
"markdownDescription": "Denies the search_collection command without any pre-configured scope."
},
{
- "description": "Default permissions for the vector-db plugin\n#### This default permission set includes:\n\n- `allow-get-status`\n- `allow-create-collection`\n- `allow-insert-chunks`\n- `allow-search-collection`\n- `allow-delete-chunks`\n- `allow-delete-collection`\n- `allow-chunk-text`\n- `allow-list-attachments`\n- `allow-get-chunks`",
+ "description": "Default permissions for the vector-db plugin\n#### This default permission set includes:\n\n- `allow-get-status`\n- `allow-create-collection`\n- `allow-insert-chunks`\n- `allow-create-file`\n- `allow-search-collection`\n- `allow-delete-chunks`\n- `allow-delete-file`\n- `allow-delete-collection`\n- `allow-chunk-text`\n- `allow-list-attachments`\n- `allow-get-chunks`",
"type": "string",
"const": "default",
- "markdownDescription": "Default permissions for the vector-db plugin\n#### This default permission set includes:\n\n- `allow-get-status`\n- `allow-create-collection`\n- `allow-insert-chunks`\n- `allow-search-collection`\n- `allow-delete-chunks`\n- `allow-delete-collection`\n- `allow-chunk-text`\n- `allow-list-attachments`\n- `allow-get-chunks`"
+ "markdownDescription": "Default permissions for the vector-db plugin\n#### This default permission set includes:\n\n- `allow-get-status`\n- `allow-create-collection`\n- `allow-insert-chunks`\n- `allow-create-file`\n- `allow-search-collection`\n- `allow-delete-chunks`\n- `allow-delete-file`\n- `allow-delete-collection`\n- `allow-chunk-text`\n- `allow-list-attachments`\n- `allow-get-chunks`"
}
]
}
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/src/commands.rs b/src-tauri/plugins/tauri-plugin-vector-db/src/commands.rs
index ac697c535..9996a9083 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/src/commands.rs
+++ b/src-tauri/plugins/tauri-plugin-vector-db/src/commands.rs
@@ -1,6 +1,6 @@
use crate::{VectorDBError, VectorDBState};
use crate::db::{
- self, AttachmentFileInfo, ChunkInput, SearchResult,
+ self, AttachmentFileInfo, SearchResult, MinimalChunkInput,
};
use serde::{Deserialize, Serialize};
use tauri::State;
@@ -10,6 +10,15 @@ pub struct Status {
pub ann_available: bool,
}
+#[derive(Debug, Serialize, Deserialize)]
+pub struct FileInput {
+ pub path: String,
+ pub name: Option<String>,
+ #[serde(rename = "type")]
+ pub file_type: Option<String>,
+ pub size: Option<i64>,
+}
+
// ============================================================================
// Tauri Command Handlers
// ============================================================================
@@ -74,18 +83,48 @@ pub async fn create_collection<R: tauri::Runtime>(
Ok(())
}
+#[tauri::command]
+pub async fn create_file<R: tauri::Runtime>(
+ _app: tauri::AppHandle<R>,
+ state: State<'_, VectorDBState>,
+ collection: String,
+ file: FileInput,
+) -> Result<AttachmentFileInfo, VectorDBError> {
+ let path = db::collection_path(&state.base_dir, &collection);
+ let conn = db::open_or_init_conn(&path)?;
+ db::create_file(
+ &conn,
+ &file.path,
+ file.name.as_deref(),
+ file.file_type.as_deref(),
+ file.size,
+ )
+}
+
#[tauri::command]
pub async fn insert_chunks<R: tauri::Runtime>(
_app: tauri::AppHandle<R>,
state: State<'_, VectorDBState>,
collection: String,
- chunks: Vec<ChunkInput>,
+ file_id: String,
+ chunks: Vec<MinimalChunkInput>,
) -> Result<(), VectorDBError> {
let path = db::collection_path(&state.base_dir, &collection);
let conn = db::open_or_init_conn(&path)?;
let vec_loaded = db::try_load_sqlite_vec(&conn);
- db::insert_chunks(&conn, chunks, vec_loaded)?;
- Ok(())
+ db::insert_chunks(&conn, &file_id, chunks, vec_loaded)
+}
+
+#[tauri::command]
+pub async fn delete_file<R: tauri::Runtime>(
+ _app: tauri::AppHandle<R>,
+ state: State<'_, VectorDBState>,
+ collection: String,
+ file_id: String,
+) -> Result<(), VectorDBError> {
+ let path = db::collection_path(&state.base_dir, &collection);
+ let conn = db::open_or_init_conn(&path)?;
+ db::delete_file(&conn, &file_id)
}
#[tauri::command]
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/src/db.rs b/src-tauri/plugins/tauri-plugin-vector-db/src/db.rs
index 725fc3005..c050a82ae 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/src/db.rs
+++ b/src-tauri/plugins/tauri-plugin-vector-db/src/db.rs
@@ -2,7 +2,6 @@ use crate::VectorDBError;
use crate::utils::{cosine_similarity, from_le_bytes_vec, to_le_bytes_vec};
use rusqlite::{params, Connection, OptionalExtension};
use serde::{Deserialize, Serialize};
-use std::collections::HashMap;
use std::fs;
use std::path::PathBuf;
use uuid::Uuid;
@@ -16,18 +15,6 @@ pub struct FileMetadata {
pub size: Option<i64>,
}
-#[derive(Debug, Serialize, Deserialize, Clone)]
-pub struct ChunkMetadata {
- pub file: FileMetadata,
-}
-
-#[derive(Debug, Serialize, Deserialize)]
-pub struct ChunkInput {
- pub id: Option<String>,
- pub text: String,
- pub embedding: Vec<f32>,
- pub metadata: Option<ChunkMetadata>,
-}
#[derive(Debug, Serialize, Deserialize)]
pub struct SearchResult {
@@ -49,6 +36,13 @@ pub struct AttachmentFileInfo {
pub chunk_count: i64,
}
+// New minimal chunk input (no id/metadata) for file-scoped insertion
+#[derive(Debug, Serialize, Deserialize, Clone)]
+pub struct MinimalChunkInput {
+ pub text: String,
+ pub embedding: Vec<f32>,
+}
+
// ============================================================================
// Connection & Path Management
// ============================================================================
@@ -190,14 +184,84 @@ pub fn create_schema(conn: &Connection, dimension: usize) -> Result<bool, Vector
// Insert Operations
// ============================================================================
+pub fn create_file(
+ conn: &Connection,
+ path: &str,
+ name: Option<&str>,
+ file_type: Option<&str>,
+ size: Option<i64>,
+) -> Result<AttachmentFileInfo, VectorDBError> {
+ let tx = conn.unchecked_transaction()?;
+
+ // Try get existing by path
+ if let Ok(Some(id)) = tx
+ .prepare("SELECT id FROM files WHERE path = ?1")
+ .and_then(|mut s| s.query_row(params![path], |r| r.get::<_, String>(0)).optional())
+ {
+ let row: AttachmentFileInfo = {
+ let mut stmt = tx.prepare(
+ "SELECT id, path, name, type, size, chunk_count FROM files WHERE id = ?1",
+ )?;
+ stmt.query_row(params![id.as_str()], |r| {
+ Ok(AttachmentFileInfo {
+ id: r.get(0)?,
+ path: r.get(1)?,
+ name: r.get(2)?,
+ file_type: r.get(3)?,
+ size: r.get(4)?,
+ chunk_count: r.get(5)?,
+ })
+ })?
+ };
+ tx.commit()?;
+ return Ok(row);
+ }
+
+ let new_id = Uuid::new_v4().to_string();
+ // Determine file size if not provided
+ let computed_size: Option<i64> = match size {
+ Some(s) if s > 0 => Some(s),
+ _ => {
+ match std::fs::metadata(path) {
+ Ok(meta) => Some(meta.len() as i64),
+ Err(_) => None,
+ }
+ }
+ };
+ tx.execute(
+ "INSERT INTO files (id, path, name, type, size, chunk_count) VALUES (?1, ?2, ?3, ?4, ?5, 0)",
+ params![new_id, path, name, file_type, computed_size],
+ )?;
+
+ let row: AttachmentFileInfo = {
+ let mut stmt = tx.prepare(
+ "SELECT id, path, name, type, size, chunk_count FROM files WHERE path = ?1",
+ )?;
+ stmt.query_row(params![path], |r| {
+ Ok(AttachmentFileInfo {
+ id: r.get(0)?,
+ path: r.get(1)?,
+ name: r.get(2)?,
+ file_type: r.get(3)?,
+ size: r.get(4)?,
+ chunk_count: r.get(5)?,
+ })
+ })?
+ };
+
+ tx.commit()?;
+ Ok(row)
+}
+
pub fn insert_chunks(
conn: &Connection,
- chunks: Vec<ChunkInput>,
+ file_id: &str,
+ chunks: Vec<MinimalChunkInput>,
vec_loaded: bool,
) -> Result<(), VectorDBError> {
let tx = conn.unchecked_transaction()?;
- // Check if vec virtual table exists
+ // Check if vec table exists
let has_vec = if vec_loaded {
conn
.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='chunks_vec'")
@@ -209,69 +273,22 @@ pub fn insert_chunks(
false
};
- let mut file_id_cache: HashMap<String, String> = HashMap::new();
- let mut file_chunk_counters: HashMap<String, i64> = HashMap::new();
+ // Determine current max order
+ let mut current_order: i64 = tx
+ .query_row(
+ "SELECT COALESCE(MAX(chunk_file_order), -1) FROM chunks WHERE file_id = ?1",
+ params![file_id],
+ |row| row.get::<_, i64>(0),
+ )
+ .unwrap_or(-1);
for ch in chunks.into_iter() {
+ current_order += 1;
let emb = to_le_bytes_vec(&ch.embedding);
-
- // Extract file info from metadata and get/create file_id
- let mut file_id: Option<String> = None;
- if let Some(ref meta) = ch.metadata {
- let file_path = &meta.file.path;
-
- // Check cache first
- if let Some(cached_id) = file_id_cache.get(file_path) {
- file_id = Some(cached_id.clone());
- } else {
- // Generate UUID for new file
- let uuid = Uuid::new_v4().to_string();
-
- // Insert or ignore if path already exists
- tx.execute(
- "INSERT OR IGNORE INTO files (id, path, name, type, size) VALUES (?1, ?2, ?3, ?4, ?5)",
- params![
- &uuid,
- &meta.file.path,
- &meta.file.name,
- &meta.file.file_type,
- meta.file.size
- ],
- )?;
-
- // Get the actual id (either the one we just inserted or existing one)
- let id: String = tx.query_row(
- "SELECT id FROM files WHERE path = ?1",
- params![file_path],
- |row| row.get(0),
- )?;
- file_id = Some(id.clone());
- file_id_cache.insert(file_path.clone(), id);
- }
- }
-
- // Get or initialize chunk order for this file
- let chunk_order = if let Some(ref fid) = file_id {
- let counter = file_chunk_counters.entry(fid.clone()).or_insert_with(|| {
- // Get max existing order for this file
- tx.query_row(
- "SELECT COALESCE(MAX(chunk_file_order), -1) FROM chunks WHERE file_id = ?1",
- params![fid],
- |row| row.get::<_, i64>(0),
- ).unwrap_or(-1)
- });
- *counter += 1;
- *counter
- } else {
- 0
- };
-
- // Generate UUID for chunk if not provided
- let chunk_id = ch.id.unwrap_or_else(|| Uuid::new_v4().to_string());
-
+ let chunk_id = Uuid::new_v4().to_string();
tx.execute(
"INSERT OR REPLACE INTO chunks (id, text, embedding, file_id, chunk_file_order) VALUES (?1, ?2, ?3, ?4, ?5)",
- params![chunk_id, ch.text, emb, file_id, chunk_order],
+ params![chunk_id, ch.text, emb, file_id, current_order],
)?;
if has_vec {
@@ -279,31 +296,32 @@ pub fn insert_chunks(
.prepare("SELECT rowid FROM chunks WHERE id=?1")?
.query_row(params![chunk_id], |r| r.get(0))?;
let json_vec = serde_json::to_string(&ch.embedding).unwrap_or("[]".to_string());
- match tx.execute(
+ let _ = tx.execute(
"INSERT OR REPLACE INTO chunks_vec(rowid, embedding) VALUES (?1, ?2)",
params![rowid, json_vec],
- ) {
- Ok(_) => {}
- Err(e) => {
- println!("[VectorDB] ✗ Failed to insert into chunks_vec: {}", e);
- }
- }
+ );
}
}
- // Update chunk_count for all affected files
- for file_id in file_id_cache.values() {
- let count: i64 = tx.query_row(
- "SELECT COUNT(*) FROM chunks WHERE file_id = ?1",
- params![file_id],
- |row| row.get(0),
- )?;
- tx.execute(
- "UPDATE files SET chunk_count = ?1 WHERE id = ?2",
- params![count, file_id],
- )?;
- }
+ // Update chunk_count
+ let count: i64 = tx.query_row(
+ "SELECT COUNT(*) FROM chunks WHERE file_id = ?1",
+ params![file_id],
+ |row| row.get(0),
+ )?;
+ tx.execute(
+ "UPDATE files SET chunk_count = ?1 WHERE id = ?2",
+ params![count, file_id],
+ )?;
+
+ tx.commit()?;
+ Ok(())
+}
+pub fn delete_file(conn: &Connection, file_id: &str) -> Result<(), VectorDBError> {
+ let tx = conn.unchecked_transaction()?;
+ tx.execute("DELETE FROM chunks WHERE file_id = ?1", params![file_id])?;
+ tx.execute("DELETE FROM files WHERE id = ?1", params![file_id])?;
tx.commit()?;
Ok(())
}
diff --git a/src-tauri/plugins/tauri-plugin-vector-db/src/lib.rs b/src-tauri/plugins/tauri-plugin-vector-db/src/lib.rs
index 227ab8b53..9c5d72c02 100644
--- a/src-tauri/plugins/tauri-plugin-vector-db/src/lib.rs
+++ b/src-tauri/plugins/tauri-plugin-vector-db/src/lib.rs
@@ -18,8 +18,10 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
.invoke_handler(tauri::generate_handler![
commands::create_collection,
commands::insert_chunks,
+ commands::create_file,
commands::search_collection,
commands::delete_chunks,
+ commands::delete_file,
commands::delete_collection,
commands::chunk_text,
commands::get_status,
diff --git a/src-tauri/src/core/mcp/helpers.rs b/src-tauri/src/core/mcp/helpers.rs
index 4e226a055..fe914c79a 100644
--- a/src-tauri/src/core/mcp/helpers.rs
+++ b/src-tauri/src/core/mcp/helpers.rs
@@ -496,6 +496,9 @@ async fn schedule_mcp_start_task<R: Runtime>(
client_info: Implementation {
name: "Jan Streamable Client".to_string(),
version: "0.0.1".to_string(),
+ title: None,
+ website_url: None,
+ icons: None,
},
};
let client = client_info.serve(transport).await.inspect_err(|e| {
@@ -567,6 +570,9 @@ async fn schedule_mcp_start_task<R: Runtime>(
client_info: Implementation {
name: "Jan SSE Client".to_string(),
version: "0.0.1".to_string(),
+ title: None,
+ website_url: None,
+ icons: None,
},
};
let client = client_info.serve(transport).await.map_err(|e| {
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx
index 8dc4fda84..3a926e78c 100644
--- a/web-app/src/containers/ChatInput.tsx
+++ b/web-app/src/containers/ChatInput.tsx
@@ -23,6 +23,7 @@ import {
IconX,
IconPaperclip,
IconLoader2,
+ IconCheck,
} from '@tabler/icons-react'
import { useTranslation } from '@/i18n/react-i18next-compat'
import { useGeneralSetting } from '@/hooks/useGeneralSetting'
@@ -40,7 +41,7 @@ import { TokenCounter } from '@/components/TokenCounter'
import { useMessages } from '@/hooks/useMessages'
import { useShallow } from 'zustand/react/shallow'
import { McpExtensionToolLoader } from './McpExtensionToolLoader'
-import { ExtensionTypeEnum, MCPExtension, RAGExtension } from '@janhq/core'
+import { ExtensionTypeEnum, MCPExtension, fs, RAGExtension } from '@janhq/core'
import { ExtensionManager } from '@/lib/extension'
import { useAttachments } from '@/hooks/useAttachments'
import { open } from '@tauri-apps/plugin-dialog'
@@ -49,6 +50,7 @@ import { PlatformFeatures } from '@/lib/platform/const'
import { PlatformFeature } from '@/lib/platform/types'
import { useAnalytic } from '@/hooks/useAnalytic'
import posthog from 'posthog-js'
+import { Attachment, createImageAttachment, createDocumentAttachment } from '@/types/attachment'
type ChatInputProps = {
className?: string
@@ -101,33 +103,20 @@ const ChatInput = ({
const [message, setMessage] = useState('')
const [dropdownToolsAvailable, setDropdownToolsAvailable] = useState(false)
const [tooltipToolsAvailable, setTooltipToolsAvailable] = useState(false)
- const [uploadedFiles, setUploadedFiles] = useState<
- Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }>
- >([])
- // Document attachments (desktop RAG ingestion). We only index on send.
- const [docFiles, setDocFiles] = useState<
- Array<{
- name: string
- path: string
- size?: number
- type?: string
- }>
- >([])
+ const [attachments, setAttachments] = useState<Attachment[]>([])
const [connectedServers, setConnectedServers] = useState<string[]>([])
const [isDragOver, setIsDragOver] = useState(false)
const [hasMmproj, setHasMmproj] = useState(false)
const [hasActiveModels, setHasActiveModels] = useState(false)
const attachmentsEnabled = useAttachments((s) => s.enabled)
- const [ingestingDocs, setIngestingDocs] = useState(false)
// Determine whether to show the Attach documents button (simple gating)
const showAttachmentButton =
attachmentsEnabled && PlatformFeatures[PlatformFeature.ATTACHMENTS]
+ // Derived: any document currently processing (ingestion in progress)
+ const ingestingDocs = attachments.some(
+ (a) => a.type === 'document' && a.processing
+ )
+ const ingestingAny = attachments.some((a) => a.processing)
// Check for connected MCP servers
useEffect(() => {
@@ -208,36 +197,10 @@ const ChatInput = ({
setMessage('Please select a model to start chatting.')
return
}
- if (!prompt.trim() && uploadedFiles.length === 0 && docFiles.length === 0) {
+ if (!prompt.trim()) {
return
}
- // If we have pending doc files, index them first
- if (docFiles.length > 0) {
- try {
- setIngestingDocs(true)
- const rag = extensionManager.get<RAGExtension>(ExtensionTypeEnum.RAG)
- if (!rag?.ingestAttachments) throw new Error('Retrieval extension not available')
- for (const f of docFiles) {
- const id = (toast as any).loading
- ? (toast as any).loading(`Indexing ${f.name || f.path}…`)
- : undefined
- try {
- await rag.ingestAttachments(currentThreadId!, [{ path: f.path, name: f.name }])
- if (id) toast.success(`Indexed ${f.name || f.path}`, { id })
- } catch (err) {
- if (id) toast.error(`Failed to index ${f.name || f.path}`, { id })
- throw err
- }
- }
- setDocFiles([])
- } catch (err) {
- const desc = err instanceof Error ? err.message : String(err)
- toast.error('Failed to index attachments', { description: desc })
- setIngestingDocs(false)
- return
- }
- setIngestingDocs(false)
- }
+
setMessage('')
// Track message send event with PostHog (only if product analytics is enabled)
@@ -252,13 +215,39 @@ const ChatInput = ({
}
}
+ // Callback to update attachment processing state
+ const updateAttachmentProcessing = (
+ fileName: string,
+ status: 'processing' | 'done' | 'error' | 'clear_docs' | 'clear_all'
+ ) => {
+ if (status === 'clear_docs') {
+ setAttachments((prev) => prev.filter((a) => a.type !== 'document'))
+ return
+ }
+ if (status === 'clear_all') {
+ setAttachments([])
+ return
+ }
+ setAttachments((prev) =>
+ prev.map((att) =>
+ att.name === fileName
+ ? {
+ ...att,
+ processing: status === 'processing',
+ processed: status === 'done' ? true : att.processed,
+ }
+ : att
+ )
+ )
+ }
+
sendMessage(
prompt,
true,
- uploadedFiles.length > 0 ? uploadedFiles : undefined,
- projectId
+ attachments.length > 0 ? attachments : undefined,
+ projectId,
+ updateAttachmentProcessing
)
- setUploadedFiles([])
}
useEffect(() => {
@@ -333,10 +322,6 @@ const ChatInput = ({
toast.info('Attachments are disabled in Settings')
return
}
- if (!currentThreadId) {
- toast.info('Please start a thread first to attach documents.')
- return
- }
const selection = await open({
multiple: true,
filters: [
@@ -349,24 +334,128 @@ const ChatInput = ({
if (!selection) return
const paths = Array.isArray(selection) ? selection : [selection]
if (!paths.length) return
- setDocFiles((prev) => [
- ...prev,
- ...paths.map((p) => ({
- path: p,
- name: p.split(/[\\/]/).pop() || p,
- })),
- ])
+
+ // Check for duplicates and fetch file sizes
+ const existingPaths = new Set(
+ attachments
+ .filter((a) => a.type === 'document' && a.path)
+ .map((a) => a.path)
+ )
+
+ const duplicates: string[] = []
+ const newDocAttachments: Attachment[] = []
+
+ for (const p of paths) {
+ if (existingPaths.has(p)) {
+ duplicates.push(p.split(/[\\/]/).pop() || p)
+ continue
+ }
+
+ const name = p.split(/[\\/]/).pop() || p
+ const fileType = name.split('.').pop()?.toLowerCase()
+ let size: number | undefined = undefined
+ try {
+ const stat = await fs.fileStat(p)
+ size = stat?.size ? Number(stat.size) : undefined
+ } catch (e) {
+ console.warn('Failed to read file size for', p, e)
+ }
+ newDocAttachments.push(
+ createDocumentAttachment({
+ name,
+ path: p,
+ fileType,
+ size,
+ })
+ )
+ }
+
+ if (duplicates.length > 0) {
+ toast.warning('Files already attached', {
+ description: `${duplicates.join(', ')} ${duplicates.length === 1 ? 'is' : 'are'} already in the list`,
+ })
+ }
+
+ if (newDocAttachments.length > 0) {
+ // Add to state first with processing flag
+ setAttachments((prev) => [...prev, ...newDocAttachments])
+
+ // If thread exists, ingest immediately
+ if (currentThreadId) {
+ const ragExtension = ExtensionManager.getInstance().get(
+ ExtensionTypeEnum.RAG
+ ) as RAGExtension | undefined
+ if (!ragExtension) {
+ toast.error('RAG extension not available')
+ return
+ }
+
+ // Ingest each document
+ for (const doc of newDocAttachments) {
+ try {
+ // Mark as processing
+ setAttachments((prev) =>
+ prev.map((a) =>
+ a.path === doc.path && a.type === 'document'
+ ? { ...a, processing: true }
+ : a
+ )
+ )
+
+ const result = await ragExtension.ingestAttachments(
+ currentThreadId,
+ [
+ {
+ path: doc.path!,
+ name: doc.name,
+ type: doc.fileType,
+ size: doc.size,
+ },
+ ]
+ )
+
+ const fileInfo = result.files?.[0]
+ if (fileInfo?.id) {
+ // Mark as processed with ID
+ setAttachments((prev) =>
+ prev.map((a) =>
+ a.path === doc.path && a.type === 'document'
+ ? {
+ ...a,
+ processing: false,
+ processed: true,
+ id: fileInfo.id,
+ chunkCount: fileInfo.chunk_count,
+ }
+ : a
+ )
+ )
+ } else {
+ throw new Error('No file ID returned from ingestion')
+ }
+ } catch (error) {
+ console.error('Failed to ingest document:', error)
+ // Remove failed document
+ setAttachments((prev) =>
+ prev.filter((a) => !(a.path === doc.path && a.type === 'document'))
+ )
+ toast.error(`Failed to ingest ${doc.name}`, {
+ description:
+ error instanceof Error ? error.message : String(error),
+ })
+ }
+ }
+ }
+ }
} catch (e) {
- console.error('Failed to ingest attachments:', e)
+ console.error('Failed to attach documents:', e)
const desc = e instanceof Error ? e.message : String(e)
toast.error('Failed to attach documents', { description: desc })
}
}
- const handleRemoveFile = (indexToRemove: number) => {
- setUploadedFiles((prev) =>
- prev.filter((_, index) => index !== indexToRemove)
- )
+ const handleRemoveAttachment = (indexToRemove: number) => {
+ setAttachments((prev) => prev.filter((_, index) => index !== indexToRemove))
}
const getFileTypeFromExtension = (fileName: string): string => {
@@ -382,20 +471,39 @@ const ChatInput = ({
}
}
+ const formatBytes = (bytes?: number): string => {
+ if (!bytes || bytes <= 0) return ''
+ const units = ['B', 'KB', 'MB', 'GB']
+ let i = 0
+ let val = bytes
+ while (val >= 1024 && i < units.length - 1) {
+ val /= 1024
+ i++
+ }
+ return `${val.toFixed(i === 0 ? 0 : 1)} ${units[i]}`
+ }
+
const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const files = e.target.files
if (files && files.length > 0) {
const maxSize = 10 * 1024 * 1024 // 10MB in bytes
- const newFiles: Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }> = []
+ const newFiles: Attachment[] = []
+ const duplicates: string[] = []
+ const existingImageNames = new Set(
+ attachments
+ .filter((a) => a.type === 'image')
+ .map((a) => a.name)
+ )
Array.from(files).forEach((file) => {
+ // Check for duplicate image names
+ if (existingImageNames.has(file.name)) {
+ duplicates.push(file.name)
+ return
+ }
+
+
// Check file size
if (file.size > maxSize) {
setMessage(`File is too large. Maximum size is 10MB.`)
@@ -429,26 +537,92 @@ const ChatInput = ({
const result = reader.result
if (typeof result === 'string') {
const base64String = result.split(',')[1]
- const fileData = {
+ const att = createImageAttachment({
name: file.name,
size: file.size,
- type: actualType,
+ mimeType: actualType,
base64: base64String,
dataUrl: result,
- }
- newFiles.push(fileData)
+ })
+ newFiles.push(att)
// Update state
if (
newFiles.length ===
Array.from(files).filter((f) => {
const fType = getFileTypeFromExtension(f.name) || f.type
- return f.size <= maxSize && allowedTypes.includes(fType)
+ return (
+ f.size <= maxSize &&
+ allowedTypes.includes(fType) &&
+ !existingImageNames.has(f.name)
+ )
}).length
) {
- setUploadedFiles((prev) => {
- const updated = [...prev, ...newFiles]
- return updated
- })
+ if (newFiles.length > 0) {
+ setAttachments((prev) => {
+ const updated = [...prev, ...newFiles]
+ return updated
+ })
+
+ // If thread exists, ingest images immediately
+ if (currentThreadId) {
+ ;(async () => {
+ for (const img of newFiles) {
+ try {
+ // Mark as processing
+ setAttachments((prev) =>
+ prev.map((a) =>
+ a.name === img.name && a.type === 'image'
+ ? { ...a, processing: true }
+ : a
+ )
+ )
+
+ const result = await serviceHub.uploads().ingestImage(
+ currentThreadId,
+ img
+ )
+
+ if (result?.id) {
+ // Mark as processed with ID
+ setAttachments((prev) =>
+ prev.map((a) =>
+ a.name === img.name && a.type === 'image'
+ ? {
+ ...a,
+ processing: false,
+ processed: true,
+ id: result.id,
+ }
+ : a
+ )
+ )
+ } else {
+ throw new Error('No ID returned from image ingestion')
+ }
+ } catch (error) {
+ console.error('Failed to ingest image:', error)
+ // Remove failed image
+ setAttachments((prev) =>
+ prev.filter(
+ (a) => !(a.name === img.name && a.type === 'image')
+ )
+ )
+ toast.error(`Failed to ingest ${img.name}`, {
+ description:
+ error instanceof Error ? error.message : String(error),
+ })
+ }
+ }
+ })()
+ }
+ }
+
+ if (duplicates.length > 0) {
+ toast.warning('Some images already attached', {
+ description: `${duplicates.join(', ')} ${duplicates.length === 1 ? 'is' : 'are'} already in the list`,
+ })
+ }
+
// Reset the file input value to allow re-uploading the same file
if (fileInputRef.current) {
fileInputRef.current.value = ''
@@ -662,54 +836,90 @@ const ChatInput = ({
onDragOver={hasMmproj ? handleDragOver : undefined}
onDrop={hasMmproj ? handleDrop : undefined}
>
- {(uploadedFiles.length > 0 || docFiles.length > 0) && (
+ {attachments.length > 0 && (
<div className="flex gap-3 items-center p-2 pb-0">
- {uploadedFiles.map((file, index) => {
- return (
- <div
- key={index}
- className={cn(
- 'relative border border-main-view-fg/5 rounded-lg',
- file.type.startsWith('image/') ? 'size-14' : 'h-14 '
- )}
- >
- {file.type.startsWith('image/') && (
- <img
- className="object-cover w-full h-full rounded-lg"
- src={file.dataUrl}
- alt={`${file.name} - ${index}`}
- />
- )}
- <div
- className="absolute -top-1 -right-2.5 bg-destructive size-5 flex rounded-full items-center justify-center cursor-pointer"
- onClick={() => handleRemoveFile(index)}
- >
- <IconX className="text-destructive-fg" size={16} />
+ {attachments
+ .map((att, idx) => ({ att, idx }))
+ .map(({ att, idx }) => {
+ const isImage = att.type === 'image'
+ const ext = att.fileType || att.mimeType?.split('/')[1]
+ return (
+ <div key={`${att.type}-${idx}-${att.name}`} className="relative">
+ <TooltipProvider>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <div
+ className={cn(
+ 'relative border border-main-view-fg/5 rounded-lg size-14 overflow-hidden bg-main-view/40',
+ 'flex items-center justify-center'
+ )}
+ >
+ {/* Inner content by state */}
+ {isImage && att.dataUrl ? (
+ <img
+ className="object-cover w-full h-full"
+ src={att.dataUrl}
+ alt={`${att.name}`}
+ />
+ ) : (
+ <div className="flex flex-col items-center justify-center text-main-view-fg/70">
+ <IconPaperclip size={18} />
+ {ext && (
+ <span className="text-[10px] leading-none mt-0.5 uppercase opacity-70">
+ .{ext}
+ </span>
+ )}
+ </div>
+ )}
+
+ {/* Overlay spinner when processing */}
+ {att.processing && (
+ <div className="absolute inset-0 flex items-center justify-center bg-black/10">
+ <IconLoader2
+ size={18}
+ className="text-main-view-fg/80 animate-spin"
+ />
+ </div>
+ )}
+
+ {/* Overlay success check when processed */}
+ {att.processed && !att.processing && (
+ <div className="absolute inset-0 flex items-center justify-center bg-black/5">
+ <div className="bg-green-600/90 rounded-full p-1">
+ <IconCheck size={14} className="text-white" />
+ </div>
+ </div>
+ )}
+ </div>
+ </TooltipTrigger>
+ <TooltipContent>
+ <div className="text-xs">
+ <div className="font-medium truncate max-w-52" title={att.name}>
+ {att.name}
+ </div>
+ <div className="opacity-70">
+ {isImage
+ ? (att.mimeType || 'image')
+ : (ext ? `.${ext}` : 'document')}
+ {att.size ? ` · ${formatBytes(att.size)}` : ''}
+ </div>
+ </div>
+ </TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+
+ {/* Remove button disabled while processing - outside overflow-hidden container */}
+ {!att.processing && (
+ <div
+ className="absolute -top-1 -right-2.5 bg-destructive size-5 flex rounded-full items-center justify-center cursor-pointer"
+ onClick={() => handleRemoveAttachment(idx)}
+ >
+ <IconX className="text-destructive-fg" size={16} />
+ </div>
+ )}
</div>
- </div>
- )
- })}
- {docFiles.map((file, index) => (
- <div
- key={`doc-${index}`}
- className="relative border border-main-view-fg/5 rounded-lg px-2 py-1 text-xs flex items-center gap-2 bg-main-view/40"
- >
- <IconPaperclip size={14} className="text-main-view-fg/50" />
- <span className="max-w-48 truncate" title={file.name}>
- {file.name}
- </span>
- <div
- className="absolute -top-1 -right-2.5 bg-destructive size-5 flex rounded-full items-center justify-center cursor-pointer"
- onClick={() =>
- setDocFiles((prev) =>
- prev.filter((_, i) => i !== index)
- )
- }
- >
- <IconX className="text-destructive-fg" size={16} />
- </div>
- </div>
- ))}
+ )
+ })}
</div>
)}
<TextareaAutosize
@@ -975,7 +1185,15 @@ const ChatInput = ({
<TokenCounter
messages={threadMessages || []}
compact={true}
- uploadedFiles={uploadedFiles}
+ uploadedFiles={attachments
+ .filter((a) => a.type === 'image' && a.dataUrl)
+ .map((a) => ({
+ name: a.name,
+ type: a.mimeType || getFileTypeFromExtension(a.name),
+ size: a.size || 0,
+ base64: a.base64 || '',
+ dataUrl: a.dataUrl!,
+ }))}
/>
</div>
)}
@@ -992,24 +1210,13 @@ const ChatInput = ({
</Button>
) : (
<Button
- variant={
- !prompt.trim() &&
- uploadedFiles.length === 0 &&
- docFiles.length === 0
- ? null
- : 'default'
- }
+ variant={!prompt.trim() ? null : 'default'}
size="icon"
- disabled={
- (!prompt.trim() &&
- uploadedFiles.length === 0 &&
- docFiles.length === 0) ||
- ingestingDocs
- }
+ disabled={!prompt.trim() || ingestingAny}
data-test-id="send-message-button"
onClick={() => handleSendMessage(prompt)}
>
- {streamingContent || ingestingDocs ? (
+ {streamingContent || ingestingAny ? (
<span className="animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full" />
) : (
<ArrowRight className="text-primary-fg" />
@@ -1048,7 +1255,15 @@ const ChatInput = ({
<TokenCounter
messages={threadMessages || []}
compact={false}
- uploadedFiles={uploadedFiles}
+ uploadedFiles={attachments
+ .filter((a) => a.type === 'image' && a.dataUrl)
+ .map((a) => ({
+ name: a.name,
+ type: a.mimeType || getFileTypeFromExtension(a.name),
+ size: a.size || 0,
+ base64: a.base64 || '',
+ dataUrl: a.dataUrl!,
+ }))}
/>
</div>
)}
diff --git a/web-app/src/containers/ThreadContent.tsx b/web-app/src/containers/ThreadContent.tsx
index 2f83ad513..1c17d086b 100644
--- a/web-app/src/containers/ThreadContent.tsx
+++ b/web-app/src/containers/ThreadContent.tsx
@@ -26,6 +26,8 @@ import TokenSpeedIndicator from '@/containers/TokenSpeedIndicator'
import { useTranslation } from '@/i18n/react-i18next-compat'
import { useModelProvider } from '@/hooks/useModelProvider'
+import { extractFilesFromPrompt } from '@/lib/fileMetadata'
+import { createImageAttachment } from '@/types/attachment'
const CopyButton = ({ text }: { text: string }) => {
const [copied, setCopied] = useState(false)
@@ -102,6 +104,14 @@ export const ThreadContent = memo(
[item.content]
)
+ // Extract file metadata from user message text
+ const { files: attachedFiles, cleanPrompt } = useMemo(() => {
+ if (item.role === 'user') {
+ return extractFilesFromPrompt(text)
+ }
+ return { files: [], cleanPrompt: text }
+ }, [text, item.role])
+
const { reasoningSegment, textSegment } = useMemo(() => {
// Check for thinking formats
const hasThinkTag = text.includes('<think>') && !text.includes('</think>')
@@ -153,9 +163,9 @@ export const ThreadContent = memo(
if (toSendMessage) {
deleteMessage(toSendMessage.thread_id, toSendMessage.id ?? '')
// Extract text content and any attachments
- const textContent =
- toSendMessage.content?.find((c) => c.type === 'text')?.text?.value ||
- ''
+ const rawText =
+ toSendMessage.content?.find((c) => c.type === 'text')?.text?.value || ''
+ const { cleanPrompt: textContent } = extractFilesFromPrompt(rawText)
const attachments = toSendMessage.content
?.filter((c) => (c.type === 'image_url' && c.image_url?.url) || false)
.map((c) => {
@@ -164,24 +174,19 @@ export const ThreadContent = memo(
const [mimeType, base64] = url
.replace('data:', '')
.split(';base64,')
- return {
- name: 'image', // We don't have the original filename
- type: mimeType,
- size: 0, // We don't have the original size
+ return createImageAttachment({
+ name: 'image', // Original filename unavailable
+ mimeType,
+ size: 0,
base64: base64,
dataUrl: url,
- }
+ })
}
return null
})
- .filter(Boolean) as Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }>
- sendMessage(textContent, true, attachments)
+ .filter(Boolean)
+ // Keep embedded document metadata in the message for regenerate
+ sendMessage(rawText, true, attachments)
}
}, [deleteMessage, getMessages, item, sendMessage])
@@ -225,7 +230,56 @@ export const ThreadContent = memo(
<Fragment>
{item.role === 'user' && (
<div className="w-full">
- {/* Render attachments above the message bubble */}
+ {/* Render text content in the message bubble */}
+ {cleanPrompt && (
+ <div className="flex justify-end w-full h-full text-start break-words whitespace-normal">
+ <div className="bg-main-view-fg/4 relative text-main-view-fg p-2 rounded-md inline-block max-w-[80%] ">
+ <div className="select-text">
+ <RenderMarkdown
+ content={cleanPrompt}
+ components={linkComponents}
+ isUser
+ />
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Render document file attachments (extracted from message text) - below text */}
+ {attachedFiles.length > 0 && (
+ <div className="flex justify-end w-full mt-2 mb-2">
+ <div className="flex flex-wrap gap-2 max-w-[80%] justify-end">
+ {attachedFiles.map((file, index) => (
+ <div
+ key={file.id || index}
+ className="flex items-center gap-2 px-3 py-2 bg-main-view-fg/5 rounded-md border border-main-view-fg/10 text-xs"
+ >
+ <svg
+ className="w-4 h-4 text-main-view-fg/50"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ >
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
+ />
+ </svg>
+ <span className="text-main-view-fg">{file.name}</span>
+ {file.type && (
+ <span className="text-main-view-fg/40 text-[10px]">
+ .{file.type}
+ </span>
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+
+ {/* Render image attachments - below files */}
{item.content?.some(
(c) => (c.type === 'image_url' && c.image_url?.url) || false
) && (
@@ -258,33 +312,9 @@ export const ThreadContent = memo(
</div>
)}
- {/* Render text content in the message bubble */}
- {item.content?.some((c) => c.type === 'text' && c.text?.value) && (
- <div className="flex justify-end w-full h-full text-start break-words whitespace-normal">
- <div className="bg-main-view-fg/4 relative text-main-view-fg p-2 rounded-md inline-block max-w-[80%] ">
- <div className="select-text">
- {item.content
- ?.filter((c) => c.type === 'text' && c.text?.value)
- .map((contentPart, index) => (
- <div key={index}>
- <RenderMarkdown
- content={contentPart.text!.value}
- components={linkComponents}
- isUser
- />
- </div>
- ))}
- </div>
- </div>
- </div>
- )}
-
<div className="flex items-center justify-end gap-2 text-main-view-fg/60 text-xs mt-2">
<EditMessageDialog
- message={
- item.content?.find((c) => c.type === 'text')?.text?.value ||
- ''
- }
+ message={cleanPrompt || ''}
imageUrls={
item.content
?.filter((c) => c.type === 'image_url' && c.image_url?.url)
diff --git a/web-app/src/hooks/useChat.ts b/web-app/src/hooks/useChat.ts
index 79e414185..13dd906fc 100644
--- a/web-app/src/hooks/useChat.ts
+++ b/web-app/src/hooks/useChat.ts
@@ -37,6 +37,8 @@ import {
import { useAssistant } from './useAssistant'
import { useShallow } from 'zustand/shallow'
import { TEMPORARY_CHAT_QUERY_ID, TEMPORARY_CHAT_ID } from '@/constants/chat'
+import { toast } from 'sonner'
+import { Attachment } from '@/types/attachment'
export const useChat = () => {
const [
@@ -257,14 +259,12 @@ export const useChat = () => {
async (
message: string,
troubleshooting = true,
- attachments?: Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }>,
- projectId?: string
+ attachments?: Attachment[],
+ projectId?: string,
+ updateAttachmentProcessing?: (
+ fileName: string,
+ status: 'processing' | 'done' | 'error' | 'clear_docs' | 'clear_all'
+ ) => void
) => {
const activeThread = await getCurrentThread(projectId)
const selectedProvider = useModelProvider.getState().selectedProvider
@@ -272,14 +272,124 @@ export const useChat = () => {
resetTokenSpeed()
if (!activeThread || !activeProvider) return
+
+ // Separate images and documents
+ const images = attachments?.filter((a) => a.type === 'image') || []
+ const documents = attachments?.filter((a) => a.type === 'document') || []
+
+ // Process attachments BEFORE sending
+ const processedAttachments: Attachment[] = []
+
+ // 1) Images ingestion (placeholder/no-op for now)
+ // Track attachment ingestion; all must succeed before sending
+
+ if (images.length > 0) {
+ for (const img of images) {
+ try {
+ // Skip if already processed (ingested in ChatInput when thread existed)
+ if (img.processed && img.id) {
+ processedAttachments.push(img)
+ continue
+ }
+
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(img.name, 'processing')
+ }
+ // Upload image, get id/URL
+ const res = await serviceHub.uploads().ingestImage(activeThread.id, img)
+ processedAttachments.push({
+ ...img,
+ id: res.id,
+ processed: true,
+ processing: false,
+ })
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(img.name, 'done')
+ }
+ } catch (err) {
+ console.error(`Failed to ingest image ${img.name}:`, err)
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(img.name, 'error')
+ }
+ const desc = err instanceof Error ? err.message : String(err)
+ toast.error('Failed to ingest image attachment', { description: desc })
+ return
+ }
+ }
+ }
+
+ if (documents.length > 0) {
+ try {
+ for (const doc of documents) {
+ // Skip if already processed (ingested in ChatInput when thread existed)
+ if (doc.processed && doc.id) {
+ processedAttachments.push(doc)
+ continue
+ }
+
+ // Update UI to show spinner on this file
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(doc.name, 'processing')
+ }
+
+ try {
+ const res = await serviceHub
+ .uploads()
+ .ingestFileAttachment(activeThread.id, doc)
+
+ // Add processed document with ID
+ processedAttachments.push({
+ ...doc,
+ id: res.id,
+ size: res.size ?? doc.size,
+ chunkCount: res.chunkCount ?? doc.chunkCount,
+ processing: false,
+ processed: true,
+ })
+
+ // Update UI to show done state
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(doc.name, 'done')
+ }
+ } catch (err) {
+ console.error(`Failed to ingest ${doc.name}:`, err)
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing(doc.name, 'error')
+ }
+ throw err // Re-throw to handle in outer catch
+ }
+ }
+ } catch (err) {
+ console.error('Failed to ingest documents:', err)
+ const desc = err instanceof Error ? err.message : String(err)
+ toast.error('Failed to index attachments', { description: desc })
+ // Don't continue with message send if ingestion failed
+ return
+ }
+ }
+
+ // All attachments prepared successfully
+
const messages = getMessages(activeThread.id)
const abortController = new AbortController()
setAbortController(activeThread.id, abortController)
updateStreamingContent(emptyThreadContent)
updatePromptProgress(undefined)
// Do not add new message on retry
- if (troubleshooting)
- addMessage(newUserThreadContent(activeThread.id, message, attachments))
+ // All attachments (images + docs) ingested successfully.
+ // Build the user content once; use it for both the outbound request
+ // and persisting to the store so both are identical.
+ if (updateAttachmentProcessing) {
+ updateAttachmentProcessing('__CLEAR_ALL__' as any, 'clear_all')
+ }
+ const userContent = newUserThreadContent(
+ activeThread.id,
+ message,
+ processedAttachments
+ )
+ if (troubleshooting) {
+ addMessage(userContent)
+ }
updateThreadTimestamp(activeThread.id)
usePrompt.getState().setPrompt('')
const selectedModel = useModelProvider.getState().selectedModel
@@ -296,7 +406,8 @@ export const useChat = () => {
? renderInstructions(currentAssistant.instructions)
: undefined
)
- if (troubleshooting) builder.addUserMessage(message, attachments)
+ // Using addUserMessage to respect legacy code. Should be using the userContent above.
+ if (troubleshooting) builder.addUserMessage(userContent)
let isCompleted = false
diff --git a/web-app/src/lib/__tests__/messages.test.ts b/web-app/src/lib/__tests__/messages.test.ts
index 752a4ea51..bd7e478b4 100644
--- a/web-app/src/lib/__tests__/messages.test.ts
+++ b/web-app/src/lib/__tests__/messages.test.ts
@@ -137,7 +137,9 @@ describe('CompletionMessagesBuilder', () => {
it('should add user message to messages array', () => {
const builder = new CompletionMessagesBuilder([])
- builder.addUserMessage('Hello, how are you?')
+ builder.addUserMessage(
+ createMockThreadMessage('user', 'Hello, how are you?')
+ )
const result = builder.getMessages()
expect(result).toHaveLength(1)
@@ -150,8 +152,8 @@ describe('CompletionMessagesBuilder', () => {
it('should not add consecutive user messages', () => {
const builder = new CompletionMessagesBuilder([])
- builder.addUserMessage('First message')
- builder.addUserMessage('Second message')
+ builder.addUserMessage(createMockThreadMessage('user', 'First message'))
+ builder.addUserMessage(createMockThreadMessage('user', 'Second message'))
const result = builder.getMessages()
expect(result).toHaveLength(1)
@@ -161,7 +163,7 @@ describe('CompletionMessagesBuilder', () => {
it('should handle empty user message', () => {
const builder = new CompletionMessagesBuilder([])
- builder.addUserMessage('')
+ builder.addUserMessage(createMockThreadMessage('user', ''))
const result = builder.getMessages()
expect(result).toHaveLength(1)
@@ -338,7 +340,7 @@ describe('CompletionMessagesBuilder', () => {
'You are helpful'
)
- builder.addUserMessage('How are you?')
+ builder.addUserMessage(createMockThreadMessage('user', 'How are you?'))
builder.addAssistantMessage('I am well, thank you!')
builder.addToolMessage('Tool response', 'call_123')
@@ -353,7 +355,7 @@ describe('CompletionMessagesBuilder', () => {
it('should return the same array reference (not immutable)', () => {
const builder = new CompletionMessagesBuilder([])
- builder.addUserMessage('Test message')
+ builder.addUserMessage(createMockThreadMessage('user', 'Test message'))
const result1 = builder.getMessages()
builder.addAssistantMessage('Response')
diff --git a/web-app/src/lib/completion.ts b/web-app/src/lib/completion.ts
index ece27ed6c..301941cf1 100644
--- a/web-app/src/lib/completion.ts
+++ b/web-app/src/lib/completion.ts
@@ -36,6 +36,8 @@ import { CompletionMessagesBuilder } from './messages'
import { ChatCompletionMessageToolCall } from 'openai/resources'
import { ExtensionManager } from './extension'
import { useAppState } from '@/hooks/useAppState'
+import { injectFilesIntoPrompt } from './fileMetadata'
+import { Attachment } from '@/types/attachment'
export type ChatCompletionResponse =
| chatCompletion
@@ -54,38 +56,48 @@ export type ChatCompletionResponse =
export const newUserThreadContent = (
threadId: string,
content: string,
- attachments?: Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }>
+ attachments?: Attachment[]
): ThreadMessage => {
+ // Separate images and documents
+ const images = attachments?.filter((a) => a.type === 'image') || []
+ const documents = attachments?.filter((a) => a.type === 'document') || []
+
+ // Inject document metadata into the text content (id, name, fileType only - no path)
+ const docMetadata = documents
+ .filter((doc) => doc.id) // Only include processed documents
+ .map((doc) => ({
+ id: doc.id!,
+ name: doc.name,
+ type: doc.fileType,
+ size: typeof doc.size === 'number' ? doc.size : undefined,
+ chunkCount: typeof doc.chunkCount === 'number' ? doc.chunkCount : undefined,
+ }))
+
+ const textWithFiles =
+ docMetadata.length > 0 ? injectFilesIntoPrompt(content, docMetadata) : content
+
const contentParts = [
{
type: ContentType.Text,
text: {
- value: content,
+ value: textWithFiles,
annotations: [],
},
},
]
- // Add attachments to content array
- if (attachments) {
- attachments.forEach((attachment) => {
- if (attachment.type.startsWith('image/')) {
- contentParts.push({
- type: ContentType.Image,
- image_url: {
- url: `data:${attachment.type};base64,${attachment.base64}`,
- detail: 'auto',
- },
- } as any)
- }
- })
- }
+ // Add image attachments to content array
+ images.forEach((img) => {
+ if (img.base64 && img.mimeType) {
+ contentParts.push({
+ type: ContentType.Image,
+ image_url: {
+ url: `data:${img.mimeType};base64,${img.base64}`,
+ detail: 'auto',
+ },
+ } as any)
+ }
+ })
return {
type: 'text',
diff --git a/web-app/src/lib/fileMetadata.ts b/web-app/src/lib/fileMetadata.ts
new file mode 100644
index 000000000..21067c56e
--- /dev/null
+++ b/web-app/src/lib/fileMetadata.ts
@@ -0,0 +1,96 @@
+/**
+ * Utility functions for embedding and extracting file metadata from user prompts
+ */
+
+export interface FileMetadata {
+ id: string
+ name: string
+ type?: string
+ size?: number
+ chunkCount?: number
+}
+
+const FILE_METADATA_START = '[ATTACHED_FILES]'
+const FILE_METADATA_END = '[/ATTACHED_FILES]'
+
+/**
+ * Inject file metadata into user prompt at the end
+ * @param prompt - The user's message
+ * @param files - Array of file metadata
+ * @returns Prompt with embedded file metadata
+ */
+export function injectFilesIntoPrompt(
+ prompt: string,
+ files: FileMetadata[]
+): string {
+ if (!files || files.length === 0) return prompt
+
+ const fileLines = files
+ .map((file) => {
+ const parts = [`file_id: ${file.id}`, `name: ${file.name}`]
+ if (file.type) parts.push(`type: ${file.type}`)
+ if (typeof file.size === 'number') parts.push(`size: ${file.size}`)
+ if (typeof file.chunkCount === 'number') parts.push(`chunks: ${file.chunkCount}`)
+ return `- ${parts.join(', ')}`
+ })
+ .join('\n')
+
+ const fileBlock = `\n\n${FILE_METADATA_START}\n${fileLines}\n${FILE_METADATA_END}`
+
+ return prompt + fileBlock
+}
+
+/**
+ * Extract file metadata from user prompt
+ * @param prompt - The prompt potentially containing file metadata
+ * @returns Object containing extracted files and clean prompt
+ */
+export function extractFilesFromPrompt(prompt: string): {
+ files: FileMetadata[]
+ cleanPrompt: string
+} {
+ if (!prompt.includes(FILE_METADATA_START)) {
+ return { files: [], cleanPrompt: prompt }
+ }
+
+ const startIndex = prompt.indexOf(FILE_METADATA_START)
+ const endIndex = prompt.indexOf(FILE_METADATA_END)
+
+ if (startIndex === -1 || endIndex === -1 || endIndex <= startIndex) {
+ return { files: [], cleanPrompt: prompt }
+ }
+
+ // Extract the file metadata block
+ const fileBlock = prompt.substring(
+ startIndex + FILE_METADATA_START.length,
+ endIndex
+ )
+
+ // Parse file metadata (flexible key:value parser)
+ const files: FileMetadata[] = []
+ const lines = fileBlock.trim().split('\n')
+ for (const line of lines) {
+ const trimmed = line.replace(/^\s*-\s*/, '').trim()
+ const parts = trimmed.split(',')
+ const map: Record<string, string> = {}
+ for (const part of parts) {
+ const [k, ...rest] = part.split(':')
+ if (!k || rest.length === 0) continue
+ map[k.trim()] = rest.join(':').trim()
+ }
+ const id = map['file_id']
+ const name = map['name']
+ if (!id || !name) continue
+ const type = map['type']
+ const size = map['size'] ? Number(map['size']) : undefined
+ const chunkCount = map['chunks'] ? Number(map['chunks']) : undefined
+ files.push({ id, name, ...(type && { type }), ...(typeof size === 'number' && !Number.isNaN(size) ? { size } : {}), ...(typeof chunkCount === 'number' && !Number.isNaN(chunkCount) ? { chunkCount } : {}) })
+ }
+
+ // Extract clean prompt (everything before [ATTACHED_FILES])
+ const cleanPrompt = prompt
+ .substring(0, startIndex)
+ .trim()
+
+ return { files, cleanPrompt }
+}
diff --git a/web-app/src/lib/messages.ts b/web-app/src/lib/messages.ts
index fd2e84181..61acf8bde 100644
--- a/web-app/src/lib/messages.ts
+++ b/web-app/src/lib/messages.ts
@@ -3,6 +3,7 @@ import { ChatCompletionMessageParam } from 'token.js'
import { ChatCompletionMessageToolCall } from 'openai/resources'
import { ThreadMessage } from '@janhq/core'
import { removeReasoningContent } from '@/utils/reasoning'
+// Attachments are now handled upstream in newUserThreadContent
/**
* @fileoverview Helper functions for creating chat completion request.
@@ -21,106 +22,62 @@ export class CompletionMessagesBuilder {
this.messages.push(
...messages
.filter((e) => !e.metadata?.error)
- .map<ChatCompletionMessageParam>((msg) => {
- if (msg.role === 'assistant') {
- return {
- role: msg.role,
- content: removeReasoningContent(
- msg.content[0]?.text?.value || '.'
- ),
- } as ChatCompletionMessageParam
- } else {
- // For user messages, handle multimodal content
- if (msg.content.length > 1) {
- // Multiple content parts (text + images + files)
-
- const content = msg.content.map((contentPart) => {
- if (contentPart.type === 'text') {
- return {
- type: 'text',
- text: contentPart.text?.value || '',
- }
- } else if (contentPart.type === 'image_url') {
- return {
- type: 'image_url',
- image_url: {
- url: contentPart.image_url?.url || '',
- detail: contentPart.image_url?.detail || 'auto',
- },
- }
- } else {
- return contentPart
- }
- })
- return {
- role: msg.role,
- content,
- } as ChatCompletionMessageParam
- } else {
- // Single text content
- return {
- role: msg.role,
- content: msg.content[0]?.text?.value || '.',
- } as ChatCompletionMessageParam
- }
- }
- })
+ .map<ChatCompletionMessageParam>((msg) => this.toCompletionParamFromThread(msg))
)
}
- /**
- * Add a user message to the messages array.
- * @param content - The content of the user message.
- * @param attachments - Optional attachments for the message.
- */
- addUserMessage(
- content: string,
- attachments?: Array<{
- name: string
- type: string
- size: number
- base64: string
- dataUrl: string
- }>
- ) {
- // Ensure no consecutive user messages
- if (this.messages[this.messages.length - 1]?.role === 'user') {
- this.messages.pop()
+ // Normalize a ThreadMessage into a ChatCompletionMessageParam for Token.js
+ private toCompletionParamFromThread(msg: ThreadMessage): ChatCompletionMessageParam {
+ if (msg.role === 'assistant') {
+ return {
+ role: 'assistant',
+ content: removeReasoningContent(msg.content?.[0]?.text?.value || '.'),
+ } as ChatCompletionMessageParam
}
- // Handle multimodal content with attachments
- if (attachments && attachments.length > 0) {
- const messageContent: any[] = [
- {
- type: 'text',
- text: content,
- },
- ]
+ // System messages are uncommon here; normalize to plain text
+ if (msg.role === 'system') {
+ return {
+ role: 'system',
+ content: msg.content?.[0]?.text?.value || '.',
+ } as ChatCompletionMessageParam
+ }
- // Add attachments (images and PDFs)
- attachments.forEach((attachment) => {
- if (attachment.type.startsWith('image/')) {
- messageContent.push({
+ // User messages: handle multimodal content
+ if (Array.isArray(msg.content) && msg.content.length > 1) {
+ const content = msg.content.map((part: any) => {
+ if (part.type === 'text') {
+ return { type: 'text', text: part.text?.value ?? '' }
+ }
+ if (part.type === 'image_url') {
+ return {
type: 'image_url',
- image_url: {
- url: `data:${attachment.type};base64,${attachment.base64}`,
- detail: 'auto',
- },
- })
+ image_url: { url: part.image_url?.url || '', detail: part.image_url?.detail || 'auto' },
+ }
}
+ return part
})
+ return { role: 'user', content } as any
+ }
+ // Single text part
+ const text = msg?.content?.[0]?.text?.value ?? '.'
+ return { role: 'user', content: text }
+ }
- this.messages.push({
- role: 'user',
- content: messageContent,
- } as any)
- } else {
- // Text-only message
- this.messages.push({
- role: 'user',
- content: content,
- })
+ /**
+ * Add a user message to the messages array from a parsed ThreadMessage.
+ * Upstream code should construct the message via newUserThreadContent
+ * and pass it here to avoid duplicated logic.
+ */
+ addUserMessage(message: ThreadMessage) {
+ if (message.role !== 'user') {
+ throw new Error('addUserMessage expects a user ThreadMessage')
+ }
+ // Ensure no consecutive user messages
+ if (this.messages[this.messages.length - 1]?.role === 'user') {
+ this.messages.pop()
}
+ this.messages.push(this.toCompletionParamFromThread(message))
}
/**
diff --git a/web-app/src/services/index.ts b/web-app/src/services/index.ts
index c5a585171..65a117986 100644
--- a/web-app/src/services/index.ts
+++ b/web-app/src/services/index.ts
@@ -29,6 +29,8 @@ import { DefaultDeepLinkService } from './deeplink/default'
import { DefaultProjectsService } from './projects/default'
import { DefaultRAGService } from './rag/default'
import type { RAGService } from './rag/types'
+import { DefaultUploadsService } from './uploads/default'
+import type { UploadsService } from './uploads/types'
// Import service types
import type { ThemeService } from './theme/types'
@@ -73,6 +75,7 @@ export interface ServiceHub {
deeplink(): DeepLinkService
projects(): ProjectsService
rag(): RAGService
+ uploads(): UploadsService
}
class PlatformServiceHub implements ServiceHub {
@@ -96,6 +99,7 @@ class PlatformServiceHub implements ServiceHub {
private deepLinkService: DeepLinkService = new DefaultDeepLinkService()
private projectsService: ProjectsService = new DefaultProjectsService()
private ragService: RAGService = new DefaultRAGService()
+ private uploadsService: UploadsService = new DefaultUploadsService()
private initialized = false
/**
@@ -352,6 +356,11 @@ class PlatformServiceHub implements ServiceHub {
this.ensureInitialized()
return this.ragService
}
+
+ uploads(): UploadsService {
+ this.ensureInitialized()
+ return this.uploadsService
+ }
}
export async function initializeServiceHub(): Promise<ServiceHub> {
diff --git a/web-app/src/services/uploads/default.ts b/web-app/src/services/uploads/default.ts
new file mode 100644
index 000000000..0b26bd274
--- /dev/null
+++ b/web-app/src/services/uploads/default.ts
@@ -0,0 +1,32 @@
+import type { UploadsService, UploadResult } from './types'
+import type { Attachment, } from '@/types/attachment'
+import { ulid } from 'ulidx'
+import { ExtensionManager } from '@/lib/extension'
+import { ExtensionTypeEnum, type RAGExtension, type IngestAttachmentsResult } from '@janhq/core'
+
+export class DefaultUploadsService implements UploadsService {
+ async ingestImage(_threadId: string, attachment: Attachment): Promise<UploadResult> {
+ if (attachment.type !== 'image') throw new Error('ingestImage: attachment is not image')
+ // Placeholder upload flow; swap for real API call when backend is ready
+ await new Promise((r) => setTimeout(r, 100))
+ return { id: ulid() }
+ }
+
+ async ingestFileAttachment(threadId: string, attachment: Attachment): Promise<UploadResult> {
+ if (attachment.type !== 'document') throw new Error('ingestFileAttachment: attachment is not document')
+ const ext = ExtensionManager.getInstance().get<RAGExtension>(ExtensionTypeEnum.RAG)
+ if (!ext?.ingestAttachments) throw new Error('RAG extension not available')
+ const res: IngestAttachmentsResult = await ext.ingestAttachments(threadId, [
+ { path: attachment.path!, name: attachment.name, type: attachment.fileType, size: attachment.size },
+ ])
+ const files = res.files
+ if (Array.isArray(files) && files[0]?.id) {
+ return {
+ id: files[0].id,
+ size: typeof files[0].size === 'number' ? Number(files[0].size) : undefined,
+ chunkCount: typeof files[0].chunk_count === 'number' ? Number(files[0].chunk_count) : undefined,
+ }
+ }
+ throw new Error('Failed to resolve ingested attachment id')
+ }
+}
diff --git a/web-app/src/services/uploads/types.ts b/web-app/src/services/uploads/types.ts
new file mode 100644
index 000000000..4f36b8d51
--- /dev/null
+++ b/web-app/src/services/uploads/types.ts
@@ -0,0 +1,16 @@
+import type { Attachment } from '@/types/attachment'
+
+export type UploadResult = {
+ id: string
+ url?: string
+ size?: number
+ chunkCount?: number
+}
+
+export interface UploadsService {
+ // Ingest an image attachment (placeholder upload)
+ ingestImage(threadId: string, attachment: Attachment): Promise<UploadResult>
+
+ // Ingest a document attachment in the context of a thread
+ ingestFileAttachment(threadId: string, attachment: Attachment): Promise<UploadResult>
+}
diff --git a/web-app/src/types/attachment.ts b/web-app/src/types/attachment.ts
new file mode 100644
index 000000000..9ae23eccd
--- /dev/null
+++ b/web-app/src/types/attachment.ts
@@ -0,0 +1,57 @@
+/**
+ * Unified attachment type for both images and documents
+ */
+export type Attachment = {
+ name: string
+ type: 'image' | 'document'
+
+ // Common fields
+ size?: number
+ chunkCount?: number
+ processing?: boolean
+ processed?: boolean
+ error?: string
+
+ // For images (before upload)
+ base64?: string
+ dataUrl?: string
+ mimeType?: string
+
+ // For documents (local files)
+ path?: string
+ fileType?: string // e.g., 'pdf', 'docx'
+
+ // After processing (images uploaded, documents ingested)
+ id?: string
+}
+
+/**
+ * Helper to create image attachment
+ */
+export function createImageAttachment(data: {
+ name: string
+ base64: string
+ dataUrl: string
+ mimeType: string
+ size: number
+}): Attachment {
+ return {
+ ...data,
+ type: 'image',
+ }
+}
+
+/**
+ * Helper to create document attachment
+ */
+export function createDocumentAttachment(data: {
+ name: string
+ path: string
+ fileType?: string
+ size?: number
+}): Attachment {
+ return {
+ ...data,
+ type: 'document',
+ }
+}