agent-tower 0.1.4 → 0.1.6
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/cli.js +0 -0
- package/dist/mcp/index.js +0 -0
- package/node_modules/prisma/node_modules/@prisma/debug/LICENSE +201 -0
- package/node_modules/prisma/node_modules/@prisma/debug/README.md +29 -0
- package/node_modules/prisma/node_modules/@prisma/debug/dist/index.d.ts +35 -0
- package/node_modules/prisma/node_modules/@prisma/debug/dist/index.js +236 -0
- package/node_modules/prisma/node_modules/@prisma/debug/dist/util.d.ts +2 -0
- package/node_modules/prisma/node_modules/@prisma/debug/dist/util.js +74 -0
- package/node_modules/prisma/node_modules/@prisma/debug/package.json +37 -0
- package/node_modules/prisma/node_modules/@prisma/engines-version/LICENSE +201 -0
- package/node_modules/prisma/node_modules/@prisma/engines-version/README.md +8 -0
- package/node_modules/prisma/node_modules/@prisma/engines-version/index.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/engines-version/index.js +5 -0
- package/node_modules/prisma/node_modules/@prisma/engines-version/package.json +27 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/LICENSE +201 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/README.md +8 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +5 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/BinaryType.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +2385 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +161 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +66 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +49 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +2457 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +1404 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +2385 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +44 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +159 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +8153 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +70 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +2786 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +4232 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +29 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +28 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/download.d.ts +27 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/download.js +41 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +6 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/downloadZip.js +30 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/env.d.ts +14 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/env.js +29 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/getHash.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +3 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/index.d.ts +5 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/index.js +49 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/log.d.ts +2 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/log.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +371 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/utils.d.ts +11 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/dist/utils.js +29 -0
- package/node_modules/prisma/node_modules/@prisma/fetch-engine/package.json +59 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/LICENSE +201 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/README.md +16 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +4 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +2 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/binaryTargets.js +26 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +67 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +34 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +1 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +62 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +53 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +367 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +41 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +14956 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +43 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +580 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +70 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +8 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +25 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +105 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/getPlatform.js +38 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/index.d.ts +7 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/index.js +43 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/link.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/link.js +26 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/logger.d.ts +8 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/logger.js +29 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +8 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +27 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +1 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/index.js +28 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +108 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +27 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +205 -0
- package/node_modules/prisma/node_modules/@prisma/get-platform/package.json +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var chunk_QSTZGX47_exports = {};
|
|
30
|
+
__export(chunk_QSTZGX47_exports, {
|
|
31
|
+
cleanupCache: () => cleanupCache
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_QSTZGX47_exports);
|
|
34
|
+
var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
|
|
35
|
+
var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
|
|
36
|
+
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
|
37
|
+
var import_debug = __toESM(require("@prisma/debug"));
|
|
38
|
+
var import_fs = __toESM(require("fs"));
|
|
39
|
+
var import_path = __toESM(require("path"));
|
|
40
|
+
var import_util = require("util");
|
|
41
|
+
var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)());
|
|
42
|
+
var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)());
|
|
43
|
+
var debug = (0, import_debug.default)("cleanupCache");
|
|
44
|
+
var del = (0, import_util.promisify)(import_rimraf.default);
|
|
45
|
+
async function cleanupCache(n = 5) {
|
|
46
|
+
try {
|
|
47
|
+
const rootCacheDir = await (0, import_chunk_FQ2BOR66.getRootCacheDir)();
|
|
48
|
+
if (!rootCacheDir) {
|
|
49
|
+
debug("no rootCacheDir found");
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const channel = "master";
|
|
53
|
+
const cacheDir = import_path.default.join(rootCacheDir, channel);
|
|
54
|
+
const dirs = await import_fs.default.promises.readdir(cacheDir);
|
|
55
|
+
const dirsWithMeta = await Promise.all(
|
|
56
|
+
dirs.map(async (dirName) => {
|
|
57
|
+
const dir = import_path.default.join(cacheDir, dirName);
|
|
58
|
+
const statResult = await import_fs.default.promises.stat(dir);
|
|
59
|
+
return {
|
|
60
|
+
dir,
|
|
61
|
+
created: statResult.birthtime
|
|
62
|
+
};
|
|
63
|
+
})
|
|
64
|
+
);
|
|
65
|
+
dirsWithMeta.sort((a, b) => a.created < b.created ? 1 : -1);
|
|
66
|
+
const dirsToRemove = dirsWithMeta.slice(n);
|
|
67
|
+
await (0, import_p_map.default)(dirsToRemove, (dir) => del(dir.dir), { concurrency: 20 });
|
|
68
|
+
} catch (e) {
|
|
69
|
+
}
|
|
70
|
+
}
|