@inf-monkeys-tech/monkeys 1.0.40 → 1.0.42
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/lib/contracts/agent.d.ts +162 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +47 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/menu.d.ts +2 -2
- package/lib/contracts/page.d.ts +7 -7
- package/lib/contracts/render.d.ts +5 -5
- package/lib/contracts/semantic.d.ts +2 -2
- package/lib/contracts/tenant.d.ts +46 -11
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +10 -2
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/contracts/trend.d.ts +259 -0
- package/lib/contracts/trend.d.ts.map +1 -1
- package/lib/contracts/trend.js +146 -1
- package/lib/contracts/trend.js.map +1 -1
- package/lib/esm/contracts/index.mjs +179 -1
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +181 -1
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +44 -1
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +183 -1
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-workbench-quick-start-view-model.schema.json +167 -0
- package/lib/json-schema/index.json +2 -0
- package/lib/json-schema/radar-analysis-detail.schema.json +83 -0
- package/lib/json-schema/radar-analysis-run.schema.json +83 -0
- package/lib/json-schema/tenant-product-config.schema.json +34 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +34 -0
- package/lib/json-schema/trend-radar-collection-item.schema.json +524 -0
- package/lib/schemas/index.d.ts +209 -18
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +28 -4
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7549,6 +7549,44 @@ var AgentWorkbenchComposerCapabilitiesSchema = z3.object({
|
|
|
7549
7549
|
queue: z3.boolean().default(false),
|
|
7550
7550
|
stop: z3.boolean().default(false)
|
|
7551
7551
|
}).strict();
|
|
7552
|
+
var AgentWorkbenchQuickStartIconSchema = z3.enum([
|
|
7553
|
+
"sparkles",
|
|
7554
|
+
"palette",
|
|
7555
|
+
"search",
|
|
7556
|
+
"file-text",
|
|
7557
|
+
"code",
|
|
7558
|
+
"shopping-bag"
|
|
7559
|
+
]);
|
|
7560
|
+
var AgentWorkbenchQuickStartTemplateActionSchema = z3.enum(["prompt", "upload"]);
|
|
7561
|
+
var AgentWorkbenchQuickStartTemplateSchema = z3.object({
|
|
7562
|
+
id: ContractIdentifierSchema,
|
|
7563
|
+
title: z3.string().min(1),
|
|
7564
|
+
description: z3.string().min(1).optional(),
|
|
7565
|
+
prompt: z3.string().min(1),
|
|
7566
|
+
action: AgentWorkbenchQuickStartTemplateActionSchema.default("prompt"),
|
|
7567
|
+
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7568
|
+
coverImageUrl: z3.string().min(1).optional(),
|
|
7569
|
+
accept: z3.string().min(1).default("*/*"),
|
|
7570
|
+
multiple: z3.boolean().default(false),
|
|
7571
|
+
modes: z3.array(AgentModeSchema).min(1).optional()
|
|
7572
|
+
}).strict();
|
|
7573
|
+
var AgentWorkbenchQuickStartSectionSchema = z3.object({
|
|
7574
|
+
id: ContractIdentifierSchema,
|
|
7575
|
+
label: z3.string().min(1),
|
|
7576
|
+
templates: z3.array(AgentWorkbenchQuickStartTemplateSchema).min(1)
|
|
7577
|
+
}).strict();
|
|
7578
|
+
var AgentWorkbenchQuickStartCategorySchema = z3.object({
|
|
7579
|
+
id: ContractIdentifierSchema,
|
|
7580
|
+
label: z3.string().min(1),
|
|
7581
|
+
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7582
|
+
sections: z3.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
7583
|
+
}).strict();
|
|
7584
|
+
var AgentWorkbenchQuickStartViewModelSchema = z3.object({
|
|
7585
|
+
contract: z3.literal("AgentWorkbenchQuickStartViewModel"),
|
|
7586
|
+
mode: AgentModeSchema,
|
|
7587
|
+
categories: z3.array(AgentWorkbenchQuickStartCategorySchema).min(1),
|
|
7588
|
+
disabled: z3.boolean().default(false)
|
|
7589
|
+
}).strict();
|
|
7552
7590
|
var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
7553
7591
|
contract: z3.literal("AgentWorkbenchComposerViewModel"),
|
|
7554
7592
|
value: z3.string().default(""),
|
|
@@ -11213,9 +11251,14 @@ var TenantTrendRadarSourceSchema = z13.object({
|
|
|
11213
11251
|
ontologyId: ContractIdentifierSchema,
|
|
11214
11252
|
viewId: ContractIdentifierSchema
|
|
11215
11253
|
}).strict();
|
|
11254
|
+
var TenantTrendRadarCollectionTargetSchema = z13.object({
|
|
11255
|
+
ontologyId: ContractIdentifierSchema
|
|
11256
|
+
}).strict();
|
|
11216
11257
|
var TenantTrendRadarSourcesSchema = z13.object({
|
|
11258
|
+
products: TenantTrendRadarSourceSchema.optional(),
|
|
11217
11259
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
11218
|
-
brands: TenantTrendRadarSourceSchema.optional()
|
|
11260
|
+
brands: TenantTrendRadarSourceSchema.optional(),
|
|
11261
|
+
collection: TenantTrendRadarCollectionTargetSchema.optional()
|
|
11219
11262
|
}).strict();
|
|
11220
11263
|
var AssetVariantsSchema = z13.object({
|
|
11221
11264
|
light: z13.string().optional(),
|
|
@@ -11937,6 +11980,120 @@ var RadarSelectionSchema = z14.object({
|
|
|
11937
11980
|
expectedVersion: z14.number().int().nonnegative(),
|
|
11938
11981
|
updatedAt: IsoDateTimeSchema
|
|
11939
11982
|
}).strict();
|
|
11983
|
+
var versionedRefFields = {
|
|
11984
|
+
id: ContractIdentifierSchema,
|
|
11985
|
+
version: z14.union([z14.number().int().positive(), z14.string().trim().min(1)]).optional(),
|
|
11986
|
+
ownerRepo: ContractIdentifierSchema.optional()
|
|
11987
|
+
};
|
|
11988
|
+
var TrendRadarCollectionAssetRefSchema = z14.object({
|
|
11989
|
+
kind: z14.literal("asset"),
|
|
11990
|
+
...versionedRefFields
|
|
11991
|
+
}).strict();
|
|
11992
|
+
var TrendRadarCollectionSelectionRefSchema = z14.object({
|
|
11993
|
+
kind: z14.literal("radar-selection"),
|
|
11994
|
+
...versionedRefFields
|
|
11995
|
+
}).strict();
|
|
11996
|
+
var TrendRadarCollectionRunRefSchema = z14.object({
|
|
11997
|
+
kind: z14.literal("radar-analysis-run"),
|
|
11998
|
+
...versionedRefFields
|
|
11999
|
+
}).strict();
|
|
12000
|
+
var TrendRadarCollectionSubjectRefSchema = z14.object({
|
|
12001
|
+
kind: z14.literal("hotword"),
|
|
12002
|
+
...versionedRefFields
|
|
12003
|
+
}).strict();
|
|
12004
|
+
var TrendRadarCollectionArtifactRefSchema = z14.object({
|
|
12005
|
+
kind: z14.literal("artifact"),
|
|
12006
|
+
...versionedRefFields
|
|
12007
|
+
}).strict();
|
|
12008
|
+
var TrendRadarCollectionRecipeEntrySchema = z14.object({
|
|
12009
|
+
subjectRef: TrendRadarCollectionSubjectRefSchema,
|
|
12010
|
+
label: z14.string().trim().min(1).max(200)
|
|
12011
|
+
}).strict();
|
|
12012
|
+
var TrendRadarCollectionRecipeSchema = z14.object({
|
|
12013
|
+
category: z14.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12014
|
+
design: z14.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12015
|
+
audience: z14.array(TrendRadarCollectionRecipeEntrySchema)
|
|
12016
|
+
}).strict().refine(
|
|
12017
|
+
(recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
|
|
12018
|
+
"A Trend Radar collection recipe must contain at least one subject."
|
|
12019
|
+
);
|
|
12020
|
+
var TrendRadarCollectionDecisionAxisSchema = z14.object({
|
|
12021
|
+
key: ContractIdentifierSchema,
|
|
12022
|
+
label: z14.string().trim().min(1).max(200).optional(),
|
|
12023
|
+
value: z14.number().finite()
|
|
12024
|
+
}).strict();
|
|
12025
|
+
var TrendRadarCollectionDecisionProjectionSchema = z14.object({
|
|
12026
|
+
axes: z14.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
|
|
12027
|
+
overallScore: z14.number().finite().optional(),
|
|
12028
|
+
itemRank: z14.number().finite().optional(),
|
|
12029
|
+
sourceRefs: z14.array(EntityRefSchema).optional(),
|
|
12030
|
+
outputRefs: z14.array(EntityRefSchema).optional()
|
|
12031
|
+
}).strict().superRefine((projection, context) => {
|
|
12032
|
+
const hasProjection = Boolean(
|
|
12033
|
+
projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
|
|
12034
|
+
);
|
|
12035
|
+
if (!hasProjection) {
|
|
12036
|
+
context.addIssue({
|
|
12037
|
+
code: "custom",
|
|
12038
|
+
message: "A decision projection must contain canonical decision data or references."
|
|
12039
|
+
});
|
|
12040
|
+
}
|
|
12041
|
+
const seenAxisKeys = /* @__PURE__ */ new Set();
|
|
12042
|
+
projection.axes?.forEach((axis, index) => {
|
|
12043
|
+
if (seenAxisKeys.has(axis.key)) {
|
|
12044
|
+
context.addIssue({
|
|
12045
|
+
code: "custom",
|
|
12046
|
+
path: ["axes", index, "key"],
|
|
12047
|
+
message: `Duplicate decision axis key: ${axis.key}`
|
|
12048
|
+
});
|
|
12049
|
+
}
|
|
12050
|
+
seenAxisKeys.add(axis.key);
|
|
12051
|
+
});
|
|
12052
|
+
});
|
|
12053
|
+
var TrendRadarCollectionArtifactProjectionSchema = z14.object({
|
|
12054
|
+
artifactRef: TrendRadarCollectionArtifactRefSchema,
|
|
12055
|
+
url: z14.string().url().optional(),
|
|
12056
|
+
thumbnailUrl: z14.string().url().optional(),
|
|
12057
|
+
mimeType: z14.string().trim().min(1).optional(),
|
|
12058
|
+
metadata: JsonObjectSchema.optional()
|
|
12059
|
+
}).strict();
|
|
12060
|
+
var TrendRadarCollectionProjectionWritebackSchema = z14.object({
|
|
12061
|
+
status: z14.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
12062
|
+
updatedAt: IsoDateTimeSchema,
|
|
12063
|
+
error: z14.object({
|
|
12064
|
+
code: ContractIdentifierSchema,
|
|
12065
|
+
message: z14.string().trim().min(1),
|
|
12066
|
+
retryable: z14.boolean()
|
|
12067
|
+
}).strict().optional()
|
|
12068
|
+
}).strict().superRefine((writeback, context) => {
|
|
12069
|
+
if (writeback.status === "FAILED" && !writeback.error) {
|
|
12070
|
+
context.addIssue({
|
|
12071
|
+
code: "custom",
|
|
12072
|
+
path: ["error"],
|
|
12073
|
+
message: "A failed collection projection writeback must include an error."
|
|
12074
|
+
});
|
|
12075
|
+
}
|
|
12076
|
+
if (writeback.status !== "FAILED" && writeback.error) {
|
|
12077
|
+
context.addIssue({
|
|
12078
|
+
code: "custom",
|
|
12079
|
+
path: ["error"],
|
|
12080
|
+
message: "Only a failed collection projection writeback may include an error."
|
|
12081
|
+
});
|
|
12082
|
+
}
|
|
12083
|
+
});
|
|
12084
|
+
var TrendRadarCollectionItemSchema = z14.object({
|
|
12085
|
+
contract: z14.literal("TrendRadarCollectionItem"),
|
|
12086
|
+
schemaVersion: z14.literal(1),
|
|
12087
|
+
selectionRef: TrendRadarCollectionSelectionRefSchema,
|
|
12088
|
+
recipe: TrendRadarCollectionRecipeSchema,
|
|
12089
|
+
status: z14.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
12090
|
+
latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
|
|
12091
|
+
decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
|
|
12092
|
+
artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
|
|
12093
|
+
createdAt: IsoDateTimeSchema,
|
|
12094
|
+
updatedAt: IsoDateTimeSchema,
|
|
12095
|
+
generatedAt: IsoDateTimeSchema.optional()
|
|
12096
|
+
}).strict();
|
|
11940
12097
|
var RadarAnalysisRunSchema = z14.object({
|
|
11941
12098
|
contract: z14.literal("RadarAnalysisRun"),
|
|
11942
12099
|
runId: ContractIdentifierSchema,
|
|
@@ -11946,6 +12103,8 @@ var RadarAnalysisRunSchema = z14.object({
|
|
|
11946
12103
|
executionRef: EntityRefSchema.optional(),
|
|
11947
12104
|
designProjectRef: EntityRefSchema.optional(),
|
|
11948
12105
|
replayedFromRef: EntityRefSchema.optional(),
|
|
12106
|
+
collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
|
|
12107
|
+
collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
|
|
11949
12108
|
workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
|
|
11950
12109
|
workflowInput: z14.record(z14.string(), JsonValueSchema).default({}),
|
|
11951
12110
|
createDesignProject: z14.boolean().default(true),
|
|
@@ -12650,6 +12809,12 @@ export {
|
|
|
12650
12809
|
AgentWorkbenchNavigationCapabilitiesSchema,
|
|
12651
12810
|
AgentWorkbenchNavigationItemStatusSchema,
|
|
12652
12811
|
AgentWorkbenchNavigationViewModelSchema,
|
|
12812
|
+
AgentWorkbenchQuickStartCategorySchema,
|
|
12813
|
+
AgentWorkbenchQuickStartIconSchema,
|
|
12814
|
+
AgentWorkbenchQuickStartSectionSchema,
|
|
12815
|
+
AgentWorkbenchQuickStartTemplateActionSchema,
|
|
12816
|
+
AgentWorkbenchQuickStartTemplateSchema,
|
|
12817
|
+
AgentWorkbenchQuickStartViewModelSchema,
|
|
12653
12818
|
AgentWorkbenchSessionItemSchema,
|
|
12654
12819
|
ApplicationHandoffEndpointSchema,
|
|
12655
12820
|
ApplicationHandoffSchema,
|
|
@@ -12803,6 +12968,7 @@ export {
|
|
|
12803
12968
|
TenantLandingPageConfigSchema,
|
|
12804
12969
|
TenantProductConfigSchema,
|
|
12805
12970
|
TenantRuntimeConfigSchema,
|
|
12971
|
+
TenantTrendRadarCollectionTargetSchema,
|
|
12806
12972
|
TenantTrendRadarSourceSchema,
|
|
12807
12973
|
TenantTrendRadarSourcesSchema,
|
|
12808
12974
|
TenantWorkbenchConfigSchema,
|
|
@@ -12816,6 +12982,18 @@ export {
|
|
|
12816
12982
|
ThemeTokensSchema,
|
|
12817
12983
|
TrendIngestRunSchema,
|
|
12818
12984
|
TrendMetricSnapshotSchema,
|
|
12985
|
+
TrendRadarCollectionArtifactProjectionSchema,
|
|
12986
|
+
TrendRadarCollectionArtifactRefSchema,
|
|
12987
|
+
TrendRadarCollectionAssetRefSchema,
|
|
12988
|
+
TrendRadarCollectionDecisionAxisSchema,
|
|
12989
|
+
TrendRadarCollectionDecisionProjectionSchema,
|
|
12990
|
+
TrendRadarCollectionItemSchema,
|
|
12991
|
+
TrendRadarCollectionProjectionWritebackSchema,
|
|
12992
|
+
TrendRadarCollectionRecipeEntrySchema,
|
|
12993
|
+
TrendRadarCollectionRecipeSchema,
|
|
12994
|
+
TrendRadarCollectionRunRefSchema,
|
|
12995
|
+
TrendRadarCollectionSelectionRefSchema,
|
|
12996
|
+
TrendRadarCollectionSubjectRefSchema,
|
|
12819
12997
|
TrendSourceRecordSchema,
|
|
12820
12998
|
TrendSourceSchema,
|
|
12821
12999
|
ViewProviderDescriptorSchema,
|