@diagonal-hq/cli 0.40.0 → 0.41.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.
- package/README.md +4 -0
- package/dist/check-data.json +1 -1
- package/dist/{cli-check-data-QLLM357X.mjs → cli-check-data-SOAXPNUY.mjs} +42 -8
- package/dist/{cli-chunk-HPW7VRU3.mjs → cli-chunk-L6DFO7SU.mjs} +2 -2
- package/dist/{cli-sdk-files.generated-HAH7DJPZ.mjs → cli-sdk-files.generated-PNUTKWYQ.mjs} +2 -1
- package/dist/{cli-workflows-F2P2BFXZ.mjs → cli-workflows-46U7AJ2H.mjs} +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/fields.generated.d.ts +9 -4
- package/dist/script-sdk.json +1 -1
- package/dist/workflow/generated/capabilities.d.ts +6 -1
- package/package.json +4 -4
|
@@ -9,7 +9,7 @@ import type { ContentDocument } from '../input';
|
|
|
9
9
|
import type { DeepReadonly, Liquid, StaticLiquid } from '../liquid';
|
|
10
10
|
import { invoke } from '../transport';
|
|
11
11
|
|
|
12
|
-
export const SDK_VERSION =
|
|
12
|
+
export const SDK_VERSION = 81;
|
|
13
13
|
|
|
14
14
|
export interface WorkspaceSystemFields {
|
|
15
15
|
"ai_custom_system_prompt": string | null;
|
|
@@ -566,6 +566,7 @@ export interface NotificationSendBulkNotificationsInput {
|
|
|
566
566
|
resource: string;
|
|
567
567
|
filters?: unknown;
|
|
568
568
|
recipient: unknown;
|
|
569
|
+
records?: Array<{ resource_id?: string; id?: string; [key: string]: unknown; }> | null;
|
|
569
570
|
attachments?: Array<string> | null;
|
|
570
571
|
idempotencyKey?: string | null;
|
|
571
572
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -613,7 +613,7 @@ async function checkSources() {
|
|
|
613
613
|
if (existsSync4(DATA_FILE) && existsSync4(SDK_FILE)) {
|
|
614
614
|
return { dataFile: DATA_FILE, sdkFile: SDK_FILE };
|
|
615
615
|
}
|
|
616
|
-
const { checkData, scriptSdk } = await import("./cli-check-data-
|
|
616
|
+
const { checkData, scriptSdk } = await import("./cli-check-data-SOAXPNUY.mjs");
|
|
617
617
|
return { data: checkData(), sdk: scriptSdk() };
|
|
618
618
|
}
|
|
619
619
|
function isScriptTestPath(path) {
|
|
@@ -633,7 +633,7 @@ function holdsSkills(root, plan) {
|
|
|
633
633
|
async function checkCheckout(root, options) {
|
|
634
634
|
const sources = await checkSources();
|
|
635
635
|
const plan = composePackages(root);
|
|
636
|
-
const testRunner = async () => (await import("./cli-workflows-
|
|
636
|
+
const testRunner = async () => (await import("./cli-workflows-46U7AJ2H.mjs")).runBuildTests;
|
|
637
637
|
const skillReader = async () => (await import("./cli-skill-file-JUXNBWMU.mjs")).skillFrontMatter;
|
|
638
638
|
const finish = (checkoutRoot, buildPlan, answer, runTests2) => {
|
|
639
639
|
const run = hasScriptTests(answer) ? runTests2(checkoutRoot, answer.tests) : null;
|
|
@@ -369,22 +369,27 @@ export type WalletAccountingEntityFieldSettings = CommonFieldSettings & {
|
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
+
type BelongsToInverseSettings = (
|
|
373
|
+
| { type?: "has_many"; "max_connections"?: number | null }
|
|
374
|
+
| { type: "has_one"; "max_connections"?: null }
|
|
375
|
+
);
|
|
376
|
+
|
|
372
377
|
/**
|
|
373
378
|
* The inverse of a relation. It points back at the resource that declares it,
|
|
374
|
-
* and
|
|
379
|
+
* and the build derives its type from the declaring relation. Use `RelationInverse<'belongs_to'>` to choose a `has_one` inverse.
|
|
375
380
|
*/
|
|
376
|
-
export type RelationInverse = {
|
|
381
|
+
export type RelationInverse<Owner extends string = string> = {
|
|
377
382
|
/** The uid of the inverse field, unique in the target resource. `diagonal check` writes a missing one. */
|
|
378
383
|
uid?: DefinitionUid;
|
|
379
384
|
key: string;
|
|
380
385
|
label?: string;
|
|
381
386
|
description?: string | null;
|
|
382
|
-
settings?: Omit<RelationFieldSettings, 'inverse'> & { "max_connections"?: number | null };
|
|
387
|
+
settings?: Omit<RelationFieldSettings, 'inverse'> & (Owner extends "belongs_to" ? BelongsToInverseSettings : { type?: never; "max_connections"?: number | null });
|
|
383
388
|
};
|
|
384
389
|
|
|
385
390
|
/** A relation names its target resource by slug, as `Resources.<Name>`. The type defaults to `belongs_to`. */
|
|
386
391
|
export type RelationFieldOptions = Omit<BaseFieldOptions<RelationFieldSettings>, 'settings'> & { resource: string } & (
|
|
387
|
-
| { type?: "belongs_to"; settings?: RelationFieldSettings }
|
|
392
|
+
| { type?: "belongs_to"; settings?: Omit<RelationFieldSettings, 'inverse'> & { inverse?: RelationInverse<"belongs_to"> | null } }
|
|
388
393
|
| { type: "belongs_to_many"; settings?: RelationFieldSettings & { "max_connections"?: number | null } }
|
|
389
394
|
| { type: "has_many"; settings?: RelationFieldSettings & { "max_connections"?: number | null } }
|
|
390
395
|
| { type: "has_one"; settings?: RelationFieldSettings }
|