@abyss-project/reflex 5.9.0 → 5.10.0
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/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/log-drop-cause.enum.d.ts +4 -0
- package/dist/types/enum/log-drop-cause.enum.js +9 -0
- package/dist/types/enum/log-drop-cause.enum.js.map +1 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +2 -1
- package/dist/types/interface/models/reflex-run.model.js.map +1 -1
- package/package.json +1 -1
- package/src/types/enum/index.ts +1 -0
- package/src/types/enum/log-drop-cause.enum.ts +8 -0
- package/src/types/interface/api/responses/function-settings.response.ts +2 -0
- package/src/types/interface/models/reflex-run.model.ts +6 -3
|
@@ -42,6 +42,7 @@ export * from './discord-channel-type.enum';
|
|
|
42
42
|
export * from './discord-locale.enum';
|
|
43
43
|
export * from './discord-host-action.enum';
|
|
44
44
|
export * from './log-cap-mode.enum';
|
|
45
|
+
export * from './log-drop-cause.enum';
|
|
45
46
|
export * from './reflex-alert-scope.enum';
|
|
46
47
|
export * from './reflex-alert-metric.enum';
|
|
47
48
|
export * from './reflex-alert-notification-state.enum';
|
package/dist/types/enum/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./discord-channel-type.enum"), exports);
|
|
|
58
58
|
__exportStar(require("./discord-locale.enum"), exports);
|
|
59
59
|
__exportStar(require("./discord-host-action.enum"), exports);
|
|
60
60
|
__exportStar(require("./log-cap-mode.enum"), exports);
|
|
61
|
+
__exportStar(require("./log-drop-cause.enum"), exports);
|
|
61
62
|
__exportStar(require("./reflex-alert-scope.enum"), exports);
|
|
62
63
|
__exportStar(require("./reflex-alert-metric.enum"), exports);
|
|
63
64
|
__exportStar(require("./reflex-alert-notification-state.enum"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,yDAAuC;AACvC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,0DAAwC;AACxC,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,sDAAoC;AACpC,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6DAA2C;AAC3C,6DAA2C;AAC3C,kDAAgC;AAChC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,qDAAmC;AACnC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,yDAAuC;AACvC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,4DAA0C;AAC1C,0DAAwC;AACxC,+DAA6C;AAC7C,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,+DAA6C;AAC7C,sEAAoD;AACpD,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,wDAAsC;AACtC,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogDropCause = void 0;
|
|
4
|
+
var LogDropCause;
|
|
5
|
+
(function (LogDropCause) {
|
|
6
|
+
LogDropCause["CAP"] = "CAP";
|
|
7
|
+
LogDropCause["TECHNICAL"] = "TECHNICAL";
|
|
8
|
+
})(LogDropCause || (exports.LogDropCause = LogDropCause = {}));
|
|
9
|
+
//# sourceMappingURL=log-drop-cause.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-drop-cause.enum.js","sourceRoot":"","sources":["../../../src/types/enum/log-drop-cause.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,uCAAuB,CAAA;AACzB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -6,6 +6,7 @@ export interface IGetFunctionSettingsData {
|
|
|
6
6
|
effective: IReflexEffectiveExecutionSettings[];
|
|
7
7
|
builtIn: IReflexExecutionSettingsValues;
|
|
8
8
|
priceList: IReflexPriceList;
|
|
9
|
+
logCap: IReflexFunctionLogCap;
|
|
9
10
|
}
|
|
10
11
|
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
11
12
|
export interface ISetFunctionDefaultSettingsData {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExecutionMode, ExecutionProfile, RunLogLevel, RunMode, RunStatus, RunStepStatus, ScheduledRunOrigin, TraceEffectType } from '../../enum';
|
|
1
|
+
import type { ExecutionMode, ExecutionProfile, LogDropCause, RunLogLevel, RunMode, RunStatus, RunStepStatus, ScheduledRunOrigin, TraceEffectType } from '../../enum';
|
|
2
2
|
export interface IReflexTraceError {
|
|
3
3
|
code: string;
|
|
4
4
|
message: string;
|
|
@@ -127,6 +127,7 @@ export interface IReflexRunDetail extends IReflexRun {
|
|
|
127
127
|
steps: IReflexRunStep[];
|
|
128
128
|
logs: IReflexRunLog[];
|
|
129
129
|
droppedLogLines: number;
|
|
130
|
+
droppedLogCause: LogDropCause | null;
|
|
130
131
|
}
|
|
131
132
|
export interface IReflexExecutionState {
|
|
132
133
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"reflex-run.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-run.model.ts"],"names":[],"mappings":";;;AAkDa,QAAA,wBAAwB,GAAG;IAEtC,UAAU,EAAE,MAAM;IAElB,UAAU,EAAE,KAAK;IAEjB,gBAAgB,EAAE,KAAK;IAEvB,gBAAgB,EAAE,MAAM;IAExB,aAAa,EAAE,MAAM;IAErB,UAAU,EAAE,KAAK;CACT,CAAC"}
|
package/package.json
CHANGED
package/src/types/enum/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './discord-channel-type.enum';
|
|
|
42
42
|
export * from './discord-locale.enum';
|
|
43
43
|
export * from './discord-host-action.enum';
|
|
44
44
|
export * from './log-cap-mode.enum';
|
|
45
|
+
export * from './log-drop-cause.enum';
|
|
45
46
|
export * from './reflex-alert-scope.enum';
|
|
46
47
|
export * from './reflex-alert-metric.enum';
|
|
47
48
|
export * from './reflex-alert-notification-state.enum';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a run kept fewer log lines than it wrote: the cap in force for the run (the function's own, or its
|
|
3
|
+
* application's), or the technical bound every run has (10 000 lines, 4 MiB).
|
|
4
|
+
*/
|
|
5
|
+
export enum LogDropCause {
|
|
6
|
+
CAP = 'CAP',
|
|
7
|
+
TECHNICAL = 'TECHNICAL',
|
|
8
|
+
}
|
|
@@ -18,6 +18,8 @@ export interface IGetFunctionSettingsData {
|
|
|
18
18
|
builtIn: IReflexExecutionSettingsValues;
|
|
19
19
|
/** The price list an execution is billed with, to estimate the cost of a setting. */
|
|
20
20
|
priceList: IReflexPriceList;
|
|
21
|
+
/** How the function caps the log lines it keeps per run. */
|
|
22
|
+
logCap: IReflexFunctionLogCap;
|
|
21
23
|
}
|
|
22
24
|
export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
|
|
23
25
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
ExecutionMode,
|
|
3
3
|
ExecutionProfile,
|
|
4
|
+
LogDropCause,
|
|
4
5
|
RunLogLevel,
|
|
5
6
|
RunMode,
|
|
6
7
|
RunStatus,
|
|
@@ -205,8 +206,8 @@ export interface IReflexRunStep {
|
|
|
205
206
|
|
|
206
207
|
/**
|
|
207
208
|
* One log line a run wrote: a LOG step, `abyss.log.*` or `console.*`. Secrets masked (`***`); a message
|
|
208
|
-
* is cut at 2048 characters, and data whose JSON is longer becomes `{ truncated: true, preview }`.
|
|
209
|
-
*
|
|
209
|
+
* is cut at 2048 characters, and data whose JSON is longer becomes `{ truncated: true, preview }`. The lines
|
|
210
|
+
* past the cap in force or the technical bound are not kept; `IReflexRunDetail.droppedLogLines` counts them.
|
|
210
211
|
*/
|
|
211
212
|
export interface IReflexRunLog {
|
|
212
213
|
/** 0 for the first line. */
|
|
@@ -227,8 +228,10 @@ export interface IReflexRunLog {
|
|
|
227
228
|
export interface IReflexRunDetail extends IReflexRun {
|
|
228
229
|
steps: IReflexRunStep[];
|
|
229
230
|
logs: IReflexRunLog[];
|
|
230
|
-
/** The log lines written
|
|
231
|
+
/** The log lines written and not kept in `logs`; 0 when none was dropped. */
|
|
231
232
|
droppedLogLines: number;
|
|
233
|
+
/** Why lines were dropped; null when none was. */
|
|
234
|
+
droppedLogCause: LogDropCause | null;
|
|
232
235
|
}
|
|
233
236
|
|
|
234
237
|
/** The state of a live execution, read by its id (the `executionId` an async route answers with). */
|