@mastra/pg 1.22.2 → 1.22.3-alpha.1
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/dist/docs/SKILL.md +21 -21
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-workers.md +2 -2
- package/dist/docs/references/docs-memory-semantic-recall.md +0 -2
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/docs/references/reference-processors-working-memory-processor.md +1 -1
- package/dist/docs/references/reference-rag-vector-databases.md +33 -33
- package/dist/docs/references/reference-storage-composite.md +1 -1
- package/dist/docs/references/reference-storage-retention.md +4 -4
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/storage/client.d.ts.map +1 -1
- package/dist/storage/db/index.d.ts.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/background-tasks/index.d.ts.map +1 -1
- package/dist/storage/domains/blobs/index.d.ts.map +1 -1
- package/dist/storage/domains/channels/index.d.ts.map +1 -1
- package/dist/storage/domains/datasets/index.d.ts.map +1 -1
- package/dist/storage/domains/experiments/index.d.ts.map +1 -1
- package/dist/storage/domains/favorites/index.d.ts.map +1 -1
- package/dist/storage/domains/knowledge/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/test-utils.d.ts +1 -1
- package/dist/storage/domains/memory/test-utils.d.ts.map +1 -1
- package/dist/storage/domains/notifications/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/signal-schema.d.ts +400 -400
- package/dist/storage/domains/observability/v-next/signal-schema.d.ts.map +1 -1
- package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/skills/index.d.ts.map +1 -1
- package/dist/storage/domains/thread-state/index.d.ts.map +1 -1
- package/dist/storage/domains/tool-provider-connections/index.d.ts.map +1 -1
- package/dist/storage/domains/workflow-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/domains/workspaces/index.d.ts.map +1 -1
- package/dist/storage/factory-storage.d.ts.map +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/performance-indexes/performance-test.d.ts.map +1 -1
- package/dist/vector/filter.d.ts.map +1 -1
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/performance.helpers.d.ts.map +1 -1
- package/package.json +5 -6
- package/CHANGELOG.md +0 -9004
package/dist/index.js
CHANGED
|
@@ -20727,6 +20727,8 @@ function rowToDefinition(row) {
|
|
|
20727
20727
|
if (stateSchema !== void 0 && stateSchema !== null) def.stateSchema = stateSchema;
|
|
20728
20728
|
const requestContextSchema = parseJsonResilient(row.requestContextSchema);
|
|
20729
20729
|
if (requestContextSchema !== void 0 && requestContextSchema !== null) def.requestContextSchema = requestContextSchema;
|
|
20730
|
+
const schedule = parseJsonResilient(row.schedule);
|
|
20731
|
+
if (schedule !== void 0 && schedule !== null) def.schedule = schedule;
|
|
20730
20732
|
if (row.authorId != null) def.authorId = String(row.authorId);
|
|
20731
20733
|
return def;
|
|
20732
20734
|
}
|
|
@@ -20784,6 +20786,11 @@ var WorkflowDefinitionsPG = class WorkflowDefinitionsPG extends WorkflowDefiniti
|
|
|
20784
20786
|
tableName: TABLE_WORKFLOW_DEFINITIONS,
|
|
20785
20787
|
schema: TABLE_SCHEMAS[TABLE_WORKFLOW_DEFINITIONS]
|
|
20786
20788
|
});
|
|
20789
|
+
await this.#db.alterTable({
|
|
20790
|
+
tableName: TABLE_WORKFLOW_DEFINITIONS,
|
|
20791
|
+
schema: TABLE_SCHEMAS[TABLE_WORKFLOW_DEFINITIONS],
|
|
20792
|
+
ifNotExists: ["schedule"]
|
|
20793
|
+
});
|
|
20787
20794
|
await this.createDefaultIndexes();
|
|
20788
20795
|
await this.createCustomIndexes();
|
|
20789
20796
|
}
|
|
@@ -20805,6 +20812,7 @@ var WorkflowDefinitionsPG = class WorkflowDefinitionsPG extends WorkflowDefiniti
|
|
|
20805
20812
|
stateSchema: input.stateSchema ?? null,
|
|
20806
20813
|
requestContextSchema: input.requestContextSchema ?? null,
|
|
20807
20814
|
graph: input.graph,
|
|
20815
|
+
schedule: "schedule" in input ? input.schedule ?? null : null,
|
|
20808
20816
|
status: "active",
|
|
20809
20817
|
source: "storage",
|
|
20810
20818
|
authorId: "authorId" in input ? input.authorId ?? null : null,
|
|
@@ -20835,6 +20843,7 @@ var WorkflowDefinitionsPG = class WorkflowDefinitionsPG extends WorkflowDefiniti
|
|
|
20835
20843
|
if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
|
|
20836
20844
|
if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
|
|
20837
20845
|
if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
|
|
20846
|
+
if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
|
|
20838
20847
|
if ("status" in input && input.status !== void 0) data.status = input.status;
|
|
20839
20848
|
if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
|
|
20840
20849
|
await this.#db.update({
|