@tesselate-digital/notion-agent-hive 0.0.10 → 0.0.11
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 +8 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,9 +18,10 @@ var __export = (target, all) => {
|
|
|
18
18
|
import { readFileSync } from "fs";
|
|
19
19
|
import { join } from "path";
|
|
20
20
|
var COORDINATOR_PROMPT = readFileSync(join(import.meta.dir, "../../prompts/dist/coordinator.md"), "utf-8");
|
|
21
|
+
var { version } = JSON.parse(readFileSync(join(import.meta.dir, "../../package.json"), "utf-8"));
|
|
21
22
|
function createCoordinatorAgent(model, variant) {
|
|
22
23
|
const definition = {
|
|
23
|
-
name:
|
|
24
|
+
name: `notion agent hive v${version}`,
|
|
24
25
|
config: {
|
|
25
26
|
description: "Coordinator agent for Notion workflow orchestration",
|
|
26
27
|
mode: "primary",
|
|
@@ -1179,11 +1180,11 @@ function datetimeRegex(args) {
|
|
|
1179
1180
|
regex = `${regex}(${opts.join("|")})`;
|
|
1180
1181
|
return new RegExp(`^${regex}$`);
|
|
1181
1182
|
}
|
|
1182
|
-
function isValidIP(ip,
|
|
1183
|
-
if ((
|
|
1183
|
+
function isValidIP(ip, version2) {
|
|
1184
|
+
if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) {
|
|
1184
1185
|
return true;
|
|
1185
1186
|
}
|
|
1186
|
-
if ((
|
|
1187
|
+
if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) {
|
|
1187
1188
|
return true;
|
|
1188
1189
|
}
|
|
1189
1190
|
return false;
|
|
@@ -1210,11 +1211,11 @@ function isValidJWT(jwt, alg) {
|
|
|
1210
1211
|
return false;
|
|
1211
1212
|
}
|
|
1212
1213
|
}
|
|
1213
|
-
function isValidCidr(ip,
|
|
1214
|
-
if ((
|
|
1214
|
+
function isValidCidr(ip, version2) {
|
|
1215
|
+
if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) {
|
|
1215
1216
|
return true;
|
|
1216
1217
|
}
|
|
1217
|
-
if ((
|
|
1218
|
+
if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) {
|
|
1218
1219
|
return true;
|
|
1219
1220
|
}
|
|
1220
1221
|
return false;
|