@clawops/cli 1.5.0 → 1.7.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.
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ REPO_URL,
4
+ chalk,
5
+ failure,
6
+ info,
7
+ printCta,
8
+ spinner,
9
+ success,
10
+ warn
11
+ } from "./chunk-Q7NQY5HV.js";
12
+ export {
13
+ REPO_URL,
14
+ chalk,
15
+ failure,
16
+ info,
17
+ printCta,
18
+ spinner,
19
+ success,
20
+ warn
21
+ };
@@ -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.7.0";
6
6
  var description = "Deploy and manage self-hosted OpenClaw instances across clouds";
7
7
  var type = "module";
8
8
  var bin = {
@@ -41,6 +41,10 @@ var scripts = {
41
41
  release: "pnpm build && changeset publish"
42
42
  };
43
43
  var dependencies = {
44
+ "@aws-sdk/client-cloudwatch-logs": "^3.1063.0",
45
+ "@aws-sdk/client-ec2": "^3.1063.0",
46
+ "@aws-sdk/client-guardduty": "^3.1063.0",
47
+ "@aws-sdk/client-iam": "^3.1063.0",
44
48
  "@modelcontextprotocol/sdk": "^1.0.0",
45
49
  "@pulumi/aws": "^6.0.0",
46
50
  "@pulumi/azure-native": "^2.0.0",
@@ -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-7KLLWDBA.js";
8
8
  import {
9
9
  applyPlan
10
- } from "./chunk-ZONXY3C6.js";
10
+ } from "./chunk-ISFHLA4G.js";
11
11
  import {
12
12
  validatePlan
13
13
  } from "./chunk-YTH4L2GN.js";
@@ -23,16 +23,17 @@ import {
23
23
  handleConfigValidate,
24
24
  okText,
25
25
  resolveConn
26
- } from "./chunk-R5S6IXBE.js";
26
+ } from "./chunk-CG3Y7Y2R.js";
27
+ import "./chunk-ZFNPM2WG.js";
27
28
  import {
28
29
  buildContext
29
- } from "./chunk-T5EX55GP.js";
30
+ } from "./chunk-3MFZ7E74.js";
30
31
  import {
31
32
  acquireSession,
32
33
  drainPool
33
- } from "./chunk-ZVOEQCNW.js";
34
- import "./chunk-4U3LTLWZ.js";
35
- import "./chunk-ZFNPM2WG.js";
34
+ } from "./chunk-LCKD7L7X.js";
35
+ import "./chunk-GJEF6UQA.js";
36
+ import "./chunk-Q7NQY5HV.js";
36
37
  import "./chunk-A2I76FTA.js";
37
38
  import {
38
39
  getConfig,
@@ -630,7 +631,7 @@ async function handleUp(input, server) {
630
631
  );
631
632
  }
632
633
  const { localOpts } = stackConfig;
633
- const { localBootstrap } = await import("./bootstrap-G4UZ2FKH.js");
634
+ const { localBootstrap } = await import("./bootstrap-RY4VOSDJ.js");
634
635
  const ac = new AbortController();
635
636
  const state = await localBootstrap({
636
637
  host: localOpts.host,
@@ -853,7 +854,7 @@ async function handleTaskStatus(input, _server) {
853
854
 
854
855
  // src/mcp/tools/cli/monitor.ts
855
856
  async function handleMonitor(input, _server) {
856
- const { acquireSession: acquireSession2, drainPool: drainPool2 } = await import("./pool-FBFHATDG.js");
857
+ const { acquireSession: acquireSession2, drainPool: drainPool2 } = await import("./pool-JZGKPP6K.js");
857
858
  const ctx = buildContext({ stack: input.stackName });
858
859
  const tailLines = input.tailLines ?? 5;
859
860
  let conn;
@@ -1305,7 +1306,7 @@ If none of the above resolves the issue:
1305
1306
 
1306
1307
  // src/mcp/server.ts
1307
1308
  async function serveMcp(opts) {
1308
- const { version } = await import("./package-QLDA65A3.js");
1309
+ const { version } = await import("./package-7WOZMHSO.js");
1309
1310
  const server = new McpServer({ name: "clawops", version });
1310
1311
  registerTools(server, opts);
1311
1312
  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.7.0",
4
4
  "description": "Deploy and manage self-hosted OpenClaw instances across clouds",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,6 +38,10 @@
38
38
  "release": "pnpm build && changeset publish"
39
39
  },
40
40
  "dependencies": {
41
+ "@aws-sdk/client-cloudwatch-logs": "^3.1063.0",
42
+ "@aws-sdk/client-ec2": "^3.1063.0",
43
+ "@aws-sdk/client-guardduty": "^3.1063.0",
44
+ "@aws-sdk/client-iam": "^3.1063.0",
41
45
  "@modelcontextprotocol/sdk": "^1.0.0",
42
46
  "@pulumi/aws": "^6.0.0",
43
47
  "@pulumi/azure-native": "^2.0.0",
@@ -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
- };