@massa-ai/tools-api 1.37.0 → 1.38.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/index.js +19 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -107213,6 +107213,7 @@ var init_registry = __esm(() => {
|
|
|
107213
107213
|
search_analytics: { storeId: "search_analytics", identityColumn: "project_id", mutable: true },
|
|
107214
107214
|
search_events: { storeId: "search_events", identityColumn: "project_id", mutable: true },
|
|
107215
107215
|
synapse_sessions: { storeId: "synapse_sessions", identityColumn: "workspace_id", mutable: true },
|
|
107216
|
+
managed_runs: { storeId: "managed_runs", identityColumn: "project_id", mutable: true },
|
|
107216
107217
|
operation_log: { storeId: "operation_log", identityColumn: "project_id", mutable: false },
|
|
107217
107218
|
project_identity_operations: {
|
|
107218
107219
|
storeId: "project_identity_operations",
|
|
@@ -126478,6 +126479,10 @@ var init_checkpoint_store_pg = __esm(() => {
|
|
|
126478
126479
|
});
|
|
126479
126480
|
|
|
126480
126481
|
// ../../packages/core/dist/services/checkpoint/checkpoint-manager.js
|
|
126482
|
+
var exports_checkpoint_manager = {};
|
|
126483
|
+
__export(exports_checkpoint_manager, {
|
|
126484
|
+
CheckpointManager: () => CheckpointManager
|
|
126485
|
+
});
|
|
126481
126486
|
var CheckpointManager;
|
|
126482
126487
|
var init_checkpoint_manager = __esm(() => {
|
|
126483
126488
|
init_config();
|
|
@@ -132476,6 +132481,11 @@ function registerDefaultJobs(scheduler) {
|
|
|
132476
132481
|
const projectId = job.payload?.projectId ?? "default";
|
|
132477
132482
|
await observationConsolidationJob2.runOnce(projectId);
|
|
132478
132483
|
});
|
|
132484
|
+
scheduler.registerHandler("checkpoint-purge", async () => {
|
|
132485
|
+
const { CheckpointManager: CheckpointManager2 } = await Promise.resolve().then(() => (init_checkpoint_manager(), exports_checkpoint_manager));
|
|
132486
|
+
const count = CheckpointManager2.getInstance().purgeExpired();
|
|
132487
|
+
logger.info("Scheduled checkpoint purge completed", { count });
|
|
132488
|
+
});
|
|
132479
132489
|
for (const rawDef of DEFAULT_SCHEDULED_JOBS) {
|
|
132480
132490
|
const def = applySafeDefaults(rawDef);
|
|
132481
132491
|
const enabled2 = envBool2(def.enableEnvVar, def.defaultEnabled);
|
|
@@ -132537,6 +132547,15 @@ var init_scheduler_defaults = __esm(() => {
|
|
|
132537
132547
|
defaultEnabled: false,
|
|
132538
132548
|
enableEnvVar: "MASSA_AI_SCHEDULER_OBSERVATION_BRIDGE_ENABLED",
|
|
132539
132549
|
intervalEnvVar: "MASSA_AI_SCHEDULER_OBSERVATION_BRIDGE_INTERVAL_MS"
|
|
132550
|
+
},
|
|
132551
|
+
{
|
|
132552
|
+
id: "scheduled-checkpoint-purge",
|
|
132553
|
+
name: "Checkpoint Purge (clock)",
|
|
132554
|
+
jobKind: "checkpoint-purge",
|
|
132555
|
+
schedule: { type: "interval", intervalMs: ONE_HOUR },
|
|
132556
|
+
defaultEnabled: false,
|
|
132557
|
+
enableEnvVar: "MASSA_AI_SCHEDULER_CHECKPOINT_PURGE_ENABLED",
|
|
132558
|
+
intervalEnvVar: "MASSA_AI_SCHEDULER_CHECKPOINT_PURGE_INTERVAL_MS"
|
|
132540
132559
|
}
|
|
132541
132560
|
];
|
|
132542
132561
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massa-ai/tools-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"author": "luizgmassa",
|
|
5
5
|
"description": "massa-ai REST API server - Semantic code search, memory, and context compression",
|
|
6
6
|
"type": "module",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test": "bun scripts/run-tests-isolated.ts"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@massa-ai/core": "^1.
|
|
25
|
-
"@massa-ai/shared": "^1.
|
|
24
|
+
"@massa-ai/core": "^1.38.0",
|
|
25
|
+
"@massa-ai/shared": "^1.38.0",
|
|
26
26
|
"elysia": "^1.2.25",
|
|
27
27
|
"@elysiajs/swagger": "^1.2.0",
|
|
28
28
|
"@elysiajs/cors": "^1.2.0",
|