@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.
Files changed (36) hide show
  1. package/lib/contracts/agent.d.ts +162 -0
  2. package/lib/contracts/agent.d.ts.map +1 -1
  3. package/lib/contracts/agent.js +47 -1
  4. package/lib/contracts/agent.js.map +1 -1
  5. package/lib/contracts/menu.d.ts +2 -2
  6. package/lib/contracts/page.d.ts +7 -7
  7. package/lib/contracts/render.d.ts +5 -5
  8. package/lib/contracts/semantic.d.ts +2 -2
  9. package/lib/contracts/tenant.d.ts +46 -11
  10. package/lib/contracts/tenant.d.ts.map +1 -1
  11. package/lib/contracts/tenant.js +10 -2
  12. package/lib/contracts/tenant.js.map +1 -1
  13. package/lib/contracts/trend.d.ts +259 -0
  14. package/lib/contracts/trend.d.ts.map +1 -1
  15. package/lib/contracts/trend.js +146 -1
  16. package/lib/contracts/trend.js.map +1 -1
  17. package/lib/esm/contracts/index.mjs +179 -1
  18. package/lib/esm/contracts/index.mjs.map +1 -1
  19. package/lib/esm/index.mjs +181 -1
  20. package/lib/esm/index.mjs.map +1 -1
  21. package/lib/esm/runtime/index.mjs +44 -1
  22. package/lib/esm/runtime/index.mjs.map +1 -1
  23. package/lib/esm/schemas/index.mjs +183 -1
  24. package/lib/esm/schemas/index.mjs.map +1 -1
  25. package/lib/json-schema/agent-workbench-quick-start-view-model.schema.json +167 -0
  26. package/lib/json-schema/index.json +2 -0
  27. package/lib/json-schema/radar-analysis-detail.schema.json +83 -0
  28. package/lib/json-schema/radar-analysis-run.schema.json +83 -0
  29. package/lib/json-schema/tenant-product-config.schema.json +34 -0
  30. package/lib/json-schema/tenant-runtime-config.schema.json +34 -0
  31. package/lib/json-schema/trend-radar-collection-item.schema.json +524 -0
  32. package/lib/schemas/index.d.ts +209 -18
  33. package/lib/schemas/index.d.ts.map +1 -1
  34. package/lib/schemas/index.js +28 -4
  35. package/lib/schemas/index.js.map +1 -1
  36. package/package.json +1 -1
@@ -7935,6 +7935,44 @@ var AgentWorkbenchComposerCapabilitiesSchema = z5.object({
7935
7935
  queue: z5.boolean().default(false),
7936
7936
  stop: z5.boolean().default(false)
7937
7937
  }).strict();
