@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
package/lib/esm/index.mjs
CHANGED
|
@@ -7586,6 +7586,44 @@ var AgentWorkbenchComposerCapabilitiesSchema = z3.object({
|
|
|
7586
7586
|
queue: z3.boolean().default(false),
|
|
7587
7587
|
stop: z3.boolean().default(false)
|
|
7588
7588
|
}).strict();
|
|
7589
|
+
var AgentWorkbenchQuickStartIconSchema = z3.enum([
|
|
7590
|
+
"sparkles",
|
|
7591
|
+
"palette",
|
|
7592
|
+
"search",
|
|
7593
|
+
"file-text",
|
|
7594
|
+
"code",
|
|
7595
|
+
"shopping-bag"
|
|
7596
|
+
]);
|
|
7597
|
+
var AgentWorkbenchQuickStartTemplateActionSchema = z3.enum(["prompt", "upload"]);
|
|
7598
|
+
var AgentWorkbenchQuickStartTemplateSchema = z3.object({
|
|
7599
|
+
id: ContractIdentifierSchema,
|
|
7600
|
+
title: z3.string().min(1),
|
|
7601
|
+
description: z3.string().min(1).optional(),
|
|
7602
|
+
prompt: z3.string().min(1),
|
|
7603
|
+
action: AgentWorkbenchQuickStartTemplateActionSchema.default("prompt"),
|
|
7604
|
+
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7605
|
+
coverImageUrl: z3.string().min(1).optional(),
|
|
7606
|
+
accept: z3.string().min(1).default("*/*"),
|
|
7607
|
+
multiple: z3.boolean().default(false),
|
|
7608
|
+
modes: z3.array(AgentModeSchema).min(1).optional()
|
|
7609
|
+
}).strict();
|
|
7610
|
+
var AgentWorkbenchQuickStartSectionSchema = z3.object({
|
|
7611
|
+
id: ContractIdentifierSchema,
|
|
7612
|
+
label: z3.string().min(1),
|
|
7613
|
+
templates: z3.array(AgentWorkbenchQuickStartTemplateSchema).min(1)
|
|
7614
|
+
}).strict();
|
|
7615
|
+
var AgentWorkbenchQuickStartCategorySchema = z3.object({
|
|
7616
|
+
id: ContractIdentifierSchema,
|
|
7617
|
+
label: z3.string().min(1),
|
|
7618
|
+
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7619
|
+
sections: z3.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
7620
|
+
}).strict();
|
|
7621
|
+
var AgentWorkbenchQuickStartViewModelSchema = z3.object({
|
|
7622
|
+
contract: z3.literal("AgentWorkbenchQuickStartViewModel"),
|
|
7623
|
+
mode: AgentModeSchema,
|
|
7624
|
+
categories: z3.array(AgentWorkbenchQuickStartCategorySchema).min(1),
|
|
7625
|
+
disabled: z3.boolean().default(false)
|
|
7626
|
+
}).strict();
|
|
7589
7627
|
var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
7590
7628
|
contract: z3.literal("AgentWorkbenchComposerViewModel"),
|
|
7591
7629
|
value: z3.string().default(""),
|
|
@@ -11283,9 +11321,14 @@ var TenantTrendRadarSourceSchema = z13.object({
|
|
|
11283
11321
|
ontologyId: ContractIdentifierSchema,
|
|
11284
11322
|
viewId: ContractIdentifierSchema
|
|
11285
11323
|
}).strict();
|
|
11324
|
+
var TenantTrendRadarCollectionTargetSchema = z13.object({
|
|
11325
|
+
ontologyId: ContractIdentifierSchema
|
|
11326
|
+
}).strict();
|
|
11286
11327
|
var TenantTrendRadarSourcesSchema = z13.object({
|
|
11328
|
+
products: TenantTrendRadarSourceSchema.optional(),
|
|
11287
11329
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
11288
|
-
brands: TenantTrendRadarSourceSchema.optional()
|
|
11330
|
+
brands: TenantTrendRadarSourceSchema.optional(),
|
|
11331
|
+
collection: TenantTrendRadarCollectionTargetSchema.optional()
|
|
11289
11332
|
}).strict();
|
|
11290
11333
|
var AssetVariantsSchema = z13.object({
|
|
11291
11334
|
light: z13.string().optional(),
|
|
@@ -12007,6 +12050,120 @@ var RadarSelectionSchema = z14.object({
|
|
|
12007
12050
|
expectedVersion: z14.number().int().nonnegative(),
|
|
12008
12051
|
updatedAt: IsoDateTimeSchema
|
|
12009
12052
|
}).strict();
|
|
12053
|
+
var versionedRefFields = {
|
|
12054
|
+
id: ContractIdentifierSchema,
|
|
12055
|
+
version: z14.union([z14.number().int().positive(), z14.string().trim().min(1)]).optional(),
|
|
12056
|
+
ownerRepo: ContractIdentifierSchema.optional()
|
|
12057
|
+
};
|
|
12058
|
+
var TrendRadarCollectionAssetRefSchema = z14.object({
|
|
12059
|
+
kind: z14.literal("asset"),
|
|
12060
|
+
...versionedRefFields
|
|
12061
|
+
}).strict();
|
|
12062
|
+
var TrendRadarCollectionSelectionRefSchema = z14.object({
|
|
12063
|
+
kind: z14.literal("radar-selection"),
|
|
12064
|
+
...versionedRefFields
|
|
12065
|
+
}).strict();
|
|
12066
|
+
var TrendRadarCollectionRunRefSchema = z14.object({
|
|
12067
|
+
kind: z14.literal("radar-analysis-run"),
|
|
12068
|
+
...versionedRefFields
|
|
12069
|
+
}).strict();
|
|
12070
|
+
var TrendRadarCollectionSubjectRefSchema = z14.object({
|
|
12071
|
+
kind: z14.literal("hotword"),
|
|
12072
|
+
...versionedRefFields
|
|
12073
|
+
}).strict();
|
|
12074
|
+
var TrendRadarCollectionArtifactRefSchema = z14.object({
|
|
12075
|
+
kind: z14.literal("artifact"),
|
|
12076
|
+
...versionedRefFields
|
|
12077
|
+
}).strict();
|
|
12078
|
+
var TrendRadarCollectionRecipeEntrySchema = z14.object({
|
|
12079
|
+
subjectRef: TrendRadarCollectionSubjectRefSchema,
|
|
12080
|
+
label: z14.string().trim().min(1).max(200)
|
|
12081
|
+
}).strict();
|
|
12082
|
+
var TrendRadarCollectionRecipeSchema = z14.object({
|
|
12083
|
+
category: z14.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12084
|
+
design: z14.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12085
|
+
audience: z14.array(TrendRadarCollectionRecipeEntrySchema)
|
|
12086
|
+
}).strict().refine(
|
|
12087
|
+
(recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
|
|
12088
|
+
"A Trend Radar collection recipe must contain at least one subject."
|
|
12089
|
+
);
|
|
12090
|
+
var TrendRadarCollectionDecisionAxisSchema = z14.object({
|
|
12091
|
+
key: ContractIdentifierSchema,
|
|
12092
|
+
label: z14.string().trim().min(1).max(200).optional(),
|
|
12093
|
+
value: z14.number().finite()
|
|
12094
|
+
}).strict();
|
|
12095
|
+
var TrendRadarCollectionDecisionProjectionSchema = z14.object({
|
|
12096
|
+
axes: z14.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
|
|
12097
|
+
overallScore: z14.number().finite().optional(),
|
|
12098
|
+
itemRank: z14.number().finite().optional(),
|
|
12099
|
+
sourceRefs: z14.array(EntityRefSchema).optional(),
|
|
12100
|
+
outputRefs: z14.array(EntityRefSchema).optional()
|
|
12101
|
+
}).strict().superRefine((projection, context) => {
|
|
12102
|
+
const hasProjection = Boolean(
|
|
12103
|
+
projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
|
|
12104
|
+
);
|
|
12105
|
+
if (!hasProjection) {
|
|
12106
|
+
context.addIssue({
|
|
12107
|
+
code: "custom",
|
|
12108
|
+
message: "A decision projection must contain canonical decision data or references."
|
|
12109
|
+
});
|
|
12110
|
+
}
|
|
12111
|
+
const seenAxisKeys = /* @__PURE__ */ new Set();
|
|
12112
|
+
projection.axes?.forEach((axis, index) => {
|
|
12113
|
+
if (seenAxisKeys.has(axis.key)) {
|
|
12114
|
+
context.addIssue({
|
|
12115
|
+
code: "custom",
|
|
12116
|
+
path: ["axes", index, "key"],
|
|
12117
|
+
message: `Duplicate decision axis key: ${axis.key}`
|
|
12118
|
+
});
|
|
12119
|
+
}
|
|
12120
|
+
seenAxisKeys.add(axis.key);
|
|
12121
|
+
});
|
|
12122
|
+
});
|
|
12123
|
+
var TrendRadarCollectionArtifactProjectionSchema = z14.object({
|
|
12124
|
+
artifactRef: TrendRadarCollectionArtifactRefSchema,
|
|
12125
|
+
url: z14.string().url().optional(),
|
|
12126
|
+
thumbnailUrl: z14.string().url().optional(),
|
|
12127
|
+
mimeType: z14.string().trim().min(1).optional(),
|
|
12128
|
+
metadata: JsonObjectSchema.optional()
|
|
12129
|
+
}).strict();
|
|
12130
|
+
var TrendRadarCollectionProjectionWritebackSchema = z14.object({
|
|
12131
|
+
status: z14.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
12132
|
+
updatedAt: IsoDateTimeSchema,
|
|
12133
|
+
error: z14.object({
|
|
12134
|
+
code: ContractIdentifierSchema,
|
|
12135
|
+
message: z14.string().trim().min(1),
|
|
12136
|
+
retryable: z14.boolean()
|
|
12137
|
+
}).strict().optional()
|
|
12138
|
+
}).strict().superRefine((writeback, context) => {
|
|
12139
|
+
if (writeback.status === "FAILED" && !writeback.error) {
|
|
12140
|
+
context.addIssue({
|
|
12141
|
+
code: "custom",
|
|
12142
|
+
path: ["error"],
|
|
12143
|
+
message: "A failed collection projection writeback must include an error."
|
|
12144
|
+
});
|
|
12145
|
+
}
|
|
12146
|
+
if (writeback.status !== "FAILED" && writeback.error) {
|
|
12147
|
+
context.addIssue({
|
|
12148
|
+
code: "custom",
|
|
12149
|
+
path: ["error"],
|
|
12150
|
+
message: "Only a failed collection projection writeback may include an error."
|
|
12151
|
+
});
|
|
12152
|
+
}
|
|
12153
|
+
});
|
|
12154
|
+
var TrendRadarCollectionItemSchema = z14.object({
|
|
12155
|
+
contract: z14.literal("TrendRadarCollectionItem"),
|
|
12156
|
+
schemaVersion: z14.literal(1),
|
|
12157
|
+
selectionRef: TrendRadarCollectionSelectionRefSchema,
|
|
12158
|
+
recipe: TrendRadarCollectionRecipeSchema,
|
|
12159
|
+
status: z14.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
12160
|
+
latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
|
|
12161
|
+
decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
|
|
12162
|
+
artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
|
|
12163
|
+
createdAt: IsoDateTimeSchema,
|
|
12164
|
+
updatedAt: IsoDateTimeSchema,
|
|
12165
|
+
generatedAt: IsoDateTimeSchema.optional()
|
|
12166
|
+
}).strict();
|
|
12010
12167
|
var RadarAnalysisRunSchema = z14.object({
|
|
12011
12168
|
contract: z14.literal("RadarAnalysisRun"),
|
|
12012
12169
|
runId: ContractIdentifierSchema,
|
|
@@ -12016,6 +12173,8 @@ var RadarAnalysisRunSchema = z14.object({
|
|
|
12016
12173
|
executionRef: EntityRefSchema.optional(),
|
|
12017
12174
|
designProjectRef: EntityRefSchema.optional(),
|
|
12018
12175
|
replayedFromRef: EntityRefSchema.optional(),
|
|
12176
|
+
collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
|
|
12177
|
+
collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
|
|
12019
12178
|
workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
|
|
12020
12179
|
workflowInput: z14.record(z14.string(), JsonValueSchema).default({}),
|
|
12021
12180
|
createDesignProject: z14.boolean().default(true),
|
|
@@ -12687,6 +12846,7 @@ var canonicalContractSchemas = {
|
|
|
12687
12846
|
"agent-session-view-model": AgentSessionViewModelSchema,
|
|
12688
12847
|
"agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
|
|
12689
12848
|
"agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
|
|
12849
|
+
"agent-workbench-quick-start-view-model": AgentWorkbenchQuickStartViewModelSchema,
|
|
12690
12850
|
"agent-runtime-event": AgentRuntimeEventSchema,
|
|
12691
12851
|
"application-run": ApplicationRunSchema,
|
|
12692
12852
|
"application-handoff": ApplicationHandoffSchema,
|
|
@@ -12738,6 +12898,7 @@ var canonicalContractSchemas = {
|
|
|
12738
12898
|
"tenant-product-config": TenantProductConfigSchema,
|
|
12739
12899
|
"tenant-runtime-config": TenantRuntimeConfigSchema,
|
|
12740
12900
|
"theme-tokens": ThemeTokensSchema,
|
|
12901
|
+
"trend-radar-collection-item": TrendRadarCollectionItemSchema,
|
|
12741
12902
|
"trend-ingest-run": TrendIngestRunSchema,
|
|
12742
12903
|
"trend-metric-snapshot": TrendMetricSnapshotSchema,
|
|
12743
12904
|
"trend-source-record": TrendSourceRecordSchema,
|
|
@@ -14538,6 +14699,12 @@ export {
|
|
|
14538
14699
|
AgentWorkbenchNavigationCapabilitiesSchema,
|
|
14539
14700
|
AgentWorkbenchNavigationItemStatusSchema,
|
|
14540
14701
|
AgentWorkbenchNavigationViewModelSchema,
|
|
14702
|
+
AgentWorkbenchQuickStartCategorySchema,
|
|
14703
|
+
AgentWorkbenchQuickStartIconSchema,
|
|
14704
|
+
AgentWorkbenchQuickStartSectionSchema,
|
|
14705
|
+
AgentWorkbenchQuickStartTemplateActionSchema,
|
|
14706
|
+
AgentWorkbenchQuickStartTemplateSchema,
|
|
14707
|
+
AgentWorkbenchQuickStartViewModelSchema,
|
|
14541
14708
|
AgentWorkbenchSessionItemSchema,
|
|
14542
14709
|
ApplicationHandoffEndpointSchema,
|
|
14543
14710
|
ApplicationHandoffSchema,
|
|
@@ -14695,6 +14862,7 @@ export {
|
|
|
14695
14862
|
TenantLandingPageConfigSchema,
|
|
14696
14863
|
TenantProductConfigSchema,
|
|
14697
14864
|
TenantRuntimeConfigSchema,
|
|
14865
|
+
TenantTrendRadarCollectionTargetSchema,
|
|
14698
14866
|
TenantTrendRadarSourceSchema,
|
|
14699
14867
|
TenantTrendRadarSourcesSchema,
|
|
14700
14868
|
TenantWorkbenchConfigSchema,
|
|
@@ -14710,6 +14878,18 @@ export {
|
|
|
14710
14878
|
ToolType,
|
|
14711
14879
|
TrendIngestRunSchema,
|
|
14712
14880
|
TrendMetricSnapshotSchema,
|
|
14881
|
+
TrendRadarCollectionArtifactProjectionSchema,
|
|
14882
|
+
TrendRadarCollectionArtifactRefSchema,
|
|
14883
|
+
TrendRadarCollectionAssetRefSchema,
|
|
14884
|
+
TrendRadarCollectionDecisionAxisSchema,
|
|
14885
|
+
TrendRadarCollectionDecisionProjectionSchema,
|
|
14886
|
+
TrendRadarCollectionItemSchema,
|
|
14887
|
+
TrendRadarCollectionProjectionWritebackSchema,
|
|
14888
|
+
TrendRadarCollectionRecipeEntrySchema,
|
|
14889
|
+
TrendRadarCollectionRecipeSchema,
|
|
14890
|
+
TrendRadarCollectionRunRefSchema,
|
|
14891
|
+
TrendRadarCollectionSelectionRefSchema,
|
|
14892
|
+
TrendRadarCollectionSubjectRefSchema,
|
|
14713
14893
|
TrendSourceRecordSchema,
|
|
14714
14894
|
TrendSourceSchema,
|
|
14715
14895
|
ValidationIssueType,
|