@engyalo/workflow-types 1.16.2 → 1.17.0-main-d79cf9f
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/models/components.d.ts +27 -0
- package/lib/models/components.js.map +1 -1
- package/package.json +105 -105
|
@@ -237,6 +237,32 @@ interface ICustomAgentV2OrchestratorConfig {
|
|
|
237
237
|
customInstruction?: string;
|
|
238
238
|
maxLoopCount?: number;
|
|
239
239
|
}
|
|
240
|
+
interface ICustomAgentV2CommandDelay {
|
|
241
|
+
minutes: number;
|
|
242
|
+
}
|
|
243
|
+
type ICustomAgentV2Weekday = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
244
|
+
interface ICustomAgentV2WindowSlot {
|
|
245
|
+
days: ICustomAgentV2Weekday[];
|
|
246
|
+
start: string;
|
|
247
|
+
end: string;
|
|
248
|
+
}
|
|
249
|
+
interface ICustomAgentV2CommandWindow {
|
|
250
|
+
timezone: string;
|
|
251
|
+
schedule: ICustomAgentV2WindowSlot[];
|
|
252
|
+
}
|
|
253
|
+
interface ICustomAgentV2UserInactivityTrigger {
|
|
254
|
+
type: 'userInactivity';
|
|
255
|
+
delay: ICustomAgentV2CommandDelay;
|
|
256
|
+
window?: ICustomAgentV2CommandWindow;
|
|
257
|
+
}
|
|
258
|
+
type ICustomAgentV2CommandTrigger = ICustomAgentV2UserInactivityTrigger;
|
|
259
|
+
interface ICustomAgentV2AgenticCommand {
|
|
260
|
+
type: 'agentic';
|
|
261
|
+
name: string;
|
|
262
|
+
customInstructions: string;
|
|
263
|
+
trigger: ICustomAgentV2CommandTrigger;
|
|
264
|
+
}
|
|
265
|
+
type ICustomAgentV2Command = ICustomAgentV2AgenticCommand;
|
|
240
266
|
export interface CustomAgentV2 {
|
|
241
267
|
name: string;
|
|
242
268
|
objective?: string;
|
|
@@ -250,6 +276,7 @@ export interface CustomAgentV2 {
|
|
|
250
276
|
orchestrator?: ICustomAgentV2OrchestratorConfig;
|
|
251
277
|
luaHooks?: ICustomAgentV2LuaHooks;
|
|
252
278
|
brandGuidelines?: string;
|
|
279
|
+
commands?: ICustomAgentV2Command[];
|
|
253
280
|
}
|
|
254
281
|
interface IOrisTextCustomer {
|
|
255
282
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAMA,oDAAoD;AACp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
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
2
|
+
"name": "@engyalo/workflow-types",
|
|
3
|
+
"version": "1.17.0-main-d79cf9f",
|
|
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
|
+
}
|