@engyalo/workflow-types 1.15.2 → 1.16.0-release-1-16-0-e7f59b8

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.
@@ -2,6 +2,7 @@ import { IAction, IReaction, ITrigger } from './step';
2
2
  import { TriggerTypes } from './triggers';
3
3
  import { IGeneralStatus } from './status';
4
4
  import { IAgentMcp } from './agent-mcp';
5
+ import { ThinkingEffort } from './model-thinking';
5
6
  export declare enum IComponentType {
6
7
  activity = "activity",
7
8
  agent = "agent",
@@ -166,6 +167,7 @@ interface ICustomAgentV2ModelConfig {
166
167
  name?: string;
167
168
  temperature?: number;
168
169
  historyMaxMessages?: number;
170
+ thinkingEffort?: ThinkingEffort;
169
171
  }
170
172
  interface ICustomAgentV2McpServerConfig {
171
173
  url: string;
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAKA,oDAAoD;AACpD,IAAY,cAwBX;AAxBD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IACzC,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;IAC/B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACtB,CAAC,EAxBW,cAAc,8BAAd,cAAc,QAwBzB;AAEY,QAAA,iBAAiB,GAAG;IAChC,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,QAAQ;IACR,WAAW;IACX,cAAc;IACd,WAAW;IACX,MAAM;IACN,gBAAgB;IAChB,OAAO;IACP,oBAAoB;IACpB,UAAU;IACV,cAAc;IACd,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,SAAS;IACT,UAAU;CACV,CAAC;AA26BF,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,+CAAU,CAAA;IACV,+CAAU,CAAA;IACV,iDAAW,CAAA;IACX,qDAAa,CAAA;IACb,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,mDAAY,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,6CAA6B,CAAA;IAC7B,2CAA2B,CAAA;AAC5B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAMA,oDAAoD;AACpD,IAAY,cAwBX;AAxBD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IACzC,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,iDAA+B,CAAA;IAC/B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACtB,CAAC,EAxBW,cAAc,8BAAd,cAAc,QAwBzB;AAEY,QAAA,iBAAiB,GAAG;IAChC,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,QAAQ;IACR,WAAW;IACX,cAAc;IACd,WAAW;IACX,MAAM;IACN,gBAAgB;IAChB,OAAO;IACP,oBAAoB;IACpB,UAAU;IACV,cAAc;IACd,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,SAAS;IACT,UAAU;CACV,CAAC;AA86BF,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,+CAAU,CAAA;IACV,+CAAU,CAAA;IACV,iDAAW,CAAA;IACX,qDAAa,CAAA;IACb,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,mDAAY,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,6CAA6B,CAAA;IAC7B,2CAA2B,CAAA;AAC5B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
@@ -26,4 +26,5 @@ export { IAgentLuaTool, IAgentToolUI, IAgentToolType, isValidAgentToolType } fro
26
26
  export { IAgentMcp, IAgentMcpTool, IAgentMcpToolListResult } from './agent-mcp';
27
27
  export { IAgentKnowledge, AgentKnowledgeFileType, AgentKnowledgeStorageType } from './agent-knowledge';
28
28
  export { IAgentGuardrail } from './agent-guardrail';
29
+ export { ThinkingEffort, ThinkingEffortType, ModelProvider, DEFAULT_MODEL_PROVIDER, THINKING_NOT_SUPPORTED, IThinkingCapability, ModelThinkingCapability, SUPPORTED_MODELS_BY_PROVIDER, getModelThinkingCapability, isThinkingEffortSupported, getDefaultThinkingEffort, } from './model-thinking';
29
30
  export { IUseCase, IJobDone } from './use-cases';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentKnowledgeStorageType = exports.AgentKnowledgeFileType = exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.EventLogSource = exports.LogActions = exports.Roles = void 0;
3
+ exports.getDefaultThinkingEffort = exports.isThinkingEffortSupported = exports.getModelThinkingCapability = exports.SUPPORTED_MODELS_BY_PROVIDER = exports.THINKING_NOT_SUPPORTED = exports.DEFAULT_MODEL_PROVIDER = exports.ModelProvider = exports.ThinkingEffortType = exports.AgentKnowledgeStorageType = exports.AgentKnowledgeFileType = exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.EventLogSource = exports.LogActions = exports.Roles = void 0;
4
4
  var client_1 = require("./client");
5
5
  Object.defineProperty(exports, "Roles", { enumerable: true, get: function () { return client_1.Roles; } });
6
6
  Object.defineProperty(exports, "LogActions", { enumerable: true, get: function () { return client_1.LogActions; } });
@@ -43,4 +43,13 @@ Object.defineProperty(exports, "isValidAgentToolType", { enumerable: true, get:
43
43
  var agent_knowledge_1 = require("./agent-knowledge");
44
44
  Object.defineProperty(exports, "AgentKnowledgeFileType", { enumerable: true, get: function () { return agent_knowledge_1.AgentKnowledgeFileType; } });
45
45
  Object.defineProperty(exports, "AgentKnowledgeStorageType", { enumerable: true, get: function () { return agent_knowledge_1.AgentKnowledgeStorageType; } });
46
+ var model_thinking_1 = require("./model-thinking");
47
+ Object.defineProperty(exports, "ThinkingEffortType", { enumerable: true, get: function () { return model_thinking_1.ThinkingEffortType; } });
48
+ Object.defineProperty(exports, "ModelProvider", { enumerable: true, get: function () { return model_thinking_1.ModelProvider; } });
49
+ Object.defineProperty(exports, "DEFAULT_MODEL_PROVIDER", { enumerable: true, get: function () { return model_thinking_1.DEFAULT_MODEL_PROVIDER; } });
50
+ Object.defineProperty(exports, "THINKING_NOT_SUPPORTED", { enumerable: true, get: function () { return model_thinking_1.THINKING_NOT_SUPPORTED; } });
51
+ Object.defineProperty(exports, "SUPPORTED_MODELS_BY_PROVIDER", { enumerable: true, get: function () { return model_thinking_1.SUPPORTED_MODELS_BY_PROVIDER; } });
52
+ Object.defineProperty(exports, "getModelThinkingCapability", { enumerable: true, get: function () { return model_thinking_1.getModelThinkingCapability; } });
53
+ Object.defineProperty(exports, "isThinkingEffortSupported", { enumerable: true, get: function () { return model_thinking_1.isThinkingEffortSupported; } });
54
+ Object.defineProperty(exports, "getDefaultThinkingEffort", { enumerable: true, get: function () { return model_thinking_1.getDefaultThinkingEffort; } });
46
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmH;AAAjG,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AAAc,wGAAA,cAAc,OAAA;AAChG,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,2CAyBsB;AAdrB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AAoBf,uCAeoB;AAXnB,2G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,OAAA;AAClB,gHAAA,oBAAoB,OAAA;AACpB,gHAAA,oBAAoB,OAAA;AACpB,mHAAA,uBAAuB,OAAA;AACvB,+GAAA,mBAAmB,OAAA;AACnB,gHAAA,oBAAoB,OAAA;AAGrB,mCAA+E;AAA/C,sGAAA,YAAY,OAAA;AAC5C,2DAAgK;AAAvJ,2HAAA,qBAAqB,OAAA;AAE9B,mDAAsE;AAA9C,qHAAA,mBAAmB,OAAA;AAE3C,mDAA0I;AAAjI,mHAAA,iBAAiB,OAAA;AAAsB,kHAAA,gBAAgB,OAAA;AAAqB,qHAAA,mBAAmB,OAAA;AAGxG,qDAAmK;AAAlF,mHAAA,gBAAgB,OAAA;AAAoB,qHAAA,kBAAkB,OAAA;AAEvI,6CAAkG;AAA5D,6GAAA,cAAc,OAAA;AAAE,mHAAA,oBAAoB,OAAA;AAE1E,qDAAuG;AAA7E,yHAAA,sBAAsB,OAAA;AAAE,4HAAA,yBAAyB,OAAA;AAE3E,mDAY0B;AAVzB,oHAAA,kBAAkB,OAAA;AAClB,+GAAA,aAAa,OAAA;AACb,wHAAA,sBAAsB,OAAA;AACtB,wHAAA,sBAAsB,OAAA;AAGtB,8HAAA,4BAA4B,OAAA;AAC5B,4HAAA,0BAA0B,OAAA;AAC1B,2HAAA,yBAAyB,OAAA;AACzB,0HAAA,wBAAwB,OAAA"}
@@ -0,0 +1,38 @@
1
+ export declare const ThinkingEffortType: {
2
+ readonly budgetTokens: "budgetTokens";
3
+ readonly level: "level";
4
+ readonly disabled: "disabled";
5
+ };
6
+ export type ThinkingEffortType = (typeof ThinkingEffortType)[keyof typeof ThinkingEffortType];
7
+ export declare const ModelProvider: {
8
+ readonly openai: "openai";
9
+ readonly google: "google";
10
+ readonly anthropic: "anthropic";
11
+ };
12
+ export type ModelProvider = (typeof ModelProvider)[keyof typeof ModelProvider];
13
+ export declare const DEFAULT_MODEL_PROVIDER: ModelProvider;
14
+ export type ThinkingEffort = {
15
+ type: typeof ThinkingEffortType.budgetTokens;
16
+ value: number;
17
+ } | {
18
+ type: typeof ThinkingEffortType.level;
19
+ value: string;
20
+ } | {
21
+ type: typeof ThinkingEffortType.disabled;
22
+ };
23
+ export declare const THINKING_NOT_SUPPORTED: "none";
24
+ export interface IThinkingCapability {
25
+ levels?: readonly string[];
26
+ budgetTokens?: {
27
+ min: number;
28
+ max?: number;
29
+ };
30
+ disabled?: boolean;
31
+ default: ThinkingEffort;
32
+ }
33
+ export type ModelThinkingCapability = IThinkingCapability | typeof THINKING_NOT_SUPPORTED;
34
+ export declare const SUPPORTED_MODELS_BY_PROVIDER: Readonly<Record<ModelProvider, Readonly<Record<string, ModelThinkingCapability>>>>;
35
+ export declare const getModelThinkingCapability: (modelName: string) => ModelThinkingCapability | undefined;
36
+ export declare const isThinkingEffortSupported: (capability: ModelThinkingCapability, effort: ThinkingEffort) => boolean;
37
+ export declare const resolveDefaultThinkingEffort: (capability: ModelThinkingCapability) => ThinkingEffort | typeof THINKING_NOT_SUPPORTED;
38
+ export declare const getDefaultThinkingEffort: (modelName: string) => ThinkingEffort | typeof THINKING_NOT_SUPPORTED | undefined;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDefaultThinkingEffort = exports.resolveDefaultThinkingEffort = exports.isThinkingEffortSupported = exports.getModelThinkingCapability = exports.SUPPORTED_MODELS_BY_PROVIDER = exports.THINKING_NOT_SUPPORTED = exports.DEFAULT_MODEL_PROVIDER = exports.ModelProvider = exports.ThinkingEffortType = void 0;
4
+ // Const objects plus derived literal types, so consumers can write either
5
+ // `ThinkingEffortType.level` or the literal `'level'` when parsing JSON.
6
+ exports.ThinkingEffortType = {
7
+ budgetTokens: 'budgetTokens',
8
+ level: 'level',
9
+ disabled: 'disabled',
10
+ };
11
+ exports.ModelProvider = {
12
+ openai: 'openai',
13
+ google: 'google',
14
+ anthropic: 'anthropic',
15
+ };
16
+ // Bare model ids (no "<provider>:" prefix) resolve to this provider, matching custom-agent.
17
+ exports.DEFAULT_MODEL_PROVIDER = exports.ModelProvider.openai;
18
+ // Capability marker for models without thinking support: never send thinkingEffort.
19
+ // Not to be confused with OpenAI's `'none'` level value.
20
+ exports.THINKING_NOT_SUPPORTED = 'none';
21
+ const OPENAI_GPT_5_4_CAPABILITY = {
22
+ levels: ['none', 'minimal', 'low', 'medium', 'high', 'xhigh'],
23
+ disabled: true,
24
+ default: { type: exports.ThinkingEffortType.level, value: 'medium' },
25
+ };
26
+ // A budget of 0 turns thinking off natively; 8192 is the AI Gateway's 'medium' for Gemini 2.5.
27
+ const GOOGLE_GEMINI_2_5_BUDGET_CAPABILITY = {
28
+ budgetTokens: { min: 0, max: 24576 },
29
+ disabled: true,
30
+ default: { type: exports.ThinkingEffortType.budgetTokens, value: 8192 },
31
+ };
32
+ const ANTHROPIC_BUDGET_CAPABILITY = {
33
+ budgetTokens: { min: 1024 },
34
+ disabled: true,
35
+ default: { type: exports.ThinkingEffortType.budgetTokens, value: 8192 },
36
+ };
37
+ // Source of truth that manager, interpreter, custom-agent, builder-cli and the frontend sync from.
38
+ // Grow it only after confirming a model works end-to-end. Aliases ("default", "classification")
39
+ // and "gateway:" models are valid model names but intentionally out of scope here.
40
+ exports.SUPPORTED_MODELS_BY_PROVIDER = {
41
+ [exports.ModelProvider.openai]: {
42
+ 'gpt-5.4': OPENAI_GPT_5_4_CAPABILITY,
43
+ 'gpt-5.4-mini': OPENAI_GPT_5_4_CAPABILITY,
44
+ 'gpt-5.4-nano': OPENAI_GPT_5_4_CAPABILITY,
45
+ },
46
+ [exports.ModelProvider.google]: {
47
+ 'gemini-2.5-flash': GOOGLE_GEMINI_2_5_BUDGET_CAPABILITY,
48
+ },
49
+ [exports.ModelProvider.anthropic]: {
50
+ 'claude-sonnet-4-5': ANTHROPIC_BUDGET_CAPABILITY,
51
+ 'claude-haiku-4-5': ANTHROPIC_BUDGET_CAPABILITY,
52
+ },
53
+ };
54
+ const MODEL_PROVIDER_SEPARATOR = ':';
55
+ const hasOwn = (record, key) => Object.prototype.hasOwnProperty.call(record, key);
56
+ // Returns undefined for unknown models, aliases and gateway models: unknown is not the same as unsupported.
57
+ const getModelThinkingCapability = (modelName) => {
58
+ const separatorIndex = modelName.indexOf(MODEL_PROVIDER_SEPARATOR);
59
+ const provider = separatorIndex === -1 ? exports.DEFAULT_MODEL_PROVIDER : modelName.slice(0, separatorIndex);
60
+ const modelId = modelName.slice(separatorIndex + 1);
61
+ if (!hasOwn(exports.SUPPORTED_MODELS_BY_PROVIDER, provider))
62
+ return undefined;
63
+ const models = exports.SUPPORTED_MODELS_BY_PROVIDER[provider];
64
+ return hasOwn(models, modelId) ? models[modelId] : undefined;
65
+ };
66
+ exports.getModelThinkingCapability = getModelThinkingCapability;
67
+ const THINKING_EFFORT_VALIDATORS = {
68
+ [exports.ThinkingEffortType.level]: (capability, effort) => capability.levels?.includes(effort.value) ?? false,
69
+ [exports.ThinkingEffortType.budgetTokens]: ({ budgetTokens }, { value }) => budgetTokens !== undefined && Number.isInteger(value) && value >= budgetTokens.min && (budgetTokens.max === undefined || value <= budgetTokens.max),
70
+ [exports.ThinkingEffortType.disabled]: (capability) => capability.disabled === true,
71
+ };
72
+ const isThinkingEffortSupported = (capability, effort) => {
73
+ if (capability === exports.THINKING_NOT_SUPPORTED)
74
+ return false;
75
+ // TS cannot correlate the indexed validator with the narrowed effort variant.
76
+ const validate = THINKING_EFFORT_VALIDATORS[effort.type];
77
+ return validate !== undefined && validate(capability, effort);
78
+ };
79
+ exports.isThinkingEffortSupported = isThinkingEffortSupported;
80
+ const resolveDefaultThinkingEffort = (capability) => (capability === exports.THINKING_NOT_SUPPORTED ? exports.THINKING_NOT_SUPPORTED : capability.default);
81
+ exports.resolveDefaultThinkingEffort = resolveDefaultThinkingEffort;
82
+ // Returns undefined for unknown models, aliases and gateway models, like getModelThinkingCapability.
83
+ const getDefaultThinkingEffort = (modelName) => {
84
+ const capability = (0, exports.getModelThinkingCapability)(modelName);
85
+ return capability === undefined ? undefined : (0, exports.resolveDefaultThinkingEffort)(capability);
86
+ };
87
+ exports.getDefaultThinkingEffort = getDefaultThinkingEffort;
88
+ //# sourceMappingURL=model-thinking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-thinking.js","sourceRoot":"","sources":["../../src/models/model-thinking.ts"],"names":[],"mappings":";;;AAAA,0EAA0E;AAC1E,yEAAyE;AAC5D,QAAA,kBAAkB,GAAG;IACjC,YAAY,EAAE,cAAc;IAC5B,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACX,CAAC;AAGE,QAAA,aAAa,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACb,CAAC;AAGX,4FAA4F;AAC/E,QAAA,sBAAsB,GAAkB,qBAAa,CAAC,MAAM,CAAC;AAQ1E,oFAAoF;AACpF,yDAAyD;AAC5C,QAAA,sBAAsB,GAAG,MAAe,CAAC;AAYtD,MAAM,yBAAyB,GAAwB;IACtD,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;IAC7D,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,0BAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;CAC5D,CAAC;AAEF,+FAA+F;AAC/F,MAAM,mCAAmC,GAAwB;IAChE,YAAY,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,0BAAkB,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE;CAC/D,CAAC;AAEF,MAAM,2BAA2B,GAAwB;IACxD,YAAY,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;IAC3B,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,0BAAk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,wBAAwB,GAAG,CAAC,SAAiB,EAA8D,EAAE;IACzH,MAAM,UAAU,GAAG,IAAA,kCAA0B,EAAC,SAAS,CAAC,CAAC;IACzD,OAAO,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,oCAA4B,EAAC,UAAU,CAAC,CAAC;AACxF,CAAC,CAAC;AAHW,QAAA,wBAAwB,4BAGnC"}
package/package.json CHANGED
@@ -1,106 +1,106 @@
1
1
  {
2
- "name": "@engyalo/workflow-types",
3
- "version": "1.15.2",
4
- "description": "",
5
- "main": "./lib/index.js",
6
- "types": "./lib/index.d.ts",
7
- "scripts": {
8
- "lint": "eslint . --ext ts --fix",
9
- "tsc": "tsc --build",
10
- "clearjs": "npx rimraf ./lib",
11
- "pretest": "typescript-json-schema src/models/workflows.ts \"*\" --strictNullChecks --noExtraProps --required --id workflowsSchema -o tests/schemas/workflows.schema.json",
12
- "test": "jest",
13
- "prebuild": "npm run clearjs",
14
- "build": "npm run tsc"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git@github.com:yalochat/workflows-types.git"
19
- },
20
- "directories": {
21
- "lib": "lib"
22
- },
23
- "files": [
24
- "lib"
25
- ],
26
- "keywords": [
27
- "workflow",
28
- "types"
29
- ],
30
- "author": "Engineering @ Yalo",
31
- "license": "MIT",
32
- "eslintConfig": {
33
- "extends": [
34
- "plugin:@typescript-eslint/recommended",
35
- "plugin:prettier/recommended"
36
- ],
37
- "parser": "@typescript-eslint/parser",
38
- "rules": {
39
- "quotes": [
40
- 2,
41
- "single",
42
- "avoid-escape"
43
- ],
44
- "no-debugger": "error",
45
- "no-process-env": "off",
46
- "import/prefer-default-export": "off",
47
- "@typescript-eslint/explicit-function-return-type": "off",
48
- "@typescript-eslint/no-unused-vars": [
49
- "error",
50
- {
51
- "vars": "all",
52
- "args": "after-used",
53
- "ignoreRestSiblings": true
54
- }
55
- ],
56
- "new-cap": [
57
- "error",
58
- {
59
- "capIsNewExceptions": [
60
- "Injectable",
61
- "Inject"
62
- ]
63
- }
64
- ],
65
- "prefer-destructuring": [
66
- "error",
67
- {
68
- "VariableDeclarator": {
69
- "array": false,
70
- "object": true
71
- },
72
- "AssignmentExpression": {
73
- "array": true,
74
- "object": false
75
- }
76
- },
77
- {
78
- "enforceForRenamedProperties": false
79
- }
80
- ]
81
- }
82
- },
83
- "devDependencies": {
84
- "@types/jest": "29.5.14",
85
- "@types/jest-json-schema": "6.1.5",
86
- "@types/node": "16.18.126",
87
- "@typescript-eslint/eslint-plugin": "6.10.0",
88
- "@typescript-eslint/parser": "6.10.0",
89
- "eslint": "8.57.1",
90
- "eslint-config-prettier": "10.1.8",
91
- "eslint-plugin-import": "2.32.0",
92
- "eslint-plugin-prettier": "5.5.5",
93
- "jest": "29.7.0",
94
- "jest-json-schema": "6.1.0",
95
- "prettier": "3.8.3",
96
- "ts-jest": "29.4.11",
97
- "typescript": "5.2.2",
98
- "typescript-json-schema": "0.62.0"
99
- },
100
- "dependencies": {
101
- "zod": "3.22.4"
102
- },
103
- "overrides": {
104
- "cross-spawn": "7.0.6"
105
- }
106
- }
2
+ "name": "@engyalo/workflow-types",
3
+ "version": "1.16.0-release-1-16-0-e7f59b8",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "types": "./lib/index.d.ts",
7
+ "scripts": {
8
+ "lint": "eslint . --ext ts --fix",
9
+ "tsc": "tsc --build",
10
+ "clearjs": "npx rimraf ./lib",
11
+ "pretest": "typescript-json-schema src/models/workflows.ts \"*\" --strictNullChecks --noExtraProps --required --id workflowsSchema -o tests/schemas/workflows.schema.json",
12
+ "test": "jest",
13
+ "prebuild": "npm run clearjs",
14
+ "build": "npm run tsc"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git@github.com:yalochat/workflows-types.git"
19
+ },
20
+ "directories": {
21
+ "lib": "lib"
22
+ },
23
+ "files": [
24
+ "lib"
25
+ ],
26
+ "keywords": [
27
+ "workflow",
28
+ "types"
29
+ ],
30
+ "author": "Engineering @ Yalo",
31
+ "license": "MIT",
32
+ "eslintConfig": {
33
+ "extends": [
34
+ "plugin:@typescript-eslint/recommended",
35
+ "plugin:prettier/recommended"
36
+ ],
37
+ "parser": "@typescript-eslint/parser",
38
+ "rules": {
39
+ "quotes": [
40
+ 2,
41
+ "single",
42
+ "avoid-escape"
43
+ ],
44
+ "no-debugger": "error",
45
+ "no-process-env": "off",
46
+ "import/prefer-default-export": "off",
47
+ "@typescript-eslint/explicit-function-return-type": "off",
48
+ "@typescript-eslint/no-unused-vars": [
49
+ "error",
50
+ {
51
+ "vars": "all",
52
+ "args": "after-used",
53
+ "ignoreRestSiblings": true
54
+ }
55
+ ],
56
+ "new-cap": [
57
+ "error",
58
+ {
59
+ "capIsNewExceptions": [
60
+ "Injectable",
61
+ "Inject"
62
+ ]
63
+ }
64
+ ],
65
+ "prefer-destructuring": [
66
+ "error",
67
+ {
68
+ "VariableDeclarator": {
69
+ "array": false,
70
+ "object": true
71
+ },
72
+ "AssignmentExpression": {
73
+ "array": true,
74
+ "object": false
75
+ }
76
+ },
77
+ {
78
+ "enforceForRenamedProperties": false
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ "devDependencies": {
84
+ "@types/jest": "29.5.14",
85
+ "@types/jest-json-schema": "6.1.5",
86
+ "@types/node": "16.18.126",
87
+ "@typescript-eslint/eslint-plugin": "6.10.0",
88
+ "@typescript-eslint/parser": "6.10.0",
89
+ "eslint": "8.57.1",
90
+ "eslint-config-prettier": "10.1.8",
91
+ "eslint-plugin-import": "2.32.0",
92
+ "eslint-plugin-prettier": "5.5.5",
93
+ "jest": "29.7.0",
94
+ "jest-json-schema": "6.1.0",
95
+ "prettier": "3.8.3",
96
+ "ts-jest": "29.4.11",
97
+ "typescript": "5.2.2",
98
+ "typescript-json-schema": "0.62.0"
99
+ },
100
+ "dependencies": {
101
+ "zod": "3.22.4"
102
+ },
103
+ "overrides": {
104
+ "cross-spawn": "7.0.6"
105
+ }
106
+ }