@mastra/cloudflare-d1 0.0.0-toolOptionTypes-20250917085558 → 0.0.0-trace-timeline-update-20251121092347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +535 -3
- package/README.md +10 -5
- package/dist/index.cjs +275 -569
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +276 -570
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +13 -44
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +12 -4
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +3 -10
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +30 -86
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +16 -11
- package/dist/storage/domains/legacy-evals/index.d.ts +0 -20
- package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
- package/dist/storage/domains/traces/index.d.ts +0 -18
- package/dist/storage/domains/traces/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -75,24 +75,29 @@ const store = new D1Store({
|
|
|
75
75
|
|
|
76
76
|
- `saveThread(thread)`: Create or update a thread
|
|
77
77
|
- `getThreadById({ threadId })`: Get a thread by ID
|
|
78
|
-
- `
|
|
78
|
+
- `listThreadsByResourceId({ resourceId, offset, limit, orderBy? })`: List paginated threads for a resource
|
|
79
79
|
- `updateThread({ id, title, metadata })`: Update the title and/or metadata of a thread.
|
|
80
80
|
- `deleteThread({ threadId })`: Delete a thread and all its messages.
|
|
81
81
|
|
|
82
82
|
### Message Operations
|
|
83
83
|
|
|
84
84
|
- `saveMessages({ messages })`: Save multiple messages in a batch operation (uses prepared statements).
|
|
85
|
-
- `
|
|
85
|
+
- `listMessages({ threadId, perPage?, page? })`: Retrieve messages for a thread with pagination.
|
|
86
|
+
- `listMessagesById({ messageIds })`: Get specific messages by their IDs
|
|
87
|
+
- `updateMessages({ messages })`: Update existing messages
|
|
86
88
|
|
|
87
89
|
### Workflow Operations
|
|
88
90
|
|
|
89
91
|
- `persistWorkflowSnapshot({ workflowName, runId, snapshot })`: Save workflow state for a given workflow/run.
|
|
90
92
|
- `loadWorkflowSnapshot({ workflowName, runId })`: Load persisted workflow state.
|
|
93
|
+
- `listWorkflowRuns({ workflowName, pagination })`: List workflow runs with pagination
|
|
94
|
+
- `getWorkflowRunById({ workflowName, runId })`: Get a specific workflow run
|
|
91
95
|
|
|
92
|
-
###
|
|
96
|
+
### Operations Not Currently Supported
|
|
93
97
|
|
|
94
|
-
- `
|
|
95
|
-
-
|
|
98
|
+
- `deleteMessages(messageIds)`: Message deletion is not currently supported
|
|
99
|
+
- AI Observability (traces/spans): Not currently supported
|
|
100
|
+
- Evaluation/Scoring: Not currently supported
|
|
96
101
|
|
|
97
102
|
### Utility
|
|
98
103
|
|