@uniformdev/mesh-edgehancer-sdk 20.7.1-alpha.123 → 20.7.1-alpha.134
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/LICENSE.txt +1 -1
- package/dist/index.d.mts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.esm.js +9 -13
- package/dist/index.js +9 -13
- package/dist/index.mjs +9 -13
- package/package.json +5 -5
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
©
|
|
1
|
+
© 2026 Uniform Systems, Inc. All Rights Reserved.
|
|
2
2
|
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
2
2
|
import { DataType, DataSource, DataSourceVariantsKeys, DataSourceVariantData } from '@uniformdev/canvas';
|
|
3
|
-
import * as z from 'zod';
|
|
3
|
+
import * as z from 'zod/v3';
|
|
4
|
+
import * as zod from 'zod';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The context we are fetching the data resource in:
|
|
@@ -489,7 +490,6 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
489
490
|
summary?: string | undefined;
|
|
490
491
|
}>;
|
|
491
492
|
}, "strict", z.ZodTypeAny, {
|
|
492
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
493
493
|
newValue: Record<string, string>;
|
|
494
494
|
mergedDataType: Omit<{
|
|
495
495
|
id: string;
|
|
@@ -596,6 +596,7 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
596
596
|
edit: string;
|
|
597
597
|
currentValue?: Record<string, string> | undefined;
|
|
598
598
|
};
|
|
599
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
599
600
|
userId: string;
|
|
600
601
|
projectId: string;
|
|
601
602
|
result: {
|
|
@@ -604,7 +605,6 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
604
605
|
};
|
|
605
606
|
dataSourceVariant?: "unpublished" | undefined;
|
|
606
607
|
}, {
|
|
607
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
608
608
|
newValue: Record<string, string>;
|
|
609
609
|
mergedDataType: Omit<{
|
|
610
610
|
id: string;
|
|
@@ -711,6 +711,7 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
711
711
|
edit: string;
|
|
712
712
|
currentValue?: Record<string, string> | undefined;
|
|
713
713
|
};
|
|
714
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
714
715
|
userId: string;
|
|
715
716
|
projectId: string;
|
|
716
717
|
result: {
|
|
@@ -828,7 +829,6 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
828
829
|
summary?: string | undefined;
|
|
829
830
|
}>;
|
|
830
831
|
}, "strict", z.ZodTypeAny, {
|
|
831
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
832
832
|
editRequest: {
|
|
833
833
|
edit: string;
|
|
834
834
|
propertyDefinition: {
|
|
@@ -845,6 +845,7 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
845
845
|
outputLocale?: string | undefined;
|
|
846
846
|
documentContext?: string | undefined;
|
|
847
847
|
};
|
|
848
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
848
849
|
userId: string;
|
|
849
850
|
projectId: string;
|
|
850
851
|
result: {
|
|
@@ -854,7 +855,6 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
854
855
|
newValue?: unknown;
|
|
855
856
|
currentLocale?: string | undefined;
|
|
856
857
|
}, {
|
|
857
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
858
858
|
editRequest: {
|
|
859
859
|
edit: string;
|
|
860
860
|
propertyDefinition: {
|
|
@@ -871,6 +871,7 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
871
871
|
outputLocale?: string | undefined;
|
|
872
872
|
documentContext?: string | undefined;
|
|
873
873
|
};
|
|
874
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
874
875
|
userId: string;
|
|
875
876
|
projectId: string;
|
|
876
877
|
result: {
|
|
@@ -1167,7 +1168,7 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
|
|
|
1167
1168
|
* Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.
|
|
1168
1169
|
*/
|
|
1169
1170
|
declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
|
|
1170
|
-
result?: string | number | boolean | unknown[] |
|
|
1171
|
+
result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
|
|
1171
1172
|
errors?: (string | {
|
|
1172
1173
|
message: string;
|
|
1173
1174
|
subType?: "unpublishedData" | "configuration" | undefined;
|
|
@@ -1235,7 +1236,6 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1235
1236
|
/** Project ID */
|
|
1236
1237
|
projectId: z.ZodString;
|
|
1237
1238
|
}, "strict", z.ZodTypeAny, {
|
|
1238
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1239
1239
|
mergedDataType: Omit<{
|
|
1240
1240
|
id: string;
|
|
1241
1241
|
displayName: string;
|
|
@@ -1341,11 +1341,11 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1341
1341
|
edit: string;
|
|
1342
1342
|
currentValue?: Record<string, string> | undefined;
|
|
1343
1343
|
};
|
|
1344
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1344
1345
|
userId: string;
|
|
1345
1346
|
projectId: string;
|
|
1346
1347
|
dataSourceVariant?: "unpublished" | undefined;
|
|
1347
1348
|
}, {
|
|
1348
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1349
1349
|
mergedDataType: Omit<{
|
|
1350
1350
|
id: string;
|
|
1351
1351
|
displayName: string;
|
|
@@ -1451,6 +1451,7 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1451
1451
|
edit: string;
|
|
1452
1452
|
currentValue?: Record<string, string> | undefined;
|
|
1453
1453
|
};
|
|
1454
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1454
1455
|
userId: string;
|
|
1455
1456
|
projectId: string;
|
|
1456
1457
|
dataSourceVariant?: "unpublished" | undefined;
|
|
@@ -1542,7 +1543,6 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1542
1543
|
currentLocale: z.ZodOptional<z.ZodString>;
|
|
1543
1544
|
projectId: z.ZodString;
|
|
1544
1545
|
}, "strict", z.ZodTypeAny, {
|
|
1545
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1546
1546
|
editRequest: {
|
|
1547
1547
|
edit: string;
|
|
1548
1548
|
propertyDefinition: {
|
|
@@ -1559,11 +1559,11 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1559
1559
|
outputLocale?: string | undefined;
|
|
1560
1560
|
documentContext?: string | undefined;
|
|
1561
1561
|
};
|
|
1562
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1562
1563
|
userId: string;
|
|
1563
1564
|
projectId: string;
|
|
1564
1565
|
currentLocale?: string | undefined;
|
|
1565
1566
|
}, {
|
|
1566
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1567
1567
|
editRequest: {
|
|
1568
1568
|
edit: string;
|
|
1569
1569
|
propertyDefinition: {
|
|
@@ -1580,6 +1580,7 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1580
1580
|
outputLocale?: string | undefined;
|
|
1581
1581
|
documentContext?: string | undefined;
|
|
1582
1582
|
};
|
|
1583
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1583
1584
|
userId: string;
|
|
1584
1585
|
projectId: string;
|
|
1585
1586
|
currentLocale?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
2
2
|
import { DataType, DataSource, DataSourceVariantsKeys, DataSourceVariantData } from '@uniformdev/canvas';
|
|
3
|
-
import * as z from 'zod';
|
|
3
|
+
import * as z from 'zod/v3';
|
|
4
|
+
import * as zod from 'zod';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The context we are fetching the data resource in:
|
|
@@ -489,7 +490,6 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
489
490
|
summary?: string | undefined;
|
|
490
491
|
}>;
|
|
491
492
|
}, "strict", z.ZodTypeAny, {
|
|
492
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
493
493
|
newValue: Record<string, string>;
|
|
494
494
|
mergedDataType: Omit<{
|
|
495
495
|
id: string;
|
|
@@ -596,6 +596,7 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
596
596
|
edit: string;
|
|
597
597
|
currentValue?: Record<string, string> | undefined;
|
|
598
598
|
};
|
|
599
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
599
600
|
userId: string;
|
|
600
601
|
projectId: string;
|
|
601
602
|
result: {
|
|
@@ -604,7 +605,6 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
604
605
|
};
|
|
605
606
|
dataSourceVariant?: "unpublished" | undefined;
|
|
606
607
|
}, {
|
|
607
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
608
608
|
newValue: Record<string, string>;
|
|
609
609
|
mergedDataType: Omit<{
|
|
610
610
|
id: string;
|
|
@@ -711,6 +711,7 @@ declare const afterAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
711
711
|
edit: string;
|
|
712
712
|
currentValue?: Record<string, string> | undefined;
|
|
713
713
|
};
|
|
714
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
714
715
|
userId: string;
|
|
715
716
|
projectId: string;
|
|
716
717
|
result: {
|
|
@@ -828,7 +829,6 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
828
829
|
summary?: string | undefined;
|
|
829
830
|
}>;
|
|
830
831
|
}, "strict", z.ZodTypeAny, {
|
|
831
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
832
832
|
editRequest: {
|
|
833
833
|
edit: string;
|
|
834
834
|
propertyDefinition: {
|
|
@@ -845,6 +845,7 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
845
845
|
outputLocale?: string | undefined;
|
|
846
846
|
documentContext?: string | undefined;
|
|
847
847
|
};
|
|
848
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
848
849
|
userId: string;
|
|
849
850
|
projectId: string;
|
|
850
851
|
result: {
|
|
@@ -854,7 +855,6 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
854
855
|
newValue?: unknown;
|
|
855
856
|
currentLocale?: string | undefined;
|
|
856
857
|
}, {
|
|
857
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
858
858
|
editRequest: {
|
|
859
859
|
edit: string;
|
|
860
860
|
propertyDefinition: {
|
|
@@ -871,6 +871,7 @@ declare const afterAIEditContextSchema: z.ZodObject<{
|
|
|
871
871
|
outputLocale?: string | undefined;
|
|
872
872
|
documentContext?: string | undefined;
|
|
873
873
|
};
|
|
874
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
874
875
|
userId: string;
|
|
875
876
|
projectId: string;
|
|
876
877
|
result: {
|
|
@@ -1167,7 +1168,7 @@ type ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem extends DataR
|
|
|
1167
1168
|
* Given a batch of data resources and their batch-fetch results, convert them into a result that can be returned from a request hook.
|
|
1168
1169
|
*/
|
|
1169
1170
|
declare function convertBatchResultsToEdgehancerResult<TID, TResultItem extends DataResource>({ batch, batchFetchIds: { invalidBatchIndices, validIdToOriginalIndexMap }, batchResults, resolveIdFromBatchResultFn, knownInvalidErrorMessage, missingBatchResultErrorMessage, }: ConvertBatchResultsToEdgehancerResultOptions<TID, TResultItem>): {
|
|
1170
|
-
result?: string | number | boolean | unknown[] |
|
|
1171
|
+
result?: string | number | boolean | unknown[] | zod.objectOutputType<{}, zod.ZodUnknown, "strip"> | undefined;
|
|
1171
1172
|
errors?: (string | {
|
|
1172
1173
|
message: string;
|
|
1173
1174
|
subType?: "unpublishedData" | "configuration" | undefined;
|
|
@@ -1235,7 +1236,6 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1235
1236
|
/** Project ID */
|
|
1236
1237
|
projectId: z.ZodString;
|
|
1237
1238
|
}, "strict", z.ZodTypeAny, {
|
|
1238
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1239
1239
|
mergedDataType: Omit<{
|
|
1240
1240
|
id: string;
|
|
1241
1241
|
displayName: string;
|
|
@@ -1341,11 +1341,11 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1341
1341
|
edit: string;
|
|
1342
1342
|
currentValue?: Record<string, string> | undefined;
|
|
1343
1343
|
};
|
|
1344
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1344
1345
|
userId: string;
|
|
1345
1346
|
projectId: string;
|
|
1346
1347
|
dataSourceVariant?: "unpublished" | undefined;
|
|
1347
1348
|
}, {
|
|
1348
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1349
1349
|
mergedDataType: Omit<{
|
|
1350
1350
|
id: string;
|
|
1351
1351
|
displayName: string;
|
|
@@ -1451,6 +1451,7 @@ declare const createAIDataResourceEditContextSchema: z.ZodObject<{
|
|
|
1451
1451
|
edit: string;
|
|
1452
1452
|
currentValue?: Record<string, string> | undefined;
|
|
1453
1453
|
};
|
|
1454
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1454
1455
|
userId: string;
|
|
1455
1456
|
projectId: string;
|
|
1456
1457
|
dataSourceVariant?: "unpublished" | undefined;
|
|
@@ -1542,7 +1543,6 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1542
1543
|
currentLocale: z.ZodOptional<z.ZodString>;
|
|
1543
1544
|
projectId: z.ZodString;
|
|
1544
1545
|
}, "strict", z.ZodTypeAny, {
|
|
1545
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1546
1546
|
editRequest: {
|
|
1547
1547
|
edit: string;
|
|
1548
1548
|
propertyDefinition: {
|
|
@@ -1559,11 +1559,11 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1559
1559
|
outputLocale?: string | undefined;
|
|
1560
1560
|
documentContext?: string | undefined;
|
|
1561
1561
|
};
|
|
1562
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1562
1563
|
userId: string;
|
|
1563
1564
|
projectId: string;
|
|
1564
1565
|
currentLocale?: string | undefined;
|
|
1565
1566
|
}, {
|
|
1566
|
-
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1567
1567
|
editRequest: {
|
|
1568
1568
|
edit: string;
|
|
1569
1569
|
propertyDefinition: {
|
|
@@ -1580,6 +1580,7 @@ declare const createAIEditContextSchema: z.ZodObject<{
|
|
|
1580
1580
|
outputLocale?: string | undefined;
|
|
1581
1581
|
documentContext?: string | undefined;
|
|
1582
1582
|
};
|
|
1583
|
+
invocationContext: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern" | "general";
|
|
1583
1584
|
userId: string;
|
|
1584
1585
|
projectId: string;
|
|
1585
1586
|
currentLocale?: string | undefined;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../lib/ai-sdk/src/InvocationContexts.ts
|
|
2
|
-
import * as z from "zod";
|
|
2
|
+
import * as z from "zod/v3";
|
|
3
3
|
var invocationContextsSchema = z.enum([
|
|
4
4
|
"composition",
|
|
5
5
|
"compositionPattern",
|
|
@@ -14,13 +14,9 @@ var invocationContextInfoSchema = z.object({
|
|
|
14
14
|
displayName: z.string().optional(),
|
|
15
15
|
icon: z.string().optional()
|
|
16
16
|
});
|
|
17
|
-
var invocationContextAnnotationSchema = z.object({
|
|
18
|
-
type: z.literal("invocationContext"),
|
|
19
|
-
value: invocationContextInfoSchema
|
|
20
|
-
});
|
|
21
17
|
|
|
22
18
|
// src/afterAIDataResourceEdit.ts
|
|
23
|
-
import * as z2 from "zod";
|
|
19
|
+
import * as z2 from "zod/v3";
|
|
24
20
|
var afterAIDataResourceEditResultSchema = z2.strictObject({
|
|
25
21
|
newValue: z2.record(z2.string(), z2.string()),
|
|
26
22
|
success: z2.boolean(),
|
|
@@ -58,7 +54,7 @@ var afterAIDataResourceEditContextSchema = z2.strictObject({
|
|
|
58
54
|
});
|
|
59
55
|
|
|
60
56
|
// ../../lib/ai-sdk/src/toolDefinitions/editing/createPropertyEdit.ts
|
|
61
|
-
import * as z3 from "zod";
|
|
57
|
+
import * as z3 from "zod/v3";
|
|
62
58
|
var createPropertyEdit = {
|
|
63
59
|
displayName: "Create Property Edit",
|
|
64
60
|
description: "Edits a property on a composition, entry, or pattern with AI. This is a callable tool NOT FOR AGENT USE - agents use applyPropertyEdit to broker client-side application of the edit.",
|
|
@@ -99,7 +95,7 @@ var createPropertyEdit = {
|
|
|
99
95
|
};
|
|
100
96
|
|
|
101
97
|
// src/afterAIEdit.ts
|
|
102
|
-
import * as z4 from "zod";
|
|
98
|
+
import * as z4 from "zod/v3";
|
|
103
99
|
var afterAIEditResultSchema = z4.strictObject({
|
|
104
100
|
newValue: z4.unknown(),
|
|
105
101
|
success: z4.boolean(),
|
|
@@ -178,7 +174,7 @@ var COLLECTION_MAX_LIMIT = 50;
|
|
|
178
174
|
var COLLECTION_DEFAULT_OFFSET = 0;
|
|
179
175
|
|
|
180
176
|
// src/createAIDataResourceEdit.ts
|
|
181
|
-
import * as z5 from "zod";
|
|
177
|
+
import * as z5 from "zod/v3";
|
|
182
178
|
var createAIDataResourceEditContextSchema = z5.strictObject({
|
|
183
179
|
/**
|
|
184
180
|
* The the data type of the data resource being edited (merged with its data source)
|
|
@@ -210,7 +206,7 @@ var createAIDataResourceEditResultSchema = z5.strictObject({
|
|
|
210
206
|
});
|
|
211
207
|
|
|
212
208
|
// src/createAIEdit.ts
|
|
213
|
-
import * as z6 from "zod";
|
|
209
|
+
import * as z6 from "zod/v3";
|
|
214
210
|
var createAIEditContextSchema = z6.strictObject({
|
|
215
211
|
editRequest: createPropertyEdit.inputSchema,
|
|
216
212
|
invocationContext: invocationContextsSchema,
|
|
@@ -264,11 +260,11 @@ function copyKeyValuePairs(source, target) {
|
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
// src/preRequest.ts
|
|
267
|
-
import * as z8 from "zod";
|
|
263
|
+
import * as z8 from "zod/v3";
|
|
268
264
|
|
|
269
265
|
// src/shared.ts
|
|
270
266
|
import { assert } from "tsafe";
|
|
271
|
-
import * as z7 from "zod";
|
|
267
|
+
import * as z7 from "zod/v3";
|
|
272
268
|
var parameterDefinitionSchema = z7.object({
|
|
273
269
|
key: z7.string(),
|
|
274
270
|
value: z7.string(),
|
|
@@ -361,7 +357,7 @@ var preRequestEdgehancerResultSchema = z8.strictObject({
|
|
|
361
357
|
});
|
|
362
358
|
|
|
363
359
|
// src/request.ts
|
|
364
|
-
import * as z9 from "zod";
|
|
360
|
+
import * as z9 from "zod/v3";
|
|
365
361
|
var requestEdgehancerDataResourceResolutionResultSchema = z9.strictObject({
|
|
366
362
|
errors: z9.array(resolvingIssueSchema).optional().describe(
|
|
367
363
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __export(src_exports, {
|
|
|
59
59
|
module.exports = __toCommonJS(src_exports);
|
|
60
60
|
|
|
61
61
|
// ../../lib/ai-sdk/src/InvocationContexts.ts
|
|
62
|
-
var z = __toESM(require("zod"), 1);
|
|
62
|
+
var z = __toESM(require("zod/v3"), 1);
|
|
63
63
|
var invocationContextsSchema = z.enum([
|
|
64
64
|
"composition",
|
|
65
65
|
"compositionPattern",
|
|
@@ -74,13 +74,9 @@ var invocationContextInfoSchema = z.object({
|
|
|
74
74
|
displayName: z.string().optional(),
|
|
75
75
|
icon: z.string().optional()
|
|
76
76
|
});
|
|
77
|
-
var invocationContextAnnotationSchema = z.object({
|
|
78
|
-
type: z.literal("invocationContext"),
|
|
79
|
-
value: invocationContextInfoSchema
|
|
80
|
-
});
|
|
81
77
|
|
|
82
78
|
// src/afterAIDataResourceEdit.ts
|
|
83
|
-
var z2 = __toESM(require("zod"));
|
|
79
|
+
var z2 = __toESM(require("zod/v3"));
|
|
84
80
|
var afterAIDataResourceEditResultSchema = z2.strictObject({
|
|
85
81
|
newValue: z2.record(z2.string(), z2.string()),
|
|
86
82
|
success: z2.boolean(),
|
|
@@ -118,7 +114,7 @@ var afterAIDataResourceEditContextSchema = z2.strictObject({
|
|
|
118
114
|
});
|
|
119
115
|
|
|
120
116
|
// ../../lib/ai-sdk/src/toolDefinitions/editing/createPropertyEdit.ts
|
|
121
|
-
var z3 = __toESM(require("zod"), 1);
|
|
117
|
+
var z3 = __toESM(require("zod/v3"), 1);
|
|
122
118
|
var createPropertyEdit = {
|
|
123
119
|
displayName: "Create Property Edit",
|
|
124
120
|
description: "Edits a property on a composition, entry, or pattern with AI. This is a callable tool NOT FOR AGENT USE - agents use applyPropertyEdit to broker client-side application of the edit.",
|
|
@@ -159,7 +155,7 @@ var createPropertyEdit = {
|
|
|
159
155
|
};
|
|
160
156
|
|
|
161
157
|
// src/afterAIEdit.ts
|
|
162
|
-
var z4 = __toESM(require("zod"));
|
|
158
|
+
var z4 = __toESM(require("zod/v3"));
|
|
163
159
|
var afterAIEditResultSchema = z4.strictObject({
|
|
164
160
|
newValue: z4.unknown(),
|
|
165
161
|
success: z4.boolean(),
|
|
@@ -238,7 +234,7 @@ var COLLECTION_MAX_LIMIT = 50;
|
|
|
238
234
|
var COLLECTION_DEFAULT_OFFSET = 0;
|
|
239
235
|
|
|
240
236
|
// src/createAIDataResourceEdit.ts
|
|
241
|
-
var z5 = __toESM(require("zod"));
|
|
237
|
+
var z5 = __toESM(require("zod/v3"));
|
|
242
238
|
var createAIDataResourceEditContextSchema = z5.strictObject({
|
|
243
239
|
/**
|
|
244
240
|
* The the data type of the data resource being edited (merged with its data source)
|
|
@@ -270,7 +266,7 @@ var createAIDataResourceEditResultSchema = z5.strictObject({
|
|
|
270
266
|
});
|
|
271
267
|
|
|
272
268
|
// src/createAIEdit.ts
|
|
273
|
-
var z6 = __toESM(require("zod"));
|
|
269
|
+
var z6 = __toESM(require("zod/v3"));
|
|
274
270
|
var createAIEditContextSchema = z6.strictObject({
|
|
275
271
|
editRequest: createPropertyEdit.inputSchema,
|
|
276
272
|
invocationContext: invocationContextsSchema,
|
|
@@ -324,11 +320,11 @@ function copyKeyValuePairs(source, target) {
|
|
|
324
320
|
}
|
|
325
321
|
|
|
326
322
|
// src/preRequest.ts
|
|
327
|
-
var z8 = __toESM(require("zod"));
|
|
323
|
+
var z8 = __toESM(require("zod/v3"));
|
|
328
324
|
|
|
329
325
|
// src/shared.ts
|
|
330
326
|
var import_tsafe = require("tsafe");
|
|
331
|
-
var z7 = __toESM(require("zod"));
|
|
327
|
+
var z7 = __toESM(require("zod/v3"));
|
|
332
328
|
var parameterDefinitionSchema = z7.object({
|
|
333
329
|
key: z7.string(),
|
|
334
330
|
value: z7.string(),
|
|
@@ -421,7 +417,7 @@ var preRequestEdgehancerResultSchema = z8.strictObject({
|
|
|
421
417
|
});
|
|
422
418
|
|
|
423
419
|
// src/request.ts
|
|
424
|
-
var z9 = __toESM(require("zod"));
|
|
420
|
+
var z9 = __toESM(require("zod/v3"));
|
|
425
421
|
var requestEdgehancerDataResourceResolutionResultSchema = z9.strictObject({
|
|
426
422
|
errors: z9.array(resolvingIssueSchema).optional().describe(
|
|
427
423
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../lib/ai-sdk/src/InvocationContexts.ts
|
|
2
|
-
import * as z from "zod";
|
|
2
|
+
import * as z from "zod/v3";
|
|
3
3
|
var invocationContextsSchema = z.enum([
|
|
4
4
|
"composition",
|
|
5
5
|
"compositionPattern",
|
|
@@ -14,13 +14,9 @@ var invocationContextInfoSchema = z.object({
|
|
|
14
14
|
displayName: z.string().optional(),
|
|
15
15
|
icon: z.string().optional()
|
|
16
16
|
});
|
|
17
|
-
var invocationContextAnnotationSchema = z.object({
|
|
18
|
-
type: z.literal("invocationContext"),
|
|
19
|
-
value: invocationContextInfoSchema
|
|
20
|
-
});
|
|
21
17
|
|
|
22
18
|
// src/afterAIDataResourceEdit.ts
|
|
23
|
-
import * as z2 from "zod";
|
|
19
|
+
import * as z2 from "zod/v3";
|
|
24
20
|
var afterAIDataResourceEditResultSchema = z2.strictObject({
|
|
25
21
|
newValue: z2.record(z2.string(), z2.string()),
|
|
26
22
|
success: z2.boolean(),
|
|
@@ -58,7 +54,7 @@ var afterAIDataResourceEditContextSchema = z2.strictObject({
|
|
|
58
54
|
});
|
|
59
55
|
|
|
60
56
|
// ../../lib/ai-sdk/src/toolDefinitions/editing/createPropertyEdit.ts
|
|
61
|
-
import * as z3 from "zod";
|
|
57
|
+
import * as z3 from "zod/v3";
|
|
62
58
|
var createPropertyEdit = {
|
|
63
59
|
displayName: "Create Property Edit",
|
|
64
60
|
description: "Edits a property on a composition, entry, or pattern with AI. This is a callable tool NOT FOR AGENT USE - agents use applyPropertyEdit to broker client-side application of the edit.",
|
|
@@ -99,7 +95,7 @@ var createPropertyEdit = {
|
|
|
99
95
|
};
|
|
100
96
|
|
|
101
97
|
// src/afterAIEdit.ts
|
|
102
|
-
import * as z4 from "zod";
|
|
98
|
+
import * as z4 from "zod/v3";
|
|
103
99
|
var afterAIEditResultSchema = z4.strictObject({
|
|
104
100
|
newValue: z4.unknown(),
|
|
105
101
|
success: z4.boolean(),
|
|
@@ -178,7 +174,7 @@ var COLLECTION_MAX_LIMIT = 50;
|
|
|
178
174
|
var COLLECTION_DEFAULT_OFFSET = 0;
|
|
179
175
|
|
|
180
176
|
// src/createAIDataResourceEdit.ts
|
|
181
|
-
import * as z5 from "zod";
|
|
177
|
+
import * as z5 from "zod/v3";
|
|
182
178
|
var createAIDataResourceEditContextSchema = z5.strictObject({
|
|
183
179
|
/**
|
|
184
180
|
* The the data type of the data resource being edited (merged with its data source)
|
|
@@ -210,7 +206,7 @@ var createAIDataResourceEditResultSchema = z5.strictObject({
|
|
|
210
206
|
});
|
|
211
207
|
|
|
212
208
|
// src/createAIEdit.ts
|
|
213
|
-
import * as z6 from "zod";
|
|
209
|
+
import * as z6 from "zod/v3";
|
|
214
210
|
var createAIEditContextSchema = z6.strictObject({
|
|
215
211
|
editRequest: createPropertyEdit.inputSchema,
|
|
216
212
|
invocationContext: invocationContextsSchema,
|
|
@@ -264,11 +260,11 @@ function copyKeyValuePairs(source, target) {
|
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
// src/preRequest.ts
|
|
267
|
-
import * as z8 from "zod";
|
|
263
|
+
import * as z8 from "zod/v3";
|
|
268
264
|
|
|
269
265
|
// src/shared.ts
|
|
270
266
|
import { assert } from "tsafe";
|
|
271
|
-
import * as z7 from "zod";
|
|
267
|
+
import * as z7 from "zod/v3";
|
|
272
268
|
var parameterDefinitionSchema = z7.object({
|
|
273
269
|
key: z7.string(),
|
|
274
270
|
value: z7.string(),
|
|
@@ -361,7 +357,7 @@ var preRequestEdgehancerResultSchema = z8.strictObject({
|
|
|
361
357
|
});
|
|
362
358
|
|
|
363
359
|
// src/request.ts
|
|
364
|
-
import * as z9 from "zod";
|
|
360
|
+
import * as z9 from "zod/v3";
|
|
365
361
|
var requestEdgehancerDataResourceResolutionResultSchema = z9.strictObject({
|
|
366
362
|
errors: z9.array(resolvingIssueSchema).optional().describe(
|
|
367
363
|
"Errors that occurred while running your code to return with the API response, if any. Unhandled exceptions will be captured automatically."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-edgehancer-sdk",
|
|
3
|
-
"version": "20.7.1-alpha.
|
|
3
|
+
"version": "20.7.1-alpha.134+97fe4134d7",
|
|
4
4
|
"description": "Uniform Mesh Edgehancer SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"/dist"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@uniformdev/canvas": "20.7.1-alpha.
|
|
51
|
+
"@uniformdev/canvas": "20.7.1-alpha.134+97fe4134d7",
|
|
52
52
|
"tsafe": "1.6.6",
|
|
53
|
-
"zod": "3.
|
|
53
|
+
"zod": "3.25.76"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"next": "
|
|
56
|
+
"next": "16.0.10"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"next": ">13"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "97fe4134d72fb8c0b3a3432e1a6a410fdedeedb4"
|
|
65
65
|
}
|