@diagonal-hq/workflows 0.10.4 → 0.10.6
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/README.md
CHANGED
|
@@ -55,7 +55,7 @@ export default defineWorkflow(
|
|
|
55
55
|
|
|
56
56
|
A migration with `export const config` or `title` still builds, with a warning.
|
|
57
57
|
|
|
58
|
-
Create a file with `diagonal make:migration <name
|
|
58
|
+
Create a file with `npx diagonal make:migration <name>`. It creates `migrations/YYYYMMDDHHmmss_name.ts`. Deployment activation queues all new filenames independently as ordinary asynchronous workflows. They can run concurrently. The timestamp sorts filenames for listing and history and does not enforce execution order. Put dependent operations in one script. The platform records the filename for the workspace environment in Postgres before launch. It records every terminal outcome and never launches that filename again. Manual and nested workflow calls cannot run migration files. Inspect the existing workflow execution status for a failure, then add a new migration file to correct it.
|
|
59
59
|
|
|
60
60
|
Migrations run after schema activation. Existing schema safety guards still apply. Deploy a new field as optional, fill it in a migration, then make it required in a later release. A failed migration can leave completed writes in place, so account for those writes in the correction.
|
|
61
61
|
|
|
@@ -97,7 +97,7 @@ function isFailure(value2) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// packages/workflows/src/generated/capabilities.ts
|
|
100
|
-
var SDK_VERSION =
|
|
100
|
+
var SDK_VERSION = 80;
|
|
101
101
|
var ai = {
|
|
102
102
|
/** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
|
|
103
103
|
decide: (input) => invoke("ai.decide", input),
|
|
@@ -152,7 +152,7 @@ var data = {
|
|
|
152
152
|
/** Find a record by attributes, or create a new one when no match exists */
|
|
153
153
|
findOrCreate: (input) => invoke("data.find-or-create", input),
|
|
154
154
|
relation: {
|
|
155
|
-
/** Attach a related record to a
|
|
155
|
+
/** Attach a related record to a relation. Plural relations (BelongsToMany, HasMany) keep their existing records. */
|
|
156
156
|
attach: (input) => invoke("data.relation.attach", input),
|
|
157
157
|
/** Attach related records to a plural relation (BelongsToMany, HasMany) */
|
|
158
158
|
attachMany: (input) => invoke("data.relation.attach-many", input),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResourceKeyWith } from "../data.js";
|
|
2
2
|
import type { ContentDocument } from "../input.js";
|
|
3
3
|
import type { DeepReadonly, Liquid, StaticLiquid } from "../liquid.js";
|
|
4
|
-
export declare const SDK_VERSION =
|
|
4
|
+
export declare const SDK_VERSION = 80;
|
|
5
5
|
export interface WorkspaceSystemFields {
|
|
6
6
|
"ai_custom_system_prompt": string | null;
|
|
7
7
|
"brand_kit": {
|
|
@@ -2158,7 +2158,7 @@ export declare const data: {
|
|
|
2158
2158
|
/** Find a record by attributes, or create a new one when no match exists */
|
|
2159
2159
|
findOrCreate: (input: DataFindOrCreateInput) => Promise<DataFindOrCreateOutput>;
|
|
2160
2160
|
relation: {
|
|
2161
|
-
/** Attach a related record to a
|
|
2161
|
+
/** Attach a related record to a relation. Plural relations (BelongsToMany, HasMany) keep their existing records. */
|
|
2162
2162
|
attach: (input: DataRelationAttachInput) => Promise<DataRelationAttachOutput>;
|
|
2163
2163
|
/** Attach related records to a plural relation (BelongsToMany, HasMany) */
|
|
2164
2164
|
attachMany: (input: DataRelationAttachManyInput) => Promise<DataRelationAttachManyOutput>;
|
package/dist/index.js
CHANGED
package/dist/profiles/test.js
CHANGED
package/package.json
CHANGED