@mastra/memory 1.39.1 → 1.40.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +52 -13
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/processors/index.cjs +1 -1
  7. package/dist/processors/index.js +1 -1
  8. package/dist/processors/observational-memory/buffering-coordinator.d.ts.map +1 -1
  9. package/dist/processors/observational-memory/constants.d.ts +3 -3
  10. package/dist/processors/observational-memory/constants.d.ts.map +1 -1
  11. package/dist/processors/observational-memory/error.d.ts +10 -2
  12. package/dist/processors/observational-memory/error.d.ts.map +1 -1
  13. package/dist/processors/observational-memory/extractor.d.ts.map +1 -1
  14. package/dist/processors/observational-memory/hooks.d.ts +1 -1
  15. package/dist/processors/observational-memory/hooks.d.ts.map +1 -1
  16. package/dist/processors/observational-memory/model-by-input-tokens.d.ts.map +1 -1
  17. package/dist/processors/observational-memory/observation-strategies/async-buffer.d.ts +2 -2
  18. package/dist/processors/observational-memory/observation-strategies/async-buffer.d.ts.map +1 -1
  19. package/dist/processors/observational-memory/observation-strategies/base.d.ts.map +1 -1
  20. package/dist/processors/observational-memory/observation-strategies/resource-scoped.d.ts.map +1 -1
  21. package/dist/processors/observational-memory/observation-strategies/sync.d.ts +2 -2
  22. package/dist/processors/observational-memory/observation-strategies/sync.d.ts.map +1 -1
  23. package/dist/processors/observational-memory/observation-turn/step.d.ts.map +1 -1
  24. package/dist/processors/observational-memory/observation-turn/turn.d.ts.map +1 -1
  25. package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
  26. package/dist/processors/observational-memory/observer-runner.d.ts.map +1 -1
  27. package/dist/processors/observational-memory/processor.d.ts +7 -7
  28. package/dist/processors/observational-memory/processor.d.ts.map +1 -1
  29. package/dist/processors/observational-memory/reflector-runner.d.ts.map +1 -1
  30. package/dist/processors/observational-memory/retry.d.ts.map +1 -1
  31. package/dist/processors/observational-memory/subconscious/curate.d.ts.map +1 -1
  32. package/dist/processors/observational-memory/subconscious/index.d.ts.map +1 -1
  33. package/dist/processors/observational-memory/subconscious/pinned-state-processor.d.ts.map +1 -1
  34. package/dist/processors/observational-memory/subconscious/remind-continuation.d.ts.map +1 -1
  35. package/dist/processors/observational-memory/subconscious/remind.d.ts.map +1 -1
  36. package/dist/processors/observational-memory/subconscious/semantic-index.d.ts.map +1 -1
  37. package/dist/processors/observational-memory/summarize.d.ts.map +1 -1
  38. package/dist/processors/observational-memory/token-counter.d.ts.map +1 -1
  39. package/dist/processors/observational-memory/working-memory-extractor.d.ts.map +1 -1
  40. package/dist/processors/working-memory-state/processor.d.ts.map +1 -1
  41. package/dist/{src-DnCjNqwE.cjs → src-BFJ_viw1.cjs} +670 -623
  42. package/dist/src-BFJ_viw1.cjs.map +1 -0
  43. package/dist/{src-CLQXrKvR.js → src-tZXqilfm.js} +670 -623
  44. package/dist/src-tZXqilfm.js.map +1 -0
  45. package/dist/tools/om-tools.d.ts +1 -1
  46. package/dist/tools/om-tools.d.ts.map +1 -1
  47. package/dist/tools/working-memory.d.ts.map +1 -1
  48. package/package.json +5 -5
  49. package/dist/docs/SKILL.md +0 -77
  50. package/dist/docs/assets/SOURCE_MAP.json +0 -230
  51. package/dist/docs/references/docs-agents-human-in-the-loop.md +0 -748
  52. package/dist/docs/references/docs-agents-networks.md +0 -186
  53. package/dist/docs/references/docs-evals-evals-with-memory.md +0 -151
  54. package/dist/docs/references/docs-guides-context-engineering.md +0 -304
  55. package/dist/docs/references/docs-harness-background-tasks.md +0 -408
  56. package/dist/docs/references/docs-harness-goals.md +0 -144
  57. package/dist/docs/references/docs-memory-memory-processors.md +0 -396
  58. package/dist/docs/references/docs-memory-message-history.md +0 -424
  59. package/dist/docs/references/docs-memory-multi-user-threads.md +0 -210
  60. package/dist/docs/references/docs-memory-observational-memory.md +0 -1028
  61. package/dist/docs/references/docs-memory-overview.md +0 -305
  62. package/dist/docs/references/docs-memory-semantic-recall.md +0 -483
  63. package/dist/docs/references/docs-memory-working-memory.md +0 -450
  64. package/dist/docs/references/docs-signals-overview.md +0 -94
  65. package/dist/docs/references/docs-storage.md +0 -224
  66. package/dist/docs/references/docs-subagents.md +0 -554
  67. package/dist/docs/references/integrations-channels-github.md +0 -156
  68. package/dist/docs/references/integrations-databases-aurora-dsql.md +0 -432
  69. package/dist/docs/references/integrations-databases-dynamodb.md +0 -286
  70. package/dist/docs/references/integrations-databases-elasticsearch.md +0 -158
  71. package/dist/docs/references/integrations-databases-libsql.md +0 -161
  72. package/dist/docs/references/integrations-databases-mongodb.md +0 -269
  73. package/dist/docs/references/integrations-databases-oracledb.md +0 -241
  74. package/dist/docs/references/integrations-databases-postgresql.md +0 -561
  75. package/dist/docs/references/integrations-databases-redis.md +0 -250
  76. package/dist/docs/references/integrations-databases-upstash.md +0 -164
  77. package/dist/docs/references/integrations-databases-valkey.md +0 -103
  78. package/dist/docs/references/reference-core-getMemory.md +0 -53
  79. package/dist/docs/references/reference-core-listMemory.md +0 -59
  80. package/dist/docs/references/reference-file-based-agents-memory.md +0 -60
  81. package/dist/docs/references/reference-memory-clone-utilities.md +0 -205
  82. package/dist/docs/references/reference-memory-cloneThread.md +0 -177
  83. package/dist/docs/references/reference-memory-copyThread.md +0 -65
  84. package/dist/docs/references/reference-memory-createThread.md +0 -72
  85. package/dist/docs/references/reference-memory-getThreadById.md +0 -28
  86. package/dist/docs/references/reference-memory-listThreads.md +0 -149
  87. package/dist/docs/references/reference-memory-memory-class.md +0 -160
  88. package/dist/docs/references/reference-memory-observational-memory.md +0 -978
  89. package/dist/docs/references/reference-memory-settled.md +0 -67
  90. package/dist/docs/references/reference-memory-summarizeConversation.md +0 -101
  91. package/dist/docs/references/reference-memory-summarizeThread.md +0 -95
  92. package/dist/docs/references/reference-memory-updateThreadResourceId.md +0 -46
  93. package/dist/docs/references/reference-migrations-agentnetwork.md +0 -102
  94. package/dist/docs/references/reference-migrations-upgrade-to-v1-memory.md +0 -290
  95. package/dist/docs/references/reference-processors-token-limiter-processor.md +0 -169
  96. package/dist/docs/references/reference-vectors-libsql.md +0 -309
  97. package/dist/docs/references/reference-vectors-mongodb.md +0 -655
  98. package/dist/docs/references/reference-vectors-oracledb.md +0 -349
  99. package/dist/docs/references/reference-vectors-pg.md +0 -439
  100. package/dist/docs/references/reference-vectors-upstash.md +0 -308
  101. package/dist/src-CLQXrKvR.js.map +0 -1
  102. package/dist/src-DnCjNqwE.cjs.map +0 -1
