@inf-monkeys-tech/monkeys 1.0.69 → 1.0.71

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.
@@ -13918,8 +13918,64 @@ var WorkflowCompletionReceiptSchema = z18.object({
13918
13918
  });
13919
13919
  });
13920
13920
 
13921
+ // src/contracts/workflow-column.ts
13922
+ import { z as z19 } from "zod";
13923
+ var WorkflowColumnFieldRefSchema = z19.object({
13924
+ ontologyId: ContractIdentifierSchema,
13925
+ fieldKey: ContractIdentifierSchema
13926
+ }).strict();
13927
+ var WorkflowColumnInputSchema = z19.discriminatedUnion("kind", [
13928
+ z19.object({ kind: z19.literal("default") }).strict(),
13929
+ z19.object({ kind: z19.literal("constant"), value: JsonValueSchema }).strict(),
13930
+ z19.object({ kind: z19.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
13931
+ z19.object({
13932
+ kind: z19.literal("context"),
13933
+ field: z19.enum(["assetId", "teamId", "ontologyId", "columnId"])
13934
+ }).strict()
13935
+ ]);
13936
+ var WorkflowColumnDependencySchema = z19.discriminatedUnion("kind", [
13937
+ z19.object({ kind: z19.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
13938
+ z19.object({
13939
+ kind: z19.literal("relation"),
13940
+ relation: WorkflowColumnFieldRefSchema,
13941
+ direction: z19.enum(["incoming", "outgoing"]),
13942
+ fields: z19.array(WorkflowColumnFieldRefSchema).max(100)
13943
+ }).strict()
13944
+ ]);
13945
+ var WorkflowColumnOutputPathSchema = z19.array(z19.string().min(1).max(256)).max(20);
13946
+ var WorkflowColumnOutputSchema = z19.object({
13947
+ type: z19.enum(["number", "text", "json"]),
13948
+ path: WorkflowColumnOutputPathSchema,
13949
+ nullable: z19.boolean().default(false)
13950
+ }).strict();
13951
+ var WorkflowColumnBindingSchema = z19.object({
13952
+ contract: z19.literal("WorkflowColumnBinding"),
13953
+ version: z19.literal(1),
13954
+ enabled: z19.boolean(),
13955
+ paused: z19.boolean().default(false),
13956
+ workflow: z19.object({
13957
+ id: ContractIdentifierSchema,
13958
+ version: z19.number().int().positive(),
13959
+ inputSchemaHash: Sha256Schema
13960
+ }).strict(),
13961
+ inputs: z19.record(z19.string().min(1).max(128), WorkflowColumnInputSchema),
13962
+ dependencies: z19.array(WorkflowColumnDependencySchema).max(100).default([]),
13963
+ output: WorkflowColumnOutputSchema,
13964
+ policy: z19.object({
13965
+ debounceMs: z19.number().int().min(0).max(3e4).default(5e3),
13966
+ maxDelayMs: z19.number().int().min(0).max(3e4).default(3e4),
13967
+ concurrency: z19.number().int().min(1).max(32).default(2),
13968
+ // Indexed queries need visible projections of their declared sources before execution.
13969
+ requireSearchProjection: z19.boolean().optional()
13970
+ }).strict().default({ debounceMs: 5e3, maxDelayMs: 3e4, concurrency: 2 }),
13971
+ // The workflow supplies an ISO datetime with offset for one future expiry.
13972
+ // Scheduling infrastructure needs no knowledge of months or business periods.
13973
+ expiry: z19.object({ path: WorkflowColumnOutputPathSchema }).strict().optional()
13974
+ }).strict();
13975
+
13921
13976
  // src/schemas/index.ts
13922
13977
  var canonicalContractSchemas = {
13978
+ "workflow-column-binding": WorkflowColumnBindingSchema,
13923
13979
  "agent-session-command": AgentSessionCommandSchema,
13924
13980
  "agent-session-targeted-command": AgentSessionTargetedCommandSchema,
13925
13981
  "agent-session-command-result": AgentSessionCommandResultSchema,
@@ -14275,6 +14331,11 @@ export {
14275
14331
  WorkbenchRuntimeBundleSchema,
14276
14332
  WorkbenchSchema,
14277
14333
  WorkflowCatalogEntrySchema,
14334
+ WorkflowColumnBindingSchema,
14335
+ WorkflowColumnDependencySchema,
14336
+ WorkflowColumnFieldRefSchema,
14337
+ WorkflowColumnInputSchema,
14338
+ WorkflowColumnOutputSchema,
14278
14339
  WorkflowCompletionCommitSchema,
14279
14340
  WorkflowCompletionReceiptSchema,
14280
14341
  WorkflowDefinitionSchema,