@overlordai/protocol 1.0.53 → 1.0.54
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/api-types.d.ts +91 -8
- package/dist/api-types.d.ts.map +1 -1
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +21 -0
- package/dist/browser.js.map +1 -0
- package/dist/constants.d.ts +12 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +92 -2
- package/dist/constants.js.map +1 -1
- package/dist/enums.d.ts +126 -78
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +109 -92
- package/dist/enums.js.map +1 -1
- package/dist/types.d.ts +42 -37
- package/dist/types.d.ts.map +1 -1
- package/dist/ws-frames.d.ts +74 -12
- package/dist/ws-frames.d.ts.map +1 -1
- package/package.json +9 -2
package/dist/api-types.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface RefreshResponse {
|
|
|
19
19
|
export interface CreateTaskRequest {
|
|
20
20
|
description: string;
|
|
21
21
|
projectKey: string;
|
|
22
|
-
|
|
22
|
+
workerId?: string;
|
|
23
23
|
developerId?: number;
|
|
24
24
|
}
|
|
25
25
|
export interface CreateTaskResponse {
|
|
@@ -34,8 +34,8 @@ export interface TaskListQuery {
|
|
|
34
34
|
}
|
|
35
35
|
export interface WorkerRegisterRequest {
|
|
36
36
|
token: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
workerName: string;
|
|
38
|
+
workerId?: string;
|
|
39
39
|
host: string;
|
|
40
40
|
port: number;
|
|
41
41
|
os: string;
|
|
@@ -48,23 +48,28 @@ export interface WorkerRegisterRequest {
|
|
|
48
48
|
}
|
|
49
49
|
export interface WorkerRegisterResponse {
|
|
50
50
|
jwt: string;
|
|
51
|
-
|
|
51
|
+
workerId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Present only on first registration. Absent on recovery/reconnection.
|
|
54
|
+
* The worker must persist this secret locally to allow future recovery
|
|
55
|
+
* if the JWT is lost or the worker process restarts.
|
|
56
|
+
*/
|
|
52
57
|
recoverySecret?: string;
|
|
53
58
|
}
|
|
54
59
|
export interface WorkerRefreshRequest {
|
|
55
|
-
|
|
60
|
+
workerId: string;
|
|
56
61
|
}
|
|
57
62
|
export interface WorkerRefreshResponse {
|
|
58
63
|
jwt: string;
|
|
59
64
|
}
|
|
60
65
|
export interface WorkerRecoveryRequest {
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
workerId: string;
|
|
67
|
+
workerName: string;
|
|
63
68
|
recoverySecret: string;
|
|
64
69
|
}
|
|
65
70
|
export interface WorkerRecoveryResponse {
|
|
66
71
|
jwt: string;
|
|
67
|
-
|
|
72
|
+
workerId: string;
|
|
68
73
|
}
|
|
69
74
|
export interface PtyTokenResponse {
|
|
70
75
|
channelToken: string;
|
|
@@ -91,6 +96,84 @@ export interface GenerateWorkerTokenResponse {
|
|
|
91
96
|
token: string;
|
|
92
97
|
tokenId: number;
|
|
93
98
|
}
|
|
99
|
+
/** Lightweight task record returned by list endpoints. */
|
|
100
|
+
export interface TaskRecord {
|
|
101
|
+
id: number;
|
|
102
|
+
status: string;
|
|
103
|
+
projectKey: string;
|
|
104
|
+
description: string;
|
|
105
|
+
workerName: string | null;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
}
|
|
108
|
+
/** Extended task record returned by detail endpoints. */
|
|
109
|
+
export interface TaskDetail extends TaskRecord {
|
|
110
|
+
currentStage: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
mrUrl: string | null;
|
|
113
|
+
}
|
|
114
|
+
/** Lightweight project record returned by list endpoints. */
|
|
115
|
+
export interface ProjectRecord {
|
|
116
|
+
key: string;
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
memberCount: number;
|
|
120
|
+
}
|
|
121
|
+
/** Extended project record returned by detail endpoints. */
|
|
122
|
+
export interface ProjectDetail extends ProjectRecord {
|
|
123
|
+
members: Array<{
|
|
124
|
+
name: string;
|
|
125
|
+
role: string;
|
|
126
|
+
}>;
|
|
127
|
+
pipelineConfig: unknown;
|
|
128
|
+
}
|
|
129
|
+
/** Lightweight worker record returned by list endpoints. */
|
|
130
|
+
export interface WorkerRecord {
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
status: string;
|
|
134
|
+
cpuUsage: number;
|
|
135
|
+
maxSlots: number;
|
|
136
|
+
activeSlots: number;
|
|
137
|
+
}
|
|
138
|
+
/** Extended worker record returned by detail endpoints. */
|
|
139
|
+
export interface WorkerDetail extends WorkerRecord {
|
|
140
|
+
os: string;
|
|
141
|
+
ip: string;
|
|
142
|
+
currentTasks: Array<{
|
|
143
|
+
id: number;
|
|
144
|
+
description: string;
|
|
145
|
+
}>;
|
|
146
|
+
lastHeartbeat: string;
|
|
147
|
+
}
|
|
148
|
+
/** Global search response. */
|
|
149
|
+
export interface SearchResults {
|
|
150
|
+
tasks: Array<{
|
|
151
|
+
id: number;
|
|
152
|
+
description: string;
|
|
153
|
+
status: string;
|
|
154
|
+
}>;
|
|
155
|
+
projects: Array<{
|
|
156
|
+
key: string;
|
|
157
|
+
name: string;
|
|
158
|
+
}>;
|
|
159
|
+
workers: Array<{
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
status: string;
|
|
163
|
+
}>;
|
|
164
|
+
}
|
|
165
|
+
/** Profile response from /api/web/profile. */
|
|
166
|
+
export interface ProfileResponse {
|
|
167
|
+
name: string;
|
|
168
|
+
role: string;
|
|
169
|
+
}
|
|
170
|
+
/** Dashboard stats response from /api/web/dashboard/stats. */
|
|
171
|
+
export interface DashboardStatsResponse {
|
|
172
|
+
active_tasks: number;
|
|
173
|
+
queued_tasks: number;
|
|
174
|
+
online_workers: number;
|
|
175
|
+
completed_today: number;
|
|
176
|
+
}
|
|
94
177
|
export interface ApiError {
|
|
95
178
|
error: {
|
|
96
179
|
code: string;
|
package/dist/api-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../src/api-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGzE,MAAM,WAAW,YAAY;IAAG,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAAE;AACxF,MAAM,WAAW,aAAa;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;CAAE;AAC7E,MAAM,WAAW,cAAc;IAAG,YAAY,EAAE,MAAM,CAAC;CAAE;AACzD,MAAM,WAAW,eAAe;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;CAAE;AAG/E,MAAM,WAAW,iBAAiB;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../src/api-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGzE,MAAM,WAAW,YAAY;IAAG,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAAE;AACxF,MAAM,WAAW,aAAa;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;CAAE;AAC7E,MAAM,WAAW,cAAc;IAAG,YAAY,EAAE,MAAM,CAAC;CAAE;AACzD,MAAM,WAAW,eAAe;IAAG,WAAW,EAAE,MAAM,CAAC;IAAC,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AC9D;AAED,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,QAAQ;IAAG,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;KAAE,CAAC;CAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums.js"), exports);
|
|
18
|
+
__exportStar(require("./types.js"), exports);
|
|
19
|
+
__exportStar(require("./ws-frames.js"), exports);
|
|
20
|
+
__exportStar(require("./api-types.js"), exports);
|
|
21
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,iDAA+B;AAC/B,iDAA+B"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TaskStatus } from './enums.js';
|
|
2
|
+
export declare const SLOT_STATUSES: TaskStatus[];
|
|
1
3
|
export declare const HEARTBEAT_INTERVAL_MS = 30000;
|
|
2
4
|
export declare const HEARTBEAT_TIMEOUT_MS = 180000;
|
|
3
5
|
export declare const EXECUTION_LEASE_TIMEOUT_MS = 180000;
|
|
@@ -45,7 +47,16 @@ export declare const BCRYPT_COST_FACTOR = 12;
|
|
|
45
47
|
export declare const RECOVERY_RATE_LIMIT = 5;
|
|
46
48
|
export declare const RECOVERY_LOCKOUT_THRESHOLD = 10;
|
|
47
49
|
export declare const RECOVERY_LOCKOUT_DURATION_MS = 1800000;
|
|
48
|
-
export declare const SENSITIVE_PATTERNS: RegExp[];
|
|
50
|
+
export declare const SENSITIVE_PATTERNS: readonly RegExp[];
|
|
51
|
+
export declare const PIPELINE_STALE_TIMEOUT_MS = 900000;
|
|
52
|
+
export declare const PIPELINE_REINJECTION_MIN_INTERVAL_MS = 300000;
|
|
53
|
+
export declare const PIPELINE_REINJECTION_CONFIRM_MS = 120000;
|
|
54
|
+
export declare const PIPELINE_MAX_LOOPS_STOP_WAIT_MS = 60000;
|
|
55
|
+
export declare const PTY_STDIN_CHUNK_SIZE = 512;
|
|
56
|
+
export declare const PTY_STDIN_CHUNK_DELAY_MS = 10;
|
|
49
57
|
export declare const STAGE_DONE_SENTINEL = "[[OVERLORD_STAGE_DONE:";
|
|
50
58
|
export declare const PROTOCOL_VERSION = "1.0";
|
|
59
|
+
export declare function maskToken(token: string): string;
|
|
60
|
+
export declare function getErrorMessage(err: unknown): string;
|
|
61
|
+
export declare function httpsGet(url: string, userAgent?: string, maxRedirects?: number): Promise<string>;
|
|
51
62
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,eAAO,MAAM,aAAa,EAAE,UAAU,EAIrC,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAC5C,eAAO,MAAM,oBAAoB,SAAU,CAAC;AAC5C,eAAO,MAAM,0BAA0B,SAAU,CAAC;AAClD,eAAO,MAAM,eAAe,SAAU,CAAC;AACvC,eAAO,MAAM,qBAAqB,QAAS,CAAC;AAC5C,eAAO,MAAM,sBAAsB,QAAS,CAAC;AAC7C,eAAO,MAAM,8BAA8B,QAAS,CAAC;AAGrD,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAC9C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAC9C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,+BAA+B,WAAa,CAAC;AAC1D,eAAO,MAAM,0BAA0B,SAAU,CAAC;AAClD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAG3C,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,oBAAoB,UAAY,CAAC;AAC9C,eAAO,MAAM,wBAAwB,UAAY,CAAC;AAClD,eAAO,MAAM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,MAAM,EAM/C,CAAC;AAGF,eAAO,MAAM,yBAAyB,SAAU,CAAC;AACjD,eAAO,MAAM,oCAAoC,SAAU,CAAC;AAC5D,eAAO,MAAM,+BAA+B,SAAU,CAAC;AACvD,eAAO,MAAM,+BAA+B,QAAS,CAAC;AACtD,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAG3C,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAG5D,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AAGtC,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAG/C;AAGD,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAEpD;AAGD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,SAAiB,EAAE,YAAY,SAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CA2BnG"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
36
|
+
exports.PIPELINE_STALE_TIMEOUT_MS = exports.SENSITIVE_PATTERNS = exports.RECOVERY_LOCKOUT_DURATION_MS = exports.RECOVERY_LOCKOUT_THRESHOLD = exports.RECOVERY_RATE_LIMIT = exports.BCRYPT_COST_FACTOR = exports.WAL_CHECKPOINT_INTERVAL_MS = exports.HEARTBEAT_BATCH_INTERVAL_MS = exports.TASK_LOGS_BATCH_INTERVAL_MS = exports.TASK_LOGS_BATCH_SIZE = exports.CAS_MAX_RETRIES = exports.MSGID_DEDUP_TTL_SEC = exports.DEFAULT_CONFIRM_TIMEOUT_SEC = exports.CONFIRM_PENDING_TTL_SEC = exports.EVENT_DEDUP_TTL_SEC = exports.TASK_LOGS_RETENTION_DAYS = exports.WORKSPACE_RETENTION_MS = exports.NOTIFICATION_MAX_RETRIES = exports.NOTIFICATION_JOB_TTL_MS = exports.NOTIFICATION_MERGE_WINDOW_MS = exports.NOTIFICATION_DEBOUNCE_MS = exports.DEFAULT_MAX_SLOTS = exports.DEFAULT_LOAD_THRESHOLD = exports.SCHEDULER_SCAN_LIMIT = exports.SCHEDULER_POLL_INTERVAL_MS = exports.PTY_SILENCE_WINDOW_MS = exports.PTY_IDLE_COMPLETE_MS = exports.PTY_IDLE_TIMEOUT_MS = exports.PTY_STDIN_RATE_LIMIT = exports.PTY_STDIN_MAX_BYTES = exports.PTY_RINGBUFFER_LINES = exports.QUEUE_WAIT_ALERT_MS = exports.DEFAULT_MAX_TURNS = exports.DEFAULT_STAGE_TIMEOUT_MS = exports.MAX_TASK_DURATION_MS = exports.MAX_CONCURRENT_TASKS = exports.CHANNEL_TOKEN_EXPIRY_SEC = exports.WORKER_JWT_GRACE_PERIOD_MS = exports.WORKER_JWT_RENEWAL_THRESHOLD_MS = exports.WORKER_JWT_EXPIRY = exports.USER_REFRESH_TOKEN_EXPIRY = exports.USER_ACCESS_TOKEN_EXPIRY = exports.TOKEN_REVALIDATION_INTERVAL_MS = exports.EXECUTE_ACK_TIMEOUT_MS = exports.CANCEL_ACK_TIMEOUT_MS = exports.GRACE_WINDOW_MS = exports.EXECUTION_LEASE_TIMEOUT_MS = exports.HEARTBEAT_TIMEOUT_MS = exports.HEARTBEAT_INTERVAL_MS = exports.SLOT_STATUSES = void 0;
|
|
37
|
+
exports.PROTOCOL_VERSION = exports.STAGE_DONE_SENTINEL = exports.PTY_STDIN_CHUNK_DELAY_MS = exports.PTY_STDIN_CHUNK_SIZE = exports.PIPELINE_MAX_LOOPS_STOP_WAIT_MS = exports.PIPELINE_REINJECTION_CONFIRM_MS = exports.PIPELINE_REINJECTION_MIN_INTERVAL_MS = void 0;
|
|
38
|
+
exports.maskToken = maskToken;
|
|
39
|
+
exports.getErrorMessage = getErrorMessage;
|
|
40
|
+
exports.httpsGet = httpsGet;
|
|
41
|
+
const https = __importStar(require("node:https"));
|
|
42
|
+
const enums_js_1 = require("./enums.js");
|
|
43
|
+
// Slot statuses — task statuses that occupy a worker slot.
|
|
44
|
+
exports.SLOT_STATUSES = [
|
|
45
|
+
enums_js_1.TaskStatus.ASSIGNED,
|
|
46
|
+
enums_js_1.TaskStatus.RUNNING,
|
|
47
|
+
enums_js_1.TaskStatus.SUSPENDED,
|
|
48
|
+
];
|
|
4
49
|
// Heartbeat & Timeout
|
|
5
50
|
exports.HEARTBEAT_INTERVAL_MS = 30_000;
|
|
6
51
|
exports.HEARTBEAT_TIMEOUT_MS = 180_000;
|
|
@@ -58,7 +103,9 @@ exports.BCRYPT_COST_FACTOR = 12;
|
|
|
58
103
|
exports.RECOVERY_RATE_LIMIT = 5;
|
|
59
104
|
exports.RECOVERY_LOCKOUT_THRESHOLD = 10;
|
|
60
105
|
exports.RECOVERY_LOCKOUT_DURATION_MS = 1_800_000;
|
|
61
|
-
// Sensitive patterns (PTY output sanitization)
|
|
106
|
+
// Sensitive patterns (PTY output sanitization).
|
|
107
|
+
// These use /g for global replacement via String.prototype.replace().
|
|
108
|
+
// Callers MUST reset lastIndex = 0 before each use since /g regexes are stateful.
|
|
62
109
|
exports.SENSITIVE_PATTERNS = [
|
|
63
110
|
/sk-[a-zA-Z0-9]{20,}/g,
|
|
64
111
|
/ghp_[a-zA-Z0-9]{36}/g,
|
|
@@ -66,8 +113,51 @@ exports.SENSITIVE_PATTERNS = [
|
|
|
66
113
|
/-----BEGIN (RSA |EC )?PRIVATE KEY-----/g,
|
|
67
114
|
/(?:password|passwd|secret|token|api_key|apikey|access_key|private_key)\s*[=:]\s*\S+/gi,
|
|
68
115
|
];
|
|
116
|
+
// Pipeline
|
|
117
|
+
exports.PIPELINE_STALE_TIMEOUT_MS = 900_000;
|
|
118
|
+
exports.PIPELINE_REINJECTION_MIN_INTERVAL_MS = 300_000;
|
|
119
|
+
exports.PIPELINE_REINJECTION_CONFIRM_MS = 120_000;
|
|
120
|
+
exports.PIPELINE_MAX_LOOPS_STOP_WAIT_MS = 60_000;
|
|
121
|
+
exports.PTY_STDIN_CHUNK_SIZE = 512;
|
|
122
|
+
exports.PTY_STDIN_CHUNK_DELAY_MS = 10;
|
|
69
123
|
// Sentinel
|
|
70
124
|
exports.STAGE_DONE_SENTINEL = '[[OVERLORD_STAGE_DONE:';
|
|
71
125
|
// Protocol version
|
|
72
126
|
exports.PROTOCOL_VERSION = '1.0';
|
|
127
|
+
// String helpers
|
|
128
|
+
function maskToken(token) {
|
|
129
|
+
if (token.length <= 8)
|
|
130
|
+
return '\u25CF'.repeat(token.length);
|
|
131
|
+
return '\u25CF'.repeat(token.length - 4) + token.slice(-4);
|
|
132
|
+
}
|
|
133
|
+
// Error helpers
|
|
134
|
+
function getErrorMessage(err) {
|
|
135
|
+
return err instanceof Error ? err.message : String(err);
|
|
136
|
+
}
|
|
137
|
+
// HTTP helpers
|
|
138
|
+
function httpsGet(url, userAgent = 'overlord-cli', maxRedirects = 5) {
|
|
139
|
+
return new Promise((resolve, reject) => {
|
|
140
|
+
if (maxRedirects <= 0) {
|
|
141
|
+
reject(new Error('Too many redirects'));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
const request = https.get(url, { headers: { 'User-Agent': userAgent } }, (res) => {
|
|
145
|
+
if (res.statusCode === 301 || res.statusCode === 302) {
|
|
146
|
+
const redirectUrl = res.headers.location;
|
|
147
|
+
if (redirectUrl) {
|
|
148
|
+
httpsGet(redirectUrl, userAgent, maxRedirects - 1).then(resolve, reject);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (res.statusCode !== 200) {
|
|
153
|
+
reject(new Error(`HTTP ${res.statusCode}`));
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const chunks = [];
|
|
157
|
+
res.on('data', (chunk) => { chunks.push(chunk); });
|
|
158
|
+
res.on('end', () => resolve(Buffer.concat(chunks).toString()));
|
|
159
|
+
});
|
|
160
|
+
request.on('error', reject);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
73
163
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
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|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export declare
|
|
59
|
-
ACTIVE
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
export
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
export declare const TaskStatus: {
|
|
2
|
+
readonly QUEUED: "QUEUED";
|
|
3
|
+
readonly ASSIGNED: "ASSIGNED";
|
|
4
|
+
readonly RUNNING: "RUNNING";
|
|
5
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
6
|
+
readonly COMPLETED: "COMPLETED";
|
|
7
|
+
readonly FAILED: "FAILED";
|
|
8
|
+
readonly CANCELLED: "CANCELLED";
|
|
9
|
+
};
|
|
10
|
+
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
11
|
+
export declare const WorkerStatus: {
|
|
12
|
+
readonly ONLINE: "online";
|
|
13
|
+
readonly OFFLINE: "offline";
|
|
14
|
+
readonly DRAINING: "draining";
|
|
15
|
+
readonly DECOMMISSIONED: "decommissioned";
|
|
16
|
+
};
|
|
17
|
+
export type WorkerStatus = typeof WorkerStatus[keyof typeof WorkerStatus];
|
|
18
|
+
export declare const DeveloperRole: {
|
|
19
|
+
readonly DEVELOPER: "developer";
|
|
20
|
+
readonly LEAD: "lead";
|
|
21
|
+
readonly ADMIN: "admin";
|
|
22
|
+
};
|
|
23
|
+
export type DeveloperRole = typeof DeveloperRole[keyof typeof DeveloperRole];
|
|
24
|
+
export declare const ProjectRole: {
|
|
25
|
+
readonly MAINTAINER: "maintainer";
|
|
26
|
+
readonly MEMBER: "member";
|
|
27
|
+
};
|
|
28
|
+
export type ProjectRole = typeof ProjectRole[keyof typeof ProjectRole];
|
|
29
|
+
export declare const AgentType: {
|
|
30
|
+
readonly CLAUDE: "claude";
|
|
31
|
+
readonly CURSOR: "cursor";
|
|
32
|
+
readonly CODEX: "codex";
|
|
33
|
+
readonly CUSTOM: "custom";
|
|
34
|
+
};
|
|
35
|
+
export type AgentType = typeof AgentType[keyof typeof AgentType];
|
|
36
|
+
export declare const Platform: {
|
|
37
|
+
readonly LARK: "lark";
|
|
38
|
+
readonly SLACK: "slack";
|
|
39
|
+
readonly DISCORD: "discord";
|
|
40
|
+
readonly WEB: "web";
|
|
41
|
+
};
|
|
42
|
+
export type Platform = typeof Platform[keyof typeof Platform];
|
|
43
|
+
export declare const CommandType: {
|
|
44
|
+
readonly DEVELOP: "develop";
|
|
45
|
+
readonly PROGRESS: "progress";
|
|
46
|
+
readonly CANCEL: "cancel";
|
|
47
|
+
readonly RETRY: "retry";
|
|
48
|
+
readonly LIST: "list";
|
|
49
|
+
readonly WORKSPACE: "workspace";
|
|
50
|
+
readonly LOGS: "logs";
|
|
51
|
+
readonly CONFIRM: "confirm";
|
|
52
|
+
readonly DRAIN: "drain";
|
|
53
|
+
readonly UNDRAIN: "undrain";
|
|
54
|
+
readonly BIND: "bind";
|
|
55
|
+
readonly INFO: "info";
|
|
56
|
+
};
|
|
57
|
+
export type CommandType = typeof CommandType[keyof typeof CommandType];
|
|
58
|
+
export declare const SessionStatus: {
|
|
59
|
+
readonly ACTIVE: "active";
|
|
60
|
+
readonly COMPLETED: "completed";
|
|
61
|
+
readonly FAILED: "failed";
|
|
62
|
+
};
|
|
63
|
+
export type SessionStatus = typeof SessionStatus[keyof typeof SessionStatus];
|
|
64
|
+
export declare const PtyOwner: {
|
|
65
|
+
readonly PIPELINE: "pipeline";
|
|
66
|
+
readonly HUMAN: "human";
|
|
67
|
+
};
|
|
68
|
+
export type PtyOwner = typeof PtyOwner[keyof typeof PtyOwner];
|
|
69
|
+
export declare const TokenStatus: {
|
|
70
|
+
readonly ACTIVE: "active";
|
|
71
|
+
readonly USED: "used";
|
|
72
|
+
readonly REVOKED: "revoked";
|
|
73
|
+
readonly EXPIRED: "expired";
|
|
74
|
+
};
|
|
75
|
+
export type TokenStatus = typeof TokenStatus[keyof typeof TokenStatus];
|
|
76
|
+
export declare const TokenPurpose: {
|
|
77
|
+
readonly ENROLLMENT: "enrollment";
|
|
78
|
+
readonly RECOVERY: "recovery";
|
|
79
|
+
};
|
|
80
|
+
export type TokenPurpose = typeof TokenPurpose[keyof typeof TokenPurpose];
|
|
81
|
+
export declare const TaskLogType: {
|
|
82
|
+
readonly INFO: "info";
|
|
83
|
+
readonly ERROR: "error";
|
|
84
|
+
readonly STAGE_CHANGE: "stage_change";
|
|
85
|
+
readonly WARNING: "warning";
|
|
86
|
+
readonly SYSTEM: "system";
|
|
87
|
+
};
|
|
88
|
+
export type TaskLogType = typeof TaskLogType[keyof typeof TaskLogType];
|
|
89
|
+
export declare const GitPlatform: {
|
|
90
|
+
readonly GITLAB: "gitlab";
|
|
91
|
+
readonly GITHUB: "github";
|
|
92
|
+
readonly GITEA: "gitea";
|
|
93
|
+
};
|
|
94
|
+
export type GitPlatform = typeof GitPlatform[keyof typeof GitPlatform];
|
|
95
|
+
export declare const LocalStatus: {
|
|
96
|
+
readonly STILL_RUNNING: "still_running";
|
|
97
|
+
readonly COMPLETED_LOCALLY: "completed_locally";
|
|
98
|
+
readonly FAILED_LOCALLY: "failed_locally";
|
|
99
|
+
};
|
|
100
|
+
export type LocalStatus = typeof LocalStatus[keyof typeof LocalStatus];
|
|
101
|
+
export declare const DeveloperStatus: {
|
|
102
|
+
readonly ACTIVE: "active";
|
|
103
|
+
readonly DISABLED: "disabled";
|
|
104
|
+
};
|
|
105
|
+
export type DeveloperStatus = typeof DeveloperStatus[keyof typeof DeveloperStatus];
|
|
106
|
+
export declare const WorkspaceStatus: {
|
|
107
|
+
readonly ACTIVE: "active";
|
|
108
|
+
readonly CLEANING: "cleaning";
|
|
109
|
+
readonly CLEANED: "cleaned";
|
|
110
|
+
readonly FAILED: "failed";
|
|
111
|
+
};
|
|
112
|
+
export type WorkspaceStatus = typeof WorkspaceStatus[keyof typeof WorkspaceStatus];
|
|
113
|
+
export declare const BotStatus: {
|
|
114
|
+
readonly ACTIVE: "active";
|
|
115
|
+
readonly DISABLED: "disabled";
|
|
116
|
+
};
|
|
117
|
+
export type BotStatus = typeof BotStatus[keyof typeof BotStatus];
|
|
118
|
+
export declare const TunnelStatus: {
|
|
119
|
+
readonly IDLE: "IDLE";
|
|
120
|
+
readonly STARTING: "STARTING";
|
|
121
|
+
readonly CONNECTED: "CONNECTED";
|
|
122
|
+
readonly EXPIRED: "EXPIRED";
|
|
123
|
+
readonly CLOSING: "CLOSING";
|
|
124
|
+
readonly CLOSED: "CLOSED";
|
|
125
|
+
};
|
|
126
|
+
export type TunnelStatus = typeof TunnelStatus[keyof typeof TunnelStatus];
|
|
79
127
|
//# sourceMappingURL=enums.d.ts.map
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;CAQb,CA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AG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE1E,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,eAAO,MAAM,WAAW;;;;CAId,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,eAAO,MAAM,WAAW;;;;CAId,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/enums.js
CHANGED
|
@@ -1,95 +1,112 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GitPlatform = exports.TaskLogType = exports.TokenPurpose = exports.TokenStatus = exports.PtyOwner = exports.SessionStatus = exports.CommandType = exports.Platform = exports.AgentType = exports.ProjectRole = exports.DeveloperRole = exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
3
|
+
exports.TunnelStatus = exports.BotStatus = exports.WorkspaceStatus = exports.DeveloperStatus = exports.LocalStatus = exports.GitPlatform = exports.TaskLogType = exports.TokenPurpose = exports.TokenStatus = exports.PtyOwner = exports.SessionStatus = exports.CommandType = exports.Platform = exports.AgentType = exports.ProjectRole = exports.DeveloperRole = exports.WorkerStatus = exports.TaskStatus = void 0;
|
|
4
|
+
exports.TaskStatus = {
|
|
5
|
+
QUEUED: 'QUEUED',
|
|
6
|
+
ASSIGNED: 'ASSIGNED',
|
|
7
|
+
RUNNING: 'RUNNING',
|
|
8
|
+
SUSPENDED: 'SUSPENDED',
|
|
9
|
+
COMPLETED: 'COMPLETED',
|
|
10
|
+
FAILED: 'FAILED',
|
|
11
|
+
CANCELLED: 'CANCELLED',
|
|
12
|
+
};
|
|
13
|
+
exports.WorkerStatus = {
|
|
14
|
+
ONLINE: 'online',
|
|
15
|
+
OFFLINE: 'offline',
|
|
16
|
+
DRAINING: 'draining',
|
|
17
|
+
DECOMMISSIONED: 'decommissioned',
|
|
18
|
+
};
|
|
19
|
+
exports.DeveloperRole = {
|
|
20
|
+
DEVELOPER: 'developer',
|
|
21
|
+
LEAD: 'lead',
|
|
22
|
+
ADMIN: 'admin',
|
|
23
|
+
};
|
|
24
|
+
exports.ProjectRole = {
|
|
25
|
+
MAINTAINER: 'maintainer',
|
|
26
|
+
MEMBER: 'member',
|
|
27
|
+
};
|
|
28
|
+
exports.AgentType = {
|
|
29
|
+
CLAUDE: 'claude',
|
|
30
|
+
CURSOR: 'cursor',
|
|
31
|
+
CODEX: 'codex',
|
|
32
|
+
CUSTOM: 'custom',
|
|
33
|
+
};
|
|
34
|
+
exports.Platform = {
|
|
35
|
+
LARK: 'lark',
|
|
36
|
+
SLACK: 'slack',
|
|
37
|
+
DISCORD: 'discord',
|
|
38
|
+
WEB: 'web',
|
|
39
|
+
};
|
|
40
|
+
exports.CommandType = {
|
|
41
|
+
DEVELOP: 'develop',
|
|
42
|
+
PROGRESS: 'progress',
|
|
43
|
+
CANCEL: 'cancel',
|
|
44
|
+
RETRY: 'retry',
|
|
45
|
+
LIST: 'list',
|
|
46
|
+
WORKSPACE: 'workspace',
|
|
47
|
+
LOGS: 'logs',
|
|
48
|
+
CONFIRM: 'confirm',
|
|
49
|
+
DRAIN: 'drain',
|
|
50
|
+
UNDRAIN: 'undrain',
|
|
51
|
+
BIND: 'bind',
|
|
52
|
+
INFO: 'info',
|
|
53
|
+
};
|
|
54
|
+
exports.SessionStatus = {
|
|
55
|
+
ACTIVE: 'active',
|
|
56
|
+
COMPLETED: 'completed',
|
|
57
|
+
FAILED: 'failed',
|
|
58
|
+
};
|
|
59
|
+
exports.PtyOwner = {
|
|
60
|
+
PIPELINE: 'pipeline',
|
|
61
|
+
HUMAN: 'human',
|
|
62
|
+
};
|
|
63
|
+
exports.TokenStatus = {
|
|
64
|
+
ACTIVE: 'active',
|
|
65
|
+
USED: 'used',
|
|
66
|
+
REVOKED: 'revoked',
|
|
67
|
+
EXPIRED: 'expired',
|
|
68
|
+
};
|
|
69
|
+
exports.TokenPurpose = {
|
|
70
|
+
ENROLLMENT: 'enrollment',
|
|
71
|
+
RECOVERY: 'recovery',
|
|
72
|
+
};
|
|
73
|
+
exports.TaskLogType = {
|
|
74
|
+
INFO: 'info',
|
|
75
|
+
ERROR: 'error',
|
|
76
|
+
STAGE_CHANGE: 'stage_change',
|
|
77
|
+
WARNING: 'warning',
|
|
78
|
+
SYSTEM: 'system',
|
|
79
|
+
};
|
|
80
|
+
exports.GitPlatform = {
|
|
81
|
+
GITLAB: 'gitlab',
|
|
82
|
+
GITHUB: 'github',
|
|
83
|
+
GITEA: 'gitea',
|
|
84
|
+
};
|
|
85
|
+
exports.LocalStatus = {
|
|
86
|
+
STILL_RUNNING: 'still_running',
|
|
87
|
+
COMPLETED_LOCALLY: 'completed_locally',
|
|
88
|
+
FAILED_LOCALLY: 'failed_locally',
|
|
89
|
+
};
|
|
90
|
+
exports.DeveloperStatus = {
|
|
91
|
+
ACTIVE: 'active',
|
|
92
|
+
DISABLED: 'disabled',
|
|
93
|
+
};
|
|
94
|
+
exports.WorkspaceStatus = {
|
|
95
|
+
ACTIVE: 'active',
|
|
96
|
+
CLEANING: 'cleaning',
|
|
97
|
+
CLEANED: 'cleaned',
|
|
98
|
+
FAILED: 'failed',
|
|
99
|
+
};
|
|
100
|
+
exports.BotStatus = {
|
|
101
|
+
ACTIVE: 'active',
|
|
102
|
+
DISABLED: 'disabled',
|
|
103
|
+
};
|
|
104
|
+
exports.TunnelStatus = {
|
|
105
|
+
IDLE: 'IDLE',
|
|
106
|
+
STARTING: 'STARTING',
|
|
107
|
+
CONNECTED: 'CONNECTED',
|
|
108
|
+
EXPIRED: 'EXPIRED',
|
|
109
|
+
CLOSING: 'CLOSING',
|
|
110
|
+
CLOSED: 'CLOSED',
|
|
111
|
+
};
|
|
95
112
|
//# sourceMappingURL=enums.js.map
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACd,CAAC;AAGE,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAGE,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAGE,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAGE,QAAA,QAAQ,GAAG;IACtB,IAAI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Ae,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGE,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGE,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { TaskStatus,
|
|
1
|
+
import type { TaskStatus, WorkerStatus, DeveloperRole, DeveloperStatus, AgentType, Platform, CommandType, SessionStatus, PtyOwner, TokenStatus, TokenPurpose, GitPlatform, ProjectRole, WorkspaceStatus, BotStatus } from './enums.js';
|
|
2
2
|
export interface Command {
|
|
3
3
|
type: CommandType;
|
|
4
4
|
args: {
|
|
5
5
|
description?: string;
|
|
6
6
|
project?: string;
|
|
7
|
-
|
|
7
|
+
worker?: string;
|
|
8
8
|
developer?: number;
|
|
9
|
-
|
|
9
|
+
reviewer?: string[];
|
|
10
10
|
taskId?: number;
|
|
11
11
|
};
|
|
12
12
|
platform: Platform;
|
|
@@ -32,9 +32,8 @@ export interface Task {
|
|
|
32
32
|
fingerprint: string | null;
|
|
33
33
|
status: TaskStatus;
|
|
34
34
|
projectKey: string;
|
|
35
|
-
|
|
35
|
+
workerId: string | null;
|
|
36
36
|
developerId: number | null;
|
|
37
|
-
app: string | null;
|
|
38
37
|
branch: string | null;
|
|
39
38
|
mrUrl: string | null;
|
|
40
39
|
mrNumber: number | null;
|
|
@@ -72,41 +71,43 @@ export interface ConfigSnapshot {
|
|
|
72
71
|
skillsPath: string | null;
|
|
73
72
|
pipeline: string | null;
|
|
74
73
|
ptyOutputFilter: number;
|
|
74
|
+
defaultReviewers?: string[];
|
|
75
75
|
}
|
|
76
76
|
export interface PipelineConfig {
|
|
77
|
+
preamble?: string;
|
|
77
78
|
stages: StageConfig[];
|
|
78
|
-
defaults: StageDefaults;
|
|
79
|
-
}
|
|
80
|
-
export type StageConfirmMode = 'confirm' | 'choice' | 'input';
|
|
81
|
-
export interface StageChoiceOption {
|
|
82
|
-
value: string;
|
|
83
|
-
label: string;
|
|
84
79
|
}
|
|
85
80
|
export interface StageConfig {
|
|
86
81
|
name: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
confirm?: boolean;
|
|
92
|
-
prompt?: string;
|
|
93
|
-
choices?: StageChoiceOption[];
|
|
94
|
-
default_choice?: string;
|
|
95
|
-
confirm_timeout?: number;
|
|
96
|
-
irreversible?: boolean;
|
|
82
|
+
label?: string;
|
|
83
|
+
prompt: string;
|
|
84
|
+
params?: Record<string, string>;
|
|
85
|
+
gate?: string;
|
|
97
86
|
onFailure?: {
|
|
98
87
|
goto: string;
|
|
99
88
|
maxLoops: number;
|
|
100
89
|
};
|
|
101
|
-
|
|
90
|
+
requireConfirm?: boolean;
|
|
91
|
+
timeout?: number;
|
|
102
92
|
}
|
|
103
|
-
export interface
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
93
|
+
export interface PipelineRunState {
|
|
94
|
+
currentStageIndex: number;
|
|
95
|
+
stages: StageRunState[];
|
|
96
|
+
loopCounts: Record<string, number>;
|
|
97
|
+
takeover: {
|
|
98
|
+
active: boolean;
|
|
99
|
+
at?: string;
|
|
100
|
+
atStage?: string;
|
|
101
|
+
};
|
|
108
102
|
}
|
|
109
|
-
export interface
|
|
103
|
+
export interface StageRunState {
|
|
104
|
+
name: string;
|
|
105
|
+
status: 'pending' | 'running' | 'done' | 'failed' | 'skipped' | 'waiting_confirm';
|
|
106
|
+
result?: string;
|
|
107
|
+
startedAt?: string;
|
|
108
|
+
completedAt?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface Worker {
|
|
110
111
|
id: string;
|
|
111
112
|
name: string;
|
|
112
113
|
host: string;
|
|
@@ -128,11 +129,11 @@ export interface Machine {
|
|
|
128
129
|
protocolVersion: string;
|
|
129
130
|
workerVersion: string | null;
|
|
130
131
|
lastHeartbeat: string | null;
|
|
131
|
-
|
|
132
|
-
status: MachineStatus;
|
|
132
|
+
status: WorkerStatus;
|
|
133
133
|
decommissionedAt: string | null;
|
|
134
134
|
decommissionedBy: number | null;
|
|
135
135
|
}
|
|
136
|
+
/** Internal type with sensitive fields. Use DeveloperPublic for API responses. */
|
|
136
137
|
export interface Developer {
|
|
137
138
|
id: number;
|
|
138
139
|
name: string;
|
|
@@ -142,7 +143,7 @@ export interface Developer {
|
|
|
142
143
|
passwordHash: string | null;
|
|
143
144
|
totpSecret: string | null;
|
|
144
145
|
role: DeveloperRole;
|
|
145
|
-
status:
|
|
146
|
+
status: DeveloperStatus;
|
|
146
147
|
createdAt: string;
|
|
147
148
|
}
|
|
148
149
|
/** Developer type for API responses — omits sensitive fields. */
|
|
@@ -167,6 +168,8 @@ export interface Project {
|
|
|
167
168
|
pipeline: string | null;
|
|
168
169
|
ptyOutputFilter: number;
|
|
169
170
|
isDefault: boolean;
|
|
171
|
+
defaultReviewers: string[];
|
|
172
|
+
gitTokenEncrypted: string | null;
|
|
170
173
|
createdAt: string;
|
|
171
174
|
}
|
|
172
175
|
export interface AgentSession {
|
|
@@ -180,7 +183,6 @@ export interface AgentSession {
|
|
|
180
183
|
ptyOwner: PtyOwner;
|
|
181
184
|
ownerRevision: number;
|
|
182
185
|
exitCode: number | null;
|
|
183
|
-
outputLines: number;
|
|
184
186
|
revision: number;
|
|
185
187
|
startedAt: string;
|
|
186
188
|
finishedAt: string | null;
|
|
@@ -188,13 +190,12 @@ export interface AgentSession {
|
|
|
188
190
|
export interface Workspace {
|
|
189
191
|
id: number;
|
|
190
192
|
taskId: number;
|
|
191
|
-
|
|
193
|
+
workerId: string;
|
|
192
194
|
projectKey: string;
|
|
193
195
|
developerId: number;
|
|
194
196
|
path: string;
|
|
195
197
|
branch: string | null;
|
|
196
|
-
status:
|
|
197
|
-
expiresAt: string | null;
|
|
198
|
+
status: WorkspaceStatus;
|
|
198
199
|
}
|
|
199
200
|
export interface WorkerToken {
|
|
200
201
|
id: number;
|
|
@@ -235,16 +236,20 @@ export interface AuditLog {
|
|
|
235
236
|
ip: string | null;
|
|
236
237
|
createdAt: string;
|
|
237
238
|
}
|
|
239
|
+
/** Internal type with sensitive fields. Use BotInstancePublic for API responses. */
|
|
238
240
|
export interface BotInstance {
|
|
239
241
|
id: number;
|
|
240
242
|
platform: string;
|
|
241
243
|
appId: string;
|
|
244
|
+
/** SENSITIVE: encrypted app secret. */
|
|
242
245
|
appSecret: string;
|
|
243
246
|
webhookToken: string | null;
|
|
244
247
|
name: string;
|
|
245
|
-
status:
|
|
248
|
+
status: BotStatus;
|
|
246
249
|
createdAt: string;
|
|
247
250
|
}
|
|
251
|
+
/** Bot instance type for API responses — omits sensitive fields. */
|
|
252
|
+
export type BotInstancePublic = Omit<BotInstance, 'appSecret'>;
|
|
248
253
|
export interface ChatBinding {
|
|
249
254
|
id: number;
|
|
250
255
|
botInstanceId: number;
|
|
@@ -257,7 +262,7 @@ export interface ProjectMember {
|
|
|
257
262
|
id: number;
|
|
258
263
|
projectKey: string;
|
|
259
264
|
developerId: number;
|
|
260
|
-
role:
|
|
265
|
+
role: ProjectRole;
|
|
261
266
|
createdAt: string;
|
|
262
267
|
}
|
|
263
268
|
export interface PaginatedResult<T> {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,
|
|
1
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AAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
|
package/dist/ws-frames.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigSnapshot
|
|
2
|
-
export type WorkerUpFrame = WorkerAuthFrame | WorkerHeartbeatFrame | WorkerAckFrame | WorkerReconnectFrame | WorkerProgressFrame | WorkerRecoverySecretAckFrame | StageConfirmRequestFrame;
|
|
1
|
+
import type { ConfigSnapshot } from './types.js';
|
|
2
|
+
export type WorkerUpFrame = WorkerAuthFrame | WorkerHeartbeatFrame | WorkerAckFrame | WorkerReconnectFrame | WorkerProgressFrame | WorkerRecoverySecretAckFrame | StageConfirmRequestFrame | TunnelStartedFrame | TunnelClosedFrame | TunnelCrashedFrame;
|
|
3
3
|
export interface WorkerAuthFrame {
|
|
4
4
|
type: 'auth';
|
|
5
5
|
token: string;
|
|
@@ -7,7 +7,7 @@ export interface WorkerAuthFrame {
|
|
|
7
7
|
}
|
|
8
8
|
export interface WorkerHeartbeatFrame {
|
|
9
9
|
type: 'heartbeat';
|
|
10
|
-
|
|
10
|
+
workerId: string;
|
|
11
11
|
timestamp: string;
|
|
12
12
|
workerVersion?: string;
|
|
13
13
|
cpuModel?: string;
|
|
@@ -19,6 +19,10 @@ export interface WorkerHeartbeatFrame {
|
|
|
19
19
|
activeSlots: number;
|
|
20
20
|
};
|
|
21
21
|
capabilities: string[];
|
|
22
|
+
activeTunnels?: Array<{
|
|
23
|
+
taskId: number;
|
|
24
|
+
tunnelUrl: string;
|
|
25
|
+
}>;
|
|
22
26
|
}
|
|
23
27
|
export interface WorkerAckFrame {
|
|
24
28
|
type: 'ack';
|
|
@@ -27,10 +31,10 @@ export interface WorkerAckFrame {
|
|
|
27
31
|
}
|
|
28
32
|
export interface WorkerReconnectFrame {
|
|
29
33
|
type: 'reconnect';
|
|
30
|
-
|
|
34
|
+
workerId: string;
|
|
31
35
|
tasks: Array<{
|
|
32
36
|
taskId: number;
|
|
33
|
-
localStatus: '
|
|
37
|
+
localStatus: import('./enums.js').LocalStatus;
|
|
34
38
|
currentStage?: string;
|
|
35
39
|
branch?: string;
|
|
36
40
|
mrUrl?: string;
|
|
@@ -41,7 +45,7 @@ export interface WorkerProgressFrame {
|
|
|
41
45
|
type: 'progress';
|
|
42
46
|
taskId: number;
|
|
43
47
|
stage: string;
|
|
44
|
-
status:
|
|
48
|
+
status: 'running' | 'completed' | 'failed' | 'cancelled' | 'stage_done' | 'stage_failed';
|
|
45
49
|
message?: string;
|
|
46
50
|
}
|
|
47
51
|
export interface WorkerRecoverySecretAckFrame {
|
|
@@ -65,6 +69,8 @@ export interface ExecuteTaskFrame {
|
|
|
65
69
|
gitEmail: string;
|
|
66
70
|
};
|
|
67
71
|
channelToken: string;
|
|
72
|
+
/** SENSITIVE: Git token for repository access. Worker control channel MUST use WSS (encrypted). */
|
|
73
|
+
gitToken?: string;
|
|
68
74
|
}
|
|
69
75
|
export interface CancelTaskFrame {
|
|
70
76
|
type: 'cancel';
|
|
@@ -101,22 +107,36 @@ export interface StopTunnelFrame {
|
|
|
101
107
|
taskId: number;
|
|
102
108
|
reason: string;
|
|
103
109
|
}
|
|
110
|
+
export interface TunnelStartedFrame {
|
|
111
|
+
type: 'tunnel_started';
|
|
112
|
+
taskId: number;
|
|
113
|
+
tunnelUrl: string;
|
|
114
|
+
}
|
|
115
|
+
export interface TunnelClosedFrame {
|
|
116
|
+
type: 'tunnel_closed';
|
|
117
|
+
taskId: number;
|
|
118
|
+
reason: 'manual' | 'crashed' | 'expired' | 'task_ended';
|
|
119
|
+
}
|
|
120
|
+
export interface TunnelCrashedFrame {
|
|
121
|
+
type: 'tunnel_crashed';
|
|
122
|
+
taskId: number;
|
|
123
|
+
error: string;
|
|
124
|
+
willRetry: boolean;
|
|
125
|
+
}
|
|
104
126
|
export interface StageConfirmRequestFrame {
|
|
105
127
|
type: 'stage_confirm_request';
|
|
106
128
|
taskId: number;
|
|
107
|
-
|
|
108
|
-
mode: StageConfirmMode;
|
|
129
|
+
stageName: string;
|
|
109
130
|
prompt?: string;
|
|
110
|
-
choices?: StageChoiceOption[];
|
|
111
131
|
timeout: number;
|
|
112
132
|
}
|
|
113
133
|
export interface StageConfirmResponseFrame {
|
|
114
134
|
type: 'stage_confirm_response';
|
|
115
135
|
taskId: number;
|
|
116
|
-
|
|
117
|
-
|
|
136
|
+
stageName: string;
|
|
137
|
+
approved: boolean;
|
|
118
138
|
}
|
|
119
|
-
export type PtyFrame = PtyAuthFrame | PtyDataFrame | PtyResizeFrame | PtyRequestTakeoverFrame | PtyTakeoverGrantedFrame | PtyTakeoverDeniedFrame | PtyForceTakeoverFrame | PtyReleaseTakeoverFrame | PtyWriterRevokedFrame | PtyFramesDroppedFrame | PtyErrorFrame;
|
|
139
|
+
export type PtyFrame = PtyAuthFrame | PtyAuthOkFrame | PtyDataFrame | PtyResizeFrame | PtyRequestTakeoverFrame | PtyTakeoverGrantedFrame | PtyTakeoverDeniedFrame | PtyForceTakeoverFrame | PtyReleaseTakeoverFrame | PtyWriterRevokedFrame | PtyFramesDroppedFrame | PtyErrorFrame;
|
|
120
140
|
export interface PtyFramesDroppedFrame {
|
|
121
141
|
type: 'frames_dropped';
|
|
122
142
|
count: number;
|
|
@@ -127,6 +147,9 @@ export interface PtyAuthFrame {
|
|
|
127
147
|
workerJwt?: string;
|
|
128
148
|
channelToken: string;
|
|
129
149
|
}
|
|
150
|
+
export interface PtyAuthOkFrame {
|
|
151
|
+
type: 'auth_ok';
|
|
152
|
+
}
|
|
130
153
|
export interface PtyDataFrame {
|
|
131
154
|
type: 'data';
|
|
132
155
|
data: string;
|
|
@@ -161,4 +184,43 @@ export interface PtyErrorFrame {
|
|
|
161
184
|
code: string;
|
|
162
185
|
message: string;
|
|
163
186
|
}
|
|
187
|
+
export interface WebEventAuthFrame {
|
|
188
|
+
type: 'auth';
|
|
189
|
+
token: string;
|
|
190
|
+
}
|
|
191
|
+
export interface WebEventAuthOkFrame {
|
|
192
|
+
type: 'auth_ok';
|
|
193
|
+
}
|
|
194
|
+
export interface WebEventAuthErrorFrame {
|
|
195
|
+
type: 'auth_error';
|
|
196
|
+
message: string;
|
|
197
|
+
}
|
|
198
|
+
export type WebEventType = 'task_status_changed' | 'task_created' | 'worker_status_changed';
|
|
199
|
+
export interface TaskStatusChangedEvent {
|
|
200
|
+
type: 'event';
|
|
201
|
+
event: 'task_status_changed';
|
|
202
|
+
taskId: number;
|
|
203
|
+
status: string;
|
|
204
|
+
previousStatus: string;
|
|
205
|
+
workerId?: string | null;
|
|
206
|
+
projectKey?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface TaskCreatedEvent {
|
|
209
|
+
type: 'event';
|
|
210
|
+
event: 'task_created';
|
|
211
|
+
taskId: number;
|
|
212
|
+
status: string;
|
|
213
|
+
projectKey: string;
|
|
214
|
+
description: string;
|
|
215
|
+
}
|
|
216
|
+
export interface WorkerStatusChangedEvent {
|
|
217
|
+
type: 'event';
|
|
218
|
+
event: 'worker_status_changed';
|
|
219
|
+
workerId: string;
|
|
220
|
+
status: string;
|
|
221
|
+
previousStatus: string;
|
|
222
|
+
}
|
|
223
|
+
/** Union of all server-push event frames (excluding auth handshake). */
|
|
224
|
+
export type ServerEvent = TaskStatusChangedEvent | TaskCreatedEvent | WorkerStatusChangedEvent;
|
|
225
|
+
export type WebEventFrame = WebEventAuthFrame | WebEventAuthOkFrame | WebEventAuthErrorFrame | ServerEvent;
|
|
164
226
|
//# sourceMappingURL=ws-frames.d.ts.map
|
package/dist/ws-frames.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-frames.d.ts","sourceRoot":"","sources":["../src/ws-frames.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wEAAwE;AACxE,MAAM,MAAM,WAAW,GACnB,sBAAsB,GACtB,gBAAgB,GAChB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overlordai/protocol",
|
|
3
|
-
"
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.54",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"files": [
|
|
6
7
|
"dist"
|
|
@@ -9,7 +10,13 @@
|
|
|
9
10
|
"types": "dist/index.d.ts",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc",
|
|
12
|
-
"test": "
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:coverage": "vitest run --coverage",
|
|
13
15
|
"lint": "tsc --noEmit"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^22.0.0",
|
|
19
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
20
|
+
"vitest": "^4.0.18"
|
|
14
21
|
}
|
|
15
22
|
}
|