@@ -200,7 +200,7 @@ export declare function recallThreadFromStart({ memory, threadId, resourceId, pa
200
200
  maxTokens?: number;
201
201
  }): Promise<RecallResult>;
202
202
  export declare const recallTool: (_memoryConfig?: MemoryConfigInternal, options?: {
203
- retrievalScope?: "thread" | "resource";
203
+ retrievalScope?: 'thread' | 'resource';
204
204
  searchEnabled?: boolean;
205
205
  /** Resolves the observational memory engine so search hits can be dated and paged by observation group. */
206
206
  getOMEngine?: () => Promise<OMTimelineEngine | null> | OMTimelineEngine | null;
@@ -1 +1 @@
1
- {"version":3,"file":"om-tools.d.ts","sourceRoot":"","sources":["../../src/tools/om-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoBhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;AAiB1C,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,k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nF;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACpD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA2CzB;AAcD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CA2BlG;AAED,eAAO,MAAM,uBAAuB,kBAAmB,oBAAoB,0LAuO1E,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAAY,oBAAoB,0LA6GvF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAKnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "1.39.1",
3
+ "version": "1.40.0-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,10 +52,10 @@
52
52
  "probe-image-size": "^7.4.0",
53
53
  "xxhash-wasm": "^1.1.0",
54
54
  "zod": "^4.6.7",
55
- "@mastra/schema-compat": "1.3.17"
55
+ "@mastra/schema-compat": "0.0.0-chart-headers-20261029154339"
56
56
  },
57
57
  "devDependencies": {
58
- "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.135",
58
+ "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.137",
59
59
  "@copilotkit/aimock": "^1.46.0",
60
60
  "@types/json-schema": "^7.0.15",
61
61
  "@types/node": "22.19.15",
@@ -66,13 +66,13 @@
66
66
  "tsx": "^4.23.15",
67
67
  "typescript": "^6.0.3",
68
68
  "vitest": "4.1.12",
69
+ "@internal/ai-sdk-v4": "0.0.93",
69
70
  "@internal/ai-sdk-v5": "0.0.93",
70
71
  "@internal/ai-v6": "0.0.93",
71
72
  "@internal/ai-v7": "0.0.93",
72
73
  "@internal/lint": "0.0.146",
73
74
  "@internal/types-builder": "0.0.121",
74
- "@internal/ai-sdk-v4": "0.0.93",
75
- "@mastra/core": "1.80.0"
75
+ "@mastra/core": "0.0.0-chart-headers-20261029154339"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@mastra/core": ">=1.80.0-0 <2.0.0-0"
@@ -1,77 +0,0 @@
1
- ---
2
- name: mastra-memory
3
- description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
- metadata:
5
- package: "@mastra/memory"
6
- version: "1.39.1"
7
- ---
8
-
9
- ## When to use
10
-
11
- Use this skill whenever you are working with @mastra/memory to obtain the domain-specific knowledge.
12
-
13
- ## How to use
14
-
15
- Read the individual reference documents for detailed explanations and code examples.
16
-
17
- ### Docs
18
-
19
- - [Human-in-the-loop](references/docs-agents-human-in-the-loop.md) - Add human-in-the-loop controls to Mastra agents with tool approval and suspended execution, so people can provide input before a run resumes or stops.
20
- - [Agent networks](references/docs-agents-networks.md) - Understand deprecated Mastra agent networks, including multi-agent routing, structured output, tool approvals, and migration to supervisor agents.
21
- - [Evals with memory](references/docs-evals-evals-with-memory.md) - Run Mastra evals against memory-enabled agents using shared or per-item threads, observational memory, runEvals, and dataset experiments.
22
- - [Context engineering](references/docs-guides-context-engineering.md) - Engineer the context Mastra agents receive by combining instructions, inline data, tools, RAG, filesystems, memory, and observational memory.
23
- - [Background tasks](references/docs-harness-background-tasks.md) - Run long-lived Mastra tool calls and subagents as background tasks while streams remain open, with per-call dispositions, cancellation, and completion events.
24
- - [Goals](references/docs-harness-goals.md) - Set a durable goal for a Mastra agent so an execution loop evaluates progress and continues working until the objective completes or its run budget ends.
25
- - [Memory processors](references/docs-memory-memory-processors.md) - Configure Mastra memory processors to filter, trim, transform, and deduplicate messages before they reach the model while managing context limits.
26
- - [Message history](references/docs-memory-message-history.md) - Store and retrieve recent Mastra conversation messages, configure history limits and thread titles, and query threads for chat interfaces.
27
- - [Multi-user threads](references/docs-memory-multi-user-threads.md) - Share one Mastra memory thread across multiple users by preserving speaker identity in messages and combining history with observational or working memory.
28
- - [Observational Memory](references/docs-memory-observational-memory.md) - Configure Mastra Observational Memory to compress long conversations into durable observations while preserving context across threads and sessions.
29
- - [Memory](references/docs-memory-overview.md) - Add memory to Mastra agents with message history, semantic recall, working memory, and observational memory across threads and multi-agent delegation.
30
- - [Semantic recall](references/docs-memory-semantic-recall.md) - Retrieve relevant messages from past Mastra conversations with semantic recall, vector search, embeddings, metadata filters, and configurable storage.
31
- - [Working memory](references/docs-memory-working-memory.md) - Persist user profiles, preferences, and application data with Mastra working memory using resource- or thread-scoped templates and storage adapters.
32
- - [Signals](references/docs-signals-overview.md) - Send asynchronous input into a Mastra agent thread while Mastra manages whether the agent is active or idle.
33
- - [Storage](references/docs-storage.md) - Configure Mastra storage to persist memory, workflow state, observability data, evals, schedules, and long-running agent state across restarts.
34
- - [Subagents](references/docs-subagents.md) - Build Mastra supervisor agents that delegate work to specialized subagents with hooks, request context, message filtering, and completion scoring.
35
-
36
- ### Integrations
37
-
38
- - [GitHub](references/integrations-channels-github.md) - Subscribe Mastra agents to GitHub pull requests with @mastra/github-signals, polling modes, notification signals, and subscription management tools.
39
- - [Aurora DSQL](references/integrations-databases-aurora-dsql.md) - Store Mastra application data in Amazon Aurora DSQL with IAM authentication, configurable credentials, schema initialization, and connection options.
40
- - [DynamoDB](references/integrations-databases-dynamodb.md) - Persist Mastra data in Amazon DynamoDB with a single-table ElectroDB design, configurable indexes, TTL support, credentials, and table initialization.
41
- - [Elasticsearch](references/integrations-databases-elasticsearch.md) - Store Mastra agent memory, workflow snapshots, and scores in Elasticsearch with URL, authentication, or shared client connection configuration.
42
- - [libSQL](references/integrations-databases-libsql.md) - Persist Mastra messages, workflow snapshots, traces, and eval scores in local or remote libSQL with managed tables and initialization options.
43
- - [MongoDB](references/integrations-databases-mongodb.md) - Store Mastra application data and vectors in MongoDB, configure connections and collections, initialize schemas, and add persistent agent memory.
44
- - [OracleDB](references/integrations-databases-oracledb.md) - Persist Mastra memory, workflows, observability, scores, MCP metadata, and agent registry data in Oracle Database with OracleStore.
45
- - [PostgreSQL](references/integrations-databases-postgresql.md) - Persist Mastra application data in PostgreSQL with PostgresStore, configure connections and pools, initialize schemas, and enable observability.
46
- - [Redis](references/integrations-databases-redis.md) - Store Mastra application data in Redis using connection strings, host settings, or custom clients, including Sentinel deployments.
47
- - [Upstash](references/integrations-databases-upstash.md) - Use Upstash Redis as serverless Mastra storage with REST credentials, namespaced keys, durable persistence, and deployment-friendly connections.
48
- - [Valkey](references/integrations-databases-valkey.md) - Configure Valkey storage and caching for Mastra through the GLIDE client, including authentication, connection options, persistence, and cleanup.
49
-
50
- ### Reference
51
-
52
- - [Reference: Mastra.getMemory()](references/reference-core-getMemory.md) - The .getMemory() method retrieves a memory instance from the Mastra registry by its key.
53
- - [Reference: Mastra.listMemory()](references/reference-core-listMemory.md) - The .listMemory() method returns all memory instances registered with the Mastra instance.
54
- - [Memory](references/reference-file-based-agents-memory.md) - A file-based agent gets memory from a memory.ts file that default-exports a Memory instance.
55
- - [Reference: Cloned thread utilities](references/reference-memory-clone-utilities.md) - Use Mastra Memory clone utilities to create threads derived from an existing conversation, then inspect clone relationships and manage their messages.
56
- - [Reference: Memory.cloneThread()](references/reference-memory-cloneThread.md) - The .cloneThread() method creates a copy of an existing conversation thread, including all its messages.
57
- - [Reference: Memory.copyThread()](references/reference-memory-copyThread.md) - The .copyThread() method copies a conversation thread and its messages inside the storage backend without loading message content into memory.
58
- - [Reference: Memory.createThread()](references/reference-memory-createThread.md) - The .createThread() method creates a new conversation thread in the memory system. Each thread represents a distinct conversation or context and can contain multiple messages.
59
- - [Reference: Memory.getThreadById()](references/reference-memory-getThreadById.md) - Use Memory.getThreadById() to retrieve a conversation thread by ID, including its resource association, metadata, and stored properties.
60
- - [Reference: Memory.listThreads()](references/reference-memory-listThreads.md) - The listThreads() method retrieves threads with pagination support and optional filtering by resourceId, metadata, or both.
61
- - [Reference: Memory class](references/reference-memory-memory-class.md) - The Memory class provides a reliable system for managing conversation history and thread-based message storage in Mastra.
62
- - [Reference: Observational Memory](references/reference-memory-observational-memory.md) - Observational Memory (OM) is Mastra's memory system for long-context agentic memory. An Observer watches conversations and creates observations.
63
- - [Reference: Memory.settled()](references/reference-memory-settled.md) - Use Memory.settled() to wait for asynchronous memory work, including working-memory updates and observational memory, before closing storage.
64
- - [Reference: summarizeConversation()](references/reference-memory-summarizeConversation.md) - The standalone summarizeConversation() function summarizes a conversation in one shot.
65
- - [Reference: Memory.summarizeThread()](references/reference-memory-summarizeThread.md) - Call Memory.summarizeThread() to produce a thread summary in one operation and extract configured structured values from its messages.
66
- - [Reference: Memory.updateThreadResourceId()](references/reference-memory-updateThreadResourceId.md) - The .updateThreadResourceId() method transfers ownership of a thread to a different resource by reassigning its resourceId.
67
- - [Migration: AgentNetwork to .network()](references/reference-migrations-agentnetwork.md) - Migrate deprecated AgentNetwork usage to supervisor agents and the standard Agent.generate() or Agent.stream() APIs in current Mastra releases.
68
- - [Memory](references/reference-migrations-upgrade-to-v1-memory.md) - Memory configuration now requires explicit parameters, and default settings have been updated for better performance and predictability.
69
- - [Reference: TokenLimiterProcessor](references/reference-processors-token-limiter-processor.md) - Use TokenLimiterProcessor to constrain message tokens during prompt, input, or output processing with configurable limits and strategies.
70
- - [Reference: libSQL vector store](references/reference-vectors-libsql.md) - Configure LibSQLVector for similarity search and metadata filtering with local libSQL, SQLite-compatible vector extensions, or Turso databases.
71
- - [Reference: MongoDB vector store](references/reference-vectors-mongodb.md) - The MongoDBVector class provides vector search using MongoDB Vector Search. It enables efficient similarity search and metadata filtering within your MongoDB collections.
72
- - [Reference: OracleDB vector store](references/reference-vectors-oracledb.md) - OracleVector stores embeddings in Oracle Database VECTOR columns and exposes them through Mastra's vector interface.
73
- - [Reference: PG vector store](references/reference-vectors-pg.md) - The PgVector class provides vector search using PostgreSQL with pgvector extension. It provides reliable vector similarity search capabilities within your existing PostgreSQL database.
74
- - [Reference: Upstash vector store](references/reference-vectors-upstash.md) - Configure UpstashVector for serverless similarity and hybrid search, metadata filtering, index management, and vector operations with Upstash Vector.
75
-
76
-
77
- Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,230 +0,0 @@
1
- {
2
- "version": "1.39.1",
3
- "package": "@mastra/memory",
4
- "exports": {
5
- "d": {
6
- "types": "dist/processors/index.d.ts",
7
- "implementation": "dist/src-CLQXrKvR.js"
8
- },
9
- "et": {
10
- "types": "dist/processors/index.d.ts",
11
- "implementation": "dist/src-CLQXrKvR.js"
12
- },
13
- "K": {
14
- "types": "dist/processors/index.d.ts",
15
- "implementation": "dist/src-CLQXrKvR.js"
16
- },
17
- "Y": {
18
- "types": "dist/processors/index.d.ts",
19
- "implementation": "dist/src-CLQXrKvR.js"
20
- },
21
- "z": {
22
- "types": "dist/processors/index.d.ts",
23
- "implementation": "dist/src-CLQXrKvR.js"
24
- },
25
- "B": {
26
- "types": "dist/processors/index.d.ts",
27
- "implementation": "dist/src-CLQXrKvR.js"
28
- },
29
- "V": {
30
- "types": "dist/processors/index.d.ts",
31
- "implementation": "dist/src-CLQXrKvR.js"
32
- },
33
- "H": {
34
- "types": "dist/processors/index.d.ts",
35
- "implementation": "dist/src-CLQXrKvR.js"
36
- },
37
- "U": {
38
- "types": "dist/processors/index.d.ts",
39
- "implementation": "dist/src-CLQXrKvR.js"
40
- },
41
- "O": {
42
- "types": "dist/processors/index.d.ts",
43
- "implementation": "dist/src-CLQXrKvR.js"
44
- },
45
- "u": {
46
- "types": "dist/processors/index.d.ts",
47
- "implementation": "dist/src-CLQXrKvR.js"
48
- },
49
- "l": {
50
- "types": "dist/processors/index.d.ts",
51
- "implementation": "dist/src-CLQXrKvR.js"
52
- },
53
- "X": {
54
- "types": "dist/processors/index.d.ts",
55
- "implementation": "dist/src-CLQXrKvR.js"
56
- },
57
- "q": {
58
- "types": "dist/processors/index.d.ts",
59
- "implementation": "dist/src-CLQXrKvR.js"
60
- },
61
- "G": {
62
- "types": "dist/processors/index.d.ts",
63
- "implementation": "dist/src-CLQXrKvR.js"
64
- },
65
- "J": {
66
- "types": "dist/processors/index.d.ts",
67
- "implementation": "dist/src-CLQXrKvR.js"
68
- },
69
- "D": {
70
- "types": "dist/processors/index.d.ts",
71
- "implementation": "dist/src-CLQXrKvR.js"
72
- },
73
- "C": {
74
- "types": "dist/processors/index.d.ts",
75
- "implementation": "dist/src-CLQXrKvR.js"
76
- },
77
- "k": {
78
- "types": "dist/processors/index.d.ts",
79
- "implementation": "dist/src-CLQXrKvR.js"
80
- },
81
- "A": {
82
- "types": "dist/processors/index.d.ts",
83
- "implementation": "dist/src-CLQXrKvR.js"
84
- },
85
- "Z": {
86
- "types": "dist/processors/index.d.ts",
87
- "implementation": "dist/src-CLQXrKvR.js"
88
- },
89
- "g": {
90
- "types": "dist/processors/index.d.ts",
91
- "implementation": "dist/src-CLQXrKvR.js"
92
- },
93
- "_": {
94
- "types": "dist/processors/index.d.ts",
95
- "implementation": "dist/src-CLQXrKvR.js"
96
- },
97
- "j": {
98
- "types": "dist/processors/index.d.ts",
99
- "implementation": "dist/src-CLQXrKvR.js"
100
- },
101
- "M": {
102
- "types": "dist/processors/index.d.ts",
103
- "implementation": "dist/src-CLQXrKvR.js"
104
- },
105
- "W": {
106
- "types": "dist/processors/index.d.ts",
107
- "implementation": "dist/src-CLQXrKvR.js"
108
- },
109
- "c": {
110
- "types": "dist/processors/index.d.ts",
111
- "implementation": "dist/src-CLQXrKvR.js"
112
- },
113
- "N": {
114
- "types": "dist/processors/index.d.ts",
115
- "implementation": "dist/src-CLQXrKvR.js"
116
- },
117
- "I": {
118
- "types": "dist/processors/index.d.ts",
119
- "implementation": "dist/src-CLQXrKvR.js"
120
- },
121
- "P": {
122
- "types": "dist/processors/index.d.ts",
123
- "implementation": "dist/src-CLQXrKvR.js"
124
- },
125
- "L": {
126
- "types": "dist/processors/index.d.ts",
127
- "implementation": "dist/src-CLQXrKvR.js"
128
- },
129
- "v": {
130
- "types": "dist/processors/index.d.ts",
131
- "implementation": "dist/src-CLQXrKvR.js"
132
- },
133
- "F": {
134
- "types": "dist/processors/index.d.ts",
135
- "implementation": "dist/src-CLQXrKvR.js"
136
- },
137
- "Q": {
138
- "types": "dist/processors/index.d.ts",
139
- "implementation": "dist/src-CLQXrKvR.js"
140
- },
141
- "y": {
142
- "types": "dist/processors/index.d.ts",
143
- "implementation": "dist/src-CLQXrKvR.js"
144
- },
145
- "b": {
146
- "types": "dist/processors/index.d.ts",
147
- "implementation": "dist/src-CLQXrKvR.js"
148
- },
149
- "$": {
150
- "types": "dist/processors/index.d.ts",
151
- "implementation": "dist/src-CLQXrKvR.js"
152
- },
153
- "f": {
154
- "types": "dist/processors/index.d.ts",
155
- "implementation": "dist/src-CLQXrKvR.js"
156
- },
157
- "R": {
158
- "types": "dist/processors/index.d.ts",
159
- "implementation": "dist/src-CLQXrKvR.js"
160
- },
161
- "x": {
162
- "types": "dist/processors/index.d.ts",
163
- "implementation": "dist/src-CLQXrKvR.js"
164
- },
165
- "E": {
166
- "types": "dist/processors/index.d.ts",
167
- "implementation": "dist/src-CLQXrKvR.js"
168
- },
169
- "S": {
170
- "types": "dist/processors/index.d.ts",
171
- "implementation": "dist/src-CLQXrKvR.js"
172
- },
173
- "t": {
174
- "types": "dist/index.d.ts",
175
- "implementation": "dist/src-CLQXrKvR.js"
176
- },
177
- "n": {
178
- "types": "dist/index.d.ts",
179
- "implementation": "dist/src-CLQXrKvR.js"
180
- },
181
- "T": {
182
- "types": "dist/index.d.ts",
183
- "implementation": "dist/src-CLQXrKvR.js"
184
- },
185
- "r": {
186
- "types": "dist/index.d.ts",
187
- "implementation": "dist/src-CLQXrKvR.js"
188
- },
189
- "p": {
190
- "types": "dist/index.d.ts",
191
- "implementation": "dist/src-CLQXrKvR.js"
192
- },
193
- "m": {
194
- "types": "dist/index.d.ts",
195
- "implementation": "dist/src-CLQXrKvR.js"
196
- },
197
- "i": {
198
- "types": "dist/index.d.ts",
199
- "implementation": "dist/src-CLQXrKvR.js"
200
- },
201
- "h": {
202
- "types": "dist/index.d.ts",
203
- "implementation": "dist/src-CLQXrKvR.js"
204
- },
205
- "w": {
206
- "types": "dist/index.d.ts",
207
- "implementation": "dist/src-CLQXrKvR.js"
208
- },
209
- "a": {
210
- "types": "dist/index.d.ts",
211
- "implementation": "dist/src-CLQXrKvR.js"
212
- },
213
- "o": {
214
- "types": "dist/index.d.ts",
215
- "implementation": "dist/src-CLQXrKvR.js"
216
- },
217
- "s": {
218
- "types": "dist/index.d.ts",
219
- "implementation": "dist/src-CLQXrKvR.js"
220
- }
221
- },
222
- "modules": {
223
- "processors": {
224
- "index": "dist/processors/index.js",
225
- "chunks": [
226
- "src-CLQXrKvR.js"
227
- ]
228
- }
229
- }
230
- }