@clawops/cli 1.5.0 → 1.6.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/README.md +1 -0
- package/dist/{apply-5RREMN3L.js → apply-SI3JKS4Z.js} +2 -2
- package/dist/{aws-FRE2JVAZ.js → aws-D7Y6LCGK.js} +52 -90
- package/dist/{azure-PVC3AQVC.js → azure-JQAMNVHN.js} +15 -56
- package/dist/{bootstrap-G4UZ2FKH.js → bootstrap-RY4VOSDJ.js} +2 -2
- package/dist/{chunk-IVX62LFO.js → chunk-72FF7IK2.js} +2 -2
- package/dist/{chunk-R5S6IXBE.js → chunk-C5NDLOK2.js} +6 -5
- package/dist/{chunk-4U3LTLWZ.js → chunk-GJEF6UQA.js} +1 -0
- package/dist/{chunk-ZVOEQCNW.js → chunk-LCKD7L7X.js} +1 -1
- package/dist/{chunk-ZONXY3C6.js → chunk-QHGFENYR.js} +2 -2
- package/dist/{chunk-T5EX55GP.js → chunk-QI75OVJK.js} +3 -3
- package/dist/chunk-XKT42M34.js +72 -0
- package/dist/cli.js +171 -55
- package/dist/{context-PSGEX2D7.js → context-KPKBOWOP.js} +1 -1
- package/dist/firewall-XQGO7HWK.js +51 -0
- package/dist/{gcp-BXDTC6EK.js → gcp-6FT2A45S.js} +14 -63
- package/dist/{generate-2QGKYR42.js → generate-YV7226Q7.js} +2 -2
- package/dist/{package-QLDA65A3.js → package-EW3FS257.js} +1 -1
- package/dist/{pool-FBFHATDG.js → pool-JZGKPP6K.js} +2 -2
- package/dist/{server-LOL2NUJ2.js → server-3DEZHUWB.js} +9 -9
- package/dist/{ssh-IQXNME3D.js → ssh-E2AMBPZY.js} +1 -1
- package/package.json +1 -1
- package/dist/firewall-YYDOWDDP.js +0 -36
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-3QJBNAHW.js";
|
|
5
5
|
import {
|
|
6
6
|
generatePlan
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-72FF7IK2.js";
|
|
8
8
|
import {
|
|
9
9
|
applyPlan
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QHGFENYR.js";
|
|
11
11
|
import {
|
|
12
12
|
validatePlan
|
|
13
13
|
} from "./chunk-YTH4L2GN.js";
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
handleConfigValidate,
|
|
24
24
|
okText,
|
|
25
25
|
resolveConn
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-C5NDLOK2.js";
|
|
27
27
|
import {
|
|
28
28
|
buildContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QI75OVJK.js";
|
|
30
30
|
import {
|
|
31
31
|
acquireSession,
|
|
32
32
|
drainPool
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-LCKD7L7X.js";
|
|
34
|
+
import "./chunk-GJEF6UQA.js";
|
|
35
35
|
import "./chunk-ZFNPM2WG.js";
|
|
36
36
|
import "./chunk-A2I76FTA.js";
|
|
37
37
|
import {
|
|
@@ -630,7 +630,7 @@ async function handleUp(input, server) {
|
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
const { localOpts } = stackConfig;
|
|
633
|
-
const { localBootstrap } = await import("./bootstrap-
|
|
633
|
+
const { localBootstrap } = await import("./bootstrap-RY4VOSDJ.js");
|
|
634
634
|
const ac = new AbortController();
|
|
635
635
|
const state = await localBootstrap({
|
|
636
636
|
host: localOpts.host,
|
|
@@ -853,7 +853,7 @@ async function handleTaskStatus(input, _server) {
|
|
|
853
853
|
|
|
854
854
|
// src/mcp/tools/cli/monitor.ts
|
|
855
855
|
async function handleMonitor(input, _server) {
|
|
856
|
-
const { acquireSession: acquireSession2, drainPool: drainPool2 } = await import("./pool-
|
|
856
|
+
const { acquireSession: acquireSession2, drainPool: drainPool2 } = await import("./pool-JZGKPP6K.js");
|
|
857
857
|
const ctx = buildContext({ stack: input.stackName });
|
|
858
858
|
const tailLines = input.tailLines ?? 5;
|
|
859
859
|
let conn;
|
|
@@ -1305,7 +1305,7 @@ If none of the above resolves the issue:
|
|
|
1305
1305
|
|
|
1306
1306
|
// src/mcp/server.ts
|
|
1307
1307
|
async function serveMcp(opts) {
|
|
1308
|
-
const { version } = await import("./package-
|
|
1308
|
+
const { version } = await import("./package-EW3FS257.js");
|
|
1309
1309
|
const server = new McpServer({ name: "clawops", version });
|
|
1310
1310
|
registerTools(server, opts);
|
|
1311
1311
|
registerResources(server);
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/providers/firewall.ts
|
|
4
|
-
function resolveIngressCidrs(accessMode, allowedCidrs, portOverride, detectedIp) {
|
|
5
|
-
if (portOverride.trim()) {
|
|
6
|
-
return portOverride.split(",").map((s) => s.trim()).filter(Boolean);
|
|
7
|
-
}
|
|
8
|
-
switch (accessMode) {
|
|
9
|
-
case "restricted": {
|
|
10
|
-
if (!allowedCidrs.trim()) return [];
|
|
11
|
-
return allowedCidrs.split(",").map((s) => s.trim()).filter(Boolean);
|
|
12
|
-
}
|
|
13
|
-
case "auto": {
|
|
14
|
-
if (!detectedIp.trim()) return [];
|
|
15
|
-
const ip = detectedIp.trim();
|
|
16
|
-
return [ip.includes("/") ? ip : `${ip}/32`];
|
|
17
|
-
}
|
|
18
|
-
case "open":
|
|
19
|
-
return ["0.0.0.0/0"];
|
|
20
|
-
default:
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
async function detectEgressIp(checkUrl) {
|
|
25
|
-
try {
|
|
26
|
-
const res = await fetch(checkUrl, { signal: AbortSignal.timeout(5e3) });
|
|
27
|
-
if (!res.ok) return "";
|
|
28
|
-
return (await res.text()).trim();
|
|
29
|
-
} catch {
|
|
30
|
-
return "";
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
detectEgressIp,
|
|
35
|
-
resolveIngressCidrs
|
|
36
|
-
};
|