@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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // package.json
4
4
  var name = "@clawops/cli";
5
- var version = "1.5.0";
5
+ var version = "1.6.0";
6
6
  var description = "Deploy and manage self-hosted OpenClaw instances across clouds";
7
7
  var type = "module";
8
8
  var bin = {
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  acquireSession,
4
4
  drainPool
5
- } from "./chunk-ZVOEQCNW.js";
6
- import "./chunk-4U3LTLWZ.js";
5
+ } from "./chunk-LCKD7L7X.js";
6
+ import "./chunk-GJEF6UQA.js";
7
7
  import "./chunk-KGXPLI7W.js";
8
8
  export {
9
9
  acquireSession,
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-3QJBNAHW.js";
5
5
  import {
6
6
  generatePlan
7
- } from "./chunk-IVX62LFO.js";
7
+ } from "./chunk-72FF7IK2.js";
8
8
  import {
9
9
  applyPlan
10
- } from "./chunk-ZONXY3C6.js";
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-R5S6IXBE.js";
26
+ } from "./chunk-C5NDLOK2.js";
27
27
  import {
28
28
  buildContext
29
- } from "./chunk-T5EX55GP.js";
29
+ } from "./chunk-QI75OVJK.js";
30
30
  import {
31
31
  acquireSession,
32
32
  drainPool
33
- } from "./chunk-ZVOEQCNW.js";
34
- import "./chunk-4U3LTLWZ.js";
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-G4UZ2FKH.js");
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-FBFHATDG.js");
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-QLDA65A3.js");
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);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  connect
4
- } from "./chunk-4U3LTLWZ.js";
4
+ } from "./chunk-GJEF6UQA.js";
5
5
  import "./chunk-KGXPLI7W.js";
6
6
  export {
7
7
  connect
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawops/cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Deploy and manage self-hosted OpenClaw instances across clouds",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- };