@requence/task 0.8.2-edge.1157 → 0.8.2-edge.1159

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.
@@ -1,6 +1,7 @@
1
1
  export * from './clientProperties.ts';
2
2
  export * from './command.ts';
3
3
  export * from './configurationScript.ts';
4
+ export * from './logicExecutionTime.ts';
4
5
  export * from './logicLanguages.ts';
5
6
  export * from './loopDetection.ts';
6
7
  export * from './nodeType.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { TemplateTree } from './templateNodeTypes.ts';
2
+ /**
3
+ * Floor for a logic node's `maxExecutionTime`, in milliseconds. The ceiling is
4
+ * deployment-dependent (`env.MAX_LOGIC_EXECUTION_TIME`), so it is always passed
5
+ * in rather than declared here.
6
+ */
7
+ export declare const MIN_LOGIC_EXECUTION_TIME = 100;
8
+ export interface LogicExecutionTimeError {
9
+ detail: string;
10
+ nodeId: string;
11
+ }
12
+ /**
13
+ * Range check for every logic node's max execution time, shared by the backend
14
+ * save-time check (`validateTemplateTree`) and the frontend's live canvas
15
+ * monitor so the bound and the wording cannot drift apart.
16
+ *
17
+ * `max: null` means the ceiling is not known — the frontend before its meta
18
+ * query resolves — and only the floor is checked then; checking against the
19
+ * placeholder would flag every logic node in the graph.
20
+ */
21
+ export declare function validateLogicExecutionTime(templateTree: TemplateTree, max: number | null): LogicExecutionTimeError[];
22
+ //# sourceMappingURL=logicExecutionTime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logicExecutionTime.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/logicExecutionTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE1D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,MAAM,GAAG,IAAI,GACjB,uBAAuB,EAAE,CAmC3B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@requence/task",
3
3
  "type": "module",
4
- "version": "0.8.2-edge.1157",
4
+ "version": "0.8.2-edge.1159",
5
5
  "bin": {
6
6
  "requence-task": "build/cli.js"
7
7
  },