7938
+ var AgentWorkbenchQuickStartIconSchema = z5.enum([
7939
+ "sparkles",
7940
+ "palette",
7941
+ "search",
7942
+ "file-text",
7943
+ "code",
7944
+ "shopping-bag"
7945
+ ]);
7946
+ var AgentWorkbenchQuickStartTemplateActionSchema = z5.enum(["prompt", "upload"]);
7947
+ var AgentWorkbenchQuickStartTemplateSchema = z5.object({
7948
+ id: ContractIdentifierSchema,
7949
+ title: z5.string().min(1),
7950
+ description: z5.string().min(1).optional(),
7951
+ prompt: z5.string().min(1),
7952
+ action: AgentWorkbenchQuickStartTemplateActionSchema.default("prompt"),
7953
+ icon: AgentWorkbenchQuickStartIconSchema.optional(),
7954
+ coverImageUrl: z5.string().min(1).optional(),
7955
+ accept: z5.string().min(1).default("*/*"),
7956
+ multiple: z5.boolean().default(false),
7957
+ modes: z5.array(AgentModeSchema).min(1).optional()
7958
+ }).strict();
7959
+ var AgentWorkbenchQuickStartSectionSchema = z5.object({
7960
+ id: ContractIdentifierSchema,
7961
+ label: z5.string().min(1),
7962
+ templates: z5.array(AgentWorkbenchQuickStartTemplateSchema).min(1)
7963
+ }).strict();
7964
+ var AgentWorkbenchQuickStartCategorySchema = z5.object({
7965
+ id: ContractIdentifierSchema,
7966
+ label: z5.string().min(1),
7967
+ icon: AgentWorkbenchQuickStartIconSchema.optional(),
7968
+ sections: z5.array(AgentWorkbenchQuickStartSectionSchema).min(1)
7969
+ }).strict();
7970
+ var AgentWorkbenchQuickStartViewModelSchema = z5.object({
7971
+ contract: z5.literal("AgentWorkbenchQuickStartViewModel"),
7972
+ mode: AgentModeSchema,
7973
+ categories: z5.array(AgentWorkbenchQuickStartCategorySchema).min(1),
7974
+ disabled: z5.boolean().default(false)
7975
+ }).strict();
7938
7976
  var AgentWorkbenchComposerViewModelSchema = z5.object({
7939
7977
  contract: z5.literal("AgentWorkbenchComposerViewModel"),
7940
7978
  value: z5.string().default(""),
@@ -11149,9 +11187,14 @@ var TenantTrendRadarSourceSchema = z13.object({
11149
11187
  ontologyId: ContractIdentifierSchema,
11150
11188
  viewId: ContractIdentifierSchema
11151
11189
  }).strict();
11190
+ var TenantTrendRadarCollectionTargetSchema = z13.object({
11191
+ ontologyId: ContractIdentifierSchema
11192
+ }).strict();
11152
11193
  var TenantTrendRadarSourcesSchema = z13.object({
11194
+ products: TenantTrendRadarSourceSchema.optional(),
11153
11195
  hotwords: TenantTrendRadarSourceSchema.optional(),
11154
- brands: TenantTrendRadarSourceSchema.optional()
11196
+ brands: TenantTrendRadarSourceSchema.optional(),
11197
+ collection: TenantTrendRadarCollectionTargetSchema.optional()
11155
11198
  }).strict();
11156
11199
  var AssetVariantsSchema = z13.object({
11157
11200
  light: z13.string().optional(),
@@ -11873,6 +11916,120 @@ var RadarSelectionSchema = z14.object({
11873
11916
  expectedVersion: z14.number().int().nonnegative(),
11874
11917
  updatedAt: IsoDateTimeSchema
11875
11918
  }).strict();
11919
+ var versionedRefFields = {
11920
+ id: ContractIdentifierSchema,
11921
+ version: z14.union([z14.number().int().positive(), z14.string().trim().min(1)]).optional(),
11922
+ ownerRepo: ContractIdentifierSchema.optional()
11923
+ };
11924
+ var TrendRadarCollectionAssetRefSchema = z14.object({
11925
+ kind: z14.literal("asset"),
11926
+ ...versionedRefFields
11927
+ }).strict();
11928
+ var TrendRadarCollectionSelectionRefSchema = z14.object({
11929
+ kind: z14.literal("radar-selection"),
11930
+ ...versionedRefFields
11931
+ }).strict();
11932
+ var TrendRadarCollectionRunRefSchema = z14.object({
11933
+ kind: z14.literal("radar-analysis-run"),
11934
+ ...versionedRefFields
11935
+ }).strict();
11936
+ var TrendRadarCollectionSubjectRefSchema = z14.object({
11937
+ kind: z14.literal("hotword"),
11938
+ ...versionedRefFields
11939
+ }).strict();
11940
+ var TrendRadarCollectionArtifactRefSchema = z14.object({
11941
+ kind: z14.literal("artifact"),
11942
+ ...versionedRefFields
11943
+ }).strict();
11944
+ var TrendRadarCollectionRecipeEntrySchema = z14.object({
11945
+ subjectRef: TrendRadarCollectionSubjectRefSchema,
11946
+ label: z14.string().trim().min(1).max(200)
11947
+ }).strict();
11948
+ var TrendRadarCollectionRecipeSchema = z14.object({
11949
+ category: z14.array(TrendRadarCollectionRecipeEntrySchema),
11950
+ design: z14.array(TrendRadarCollectionRecipeEntrySchema),
11951
+ audience: z14.array(TrendRadarCollectionRecipeEntrySchema)
11952
+ }).strict().refine(
11953
+ (recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
11954
+ "A Trend Radar collection recipe must contain at least one subject."
11955
+ );
11956
+ var TrendRadarCollectionDecisionAxisSchema = z14.object({
11957
+ key: ContractIdentifierSchema,
11958
+ label: z14.string().trim().min(1).max(200).optional(),
11959
+ value: z14.number().finite()
11960
+ }).strict();
11961
+ var TrendRadarCollectionDecisionProjectionSchema = z14.object({
11962
+ axes: z14.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
11963
+ overallScore: z14.number().finite().optional(),
11964
+ itemRank: z14.number().finite().optional(),
11965
+ sourceRefs: z14.array(EntityRefSchema).optional(),
11966
+ outputRefs: z14.array(EntityRefSchema).optional()
11967
+ }).strict().superRefine((projection, context) => {
11968
+ const hasProjection = Boolean(
11969
+ projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
11970
+ );
11971
+ if (!hasProjection) {
11972
+ context.addIssue({
11973
+ code: "custom",
11974
+ message: "A decision projection must contain canonical decision data or references."
11975
+ });
11976
+ }
11977
+ const seenAxisKeys = /* @__PURE__ */ new Set();
11978
+ projection.axes?.forEach((axis, index) => {
11979
+ if (seenAxisKeys.has(axis.key)) {
11980
+ context.addIssue({
11981
+ code: "custom",
11982
+ path: ["axes", index, "key"],
11983
+ message: `Duplicate decision axis key: ${axis.key}`
11984
+ });
11985
+ }
11986
+ seenAxisKeys.add(axis.key);
11987
+ });
11988
+ });
11989
+ var TrendRadarCollectionArtifactProjectionSchema = z14.object({
11990
+ artifactRef: TrendRadarCollectionArtifactRefSchema,
11991
+ url: z14.string().url().optional(),
11992
+ thumbnailUrl: z14.string().url().optional(),
11993
+ mimeType: z14.string().trim().min(1).optional(),
11994
+ metadata: JsonObjectSchema.optional()
11995
+ }).strict();
11996
+ var TrendRadarCollectionProjectionWritebackSchema = z14.object({
11997
+ status: z14.enum(["PENDING", "APPLIED", "FAILED"]),
11998
+ updatedAt: IsoDateTimeSchema,
11999
+ error: z14.object({
12000
+ code: ContractIdentifierSchema,
12001
+ message: z14.string().trim().min(1),
12002
+ retryable: z14.boolean()
12003
+ }).strict().optional()
12004
+ }).strict().superRefine((writeback, context) => {
12005
+ if (writeback.status === "FAILED" && !writeback.error) {
12006
+ context.addIssue({
12007
+ code: "custom",
12008
+ path: ["error"],
12009
+ message: "A failed collection projection writeback must include an error."
12010
+ });
12011
+ }
12012
+ if (writeback.status !== "FAILED" && writeback.error) {
12013
+ context.addIssue({
12014
+ code: "custom",
12015
+ path: ["error"],
12016
+ message: "Only a failed collection projection writeback may include an error."
12017
+ });
12018
+ }
12019
+ });
12020
+ var TrendRadarCollectionItemSchema = z14.object({
12021
+ contract: z14.literal("TrendRadarCollectionItem"),
12022
+ schemaVersion: z14.literal(1),
12023
+ selectionRef: TrendRadarCollectionSelectionRefSchema,
12024
+ recipe: TrendRadarCollectionRecipeSchema,
12025
+ status: z14.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
12026
+ latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
12027
+ decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
12028
+ artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
12029
+ createdAt: IsoDateTimeSchema,
12030
+ updatedAt: IsoDateTimeSchema,
12031
+ generatedAt: IsoDateTimeSchema.optional()
12032
+ }).strict();
11876
12033
  var RadarAnalysisRunSchema = z14.object({
11877
12034
  contract: z14.literal("RadarAnalysisRun"),
11878
12035
  runId: ContractIdentifierSchema,
@@ -11882,6 +12039,8 @@ var RadarAnalysisRunSchema = z14.object({
11882
12039
  executionRef: EntityRefSchema.optional(),
11883
12040
  designProjectRef: EntityRefSchema.optional(),
11884
12041
  replayedFromRef: EntityRefSchema.optional(),
12042
+ collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
12043
+ collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
11885
12044
  workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
11886
12045
  workflowInput: z14.record(z14.string(), JsonValueSchema).default({}),
11887
12046
  createDesignProject: z14.boolean().default(true),
@@ -12553,6 +12712,7 @@ var canonicalContractSchemas = {
12553
12712
  "agent-session-view-model": AgentSessionViewModelSchema,
12554
12713
  "agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
12555
12714
  "agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
12715
+ "agent-workbench-quick-start-view-model": AgentWorkbenchQuickStartViewModelSchema,
12556
12716
  "agent-runtime-event": AgentRuntimeEventSchema,
12557
12717
  "application-run": ApplicationRunSchema,
12558
12718
  "application-handoff": ApplicationHandoffSchema,
@@ -12604,6 +12764,7 @@ var canonicalContractSchemas = {
12604
12764
  "tenant-product-config": TenantProductConfigSchema,
12605
12765
  "tenant-runtime-config": TenantRuntimeConfigSchema,
12606
12766
  "theme-tokens": ThemeTokensSchema,
12767
+ "trend-radar-collection-item": TrendRadarCollectionItemSchema,
12607
12768
  "trend-ingest-run": TrendIngestRunSchema,
12608
12769
  "trend-metric-snapshot": TrendMetricSnapshotSchema,
12609
12770
  "trend-source-record": TrendSourceRecordSchema,
@@ -12653,6 +12814,12 @@ export {
12653
12814
  AgentWorkbenchNavigationCapabilitiesSchema,
12654
12815
  AgentWorkbenchNavigationItemStatusSchema,
12655
12816
  AgentWorkbenchNavigationViewModelSchema,
12817
+ AgentWorkbenchQuickStartCategorySchema,
12818
+ AgentWorkbenchQuickStartIconSchema,
12819
+ AgentWorkbenchQuickStartSectionSchema,
12820
+ AgentWorkbenchQuickStartTemplateActionSchema,
12821
+ AgentWorkbenchQuickStartTemplateSchema,
12822
+ AgentWorkbenchQuickStartViewModelSchema,
12656
12823
  AgentWorkbenchSessionItemSchema,
12657
12824
  ApplicationHandoffEndpointSchema,
12658
12825
  ApplicationHandoffSchema,
@@ -12776,6 +12943,9 @@ export {
12776
12943
  TenantLandingPageConfigSchema,
12777
12944
  TenantProductConfigSchema,
12778
12945
  TenantRuntimeConfigSchema,
12946
+ TenantTrendRadarCollectionTargetSchema,
12947
+ TenantTrendRadarSourceSchema,
12948
+ TenantTrendRadarSourcesSchema,
12779
12949
  TenantWorkbenchConfigSchema,
12780
12950
  TenantWorkbenchPageContextSchema,
12781
12951
  TenantWorkbenchPageEnvelopeSchema,
@@ -12786,6 +12956,18 @@ export {
12786
12956
  ThemeTokensSchema,
12787
12957
  TrendIngestRunSchema,
12788
12958
  TrendMetricSnapshotSchema,
12959
+ TrendRadarCollectionArtifactProjectionSchema,
12960
+ TrendRadarCollectionArtifactRefSchema,
12961
+ TrendRadarCollectionAssetRefSchema,
12962
+ TrendRadarCollectionDecisionAxisSchema,
12963
+ TrendRadarCollectionDecisionProjectionSchema,
12964
+ TrendRadarCollectionItemSchema,
12965
+ TrendRadarCollectionProjectionWritebackSchema,
12966
+ TrendRadarCollectionRecipeEntrySchema,
12967
+ TrendRadarCollectionRecipeSchema,
12968
+ TrendRadarCollectionRunRefSchema,
12969
+ TrendRadarCollectionSelectionRefSchema,
12970
+ TrendRadarCollectionSubjectRefSchema,
12789
12971
  TrendSourceRecordSchema,
12790
12972
  TrendSourceSchema,
12791
12973
  ViewProviderDescriptorSchema,