@inf-monkeys-tech/monkeys 1.0.69 → 1.0.70
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/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/workflow-column.d.ts +130 -0
- package/lib/contracts/workflow-column.d.ts.map +1 -0
- package/lib/contracts/workflow-column.js +72 -0
- package/lib/contracts/workflow-column.js.map +1 -0
- package/lib/esm/contracts/index.mjs +81 -22
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +127 -22
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +110 -12
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +59 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/index.json +1 -0
- package/lib/json-schema/workflow-column-binding.schema.json +386 -0
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/workflow-column.d.ts +8 -0
- package/lib/runtime/workflow-column.d.ts.map +1 -0
- package/lib/runtime/workflow-column.js +57 -0
- package/lib/runtime/workflow-column.js.map +1 -0
- package/lib/schemas/index.d.ts +70 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +9 -1
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -13918,8 +13918,62 @@ 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
|
+
}).strict().default({ debounceMs: 5e3, maxDelayMs: 3e4, concurrency: 2 }),
|
|
13969
|
+
// The workflow supplies an ISO datetime with offset for one future expiry.
|
|
13970
|
+
// Scheduling infrastructure needs no knowledge of months or business periods.
|
|
13971
|
+
expiry: z19.object({ path: WorkflowColumnOutputPathSchema }).strict().optional()
|
|
13972
|
+
}).strict();
|
|
13973
|
+
|
|
13921
13974
|
// src/schemas/index.ts
|
|
13922
13975
|
var canonicalContractSchemas = {
|
|
13976
|
+
"workflow-column-binding": WorkflowColumnBindingSchema,
|
|
13923
13977
|
"agent-session-command": AgentSessionCommandSchema,
|
|
13924
13978
|
"agent-session-targeted-command": AgentSessionTargetedCommandSchema,
|
|
13925
13979
|
"agent-session-command-result": AgentSessionCommandResultSchema,
|
|
@@ -14275,6 +14329,11 @@ export {
|
|
|
14275
14329
|
WorkbenchRuntimeBundleSchema,
|
|
14276
14330
|
WorkbenchSchema,
|
|
14277
14331
|
WorkflowCatalogEntrySchema,
|
|
14332
|
+
WorkflowColumnBindingSchema,
|
|
14333
|
+
WorkflowColumnDependencySchema,
|
|
14334
|
+
WorkflowColumnFieldRefSchema,
|
|
14335
|
+
WorkflowColumnInputSchema,
|
|
14336
|
+
WorkflowColumnOutputSchema,
|
|
14278
14337
|
WorkflowCompletionCommitSchema,
|
|
14279
14338
|
WorkflowCompletionReceiptSchema,
|
|
14280
14339
|
WorkflowDefinitionSchema,
|