@clawops/cli 1.2.1 → 1.4.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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readLocalState
4
- } from "./chunk-BRPU7AQC.js";
4
+ } from "./chunk-A2I76FTA.js";
5
5
  import {
6
6
  getConfigDir,
7
7
  requireConfig
@@ -56,17 +56,17 @@ function makeProviderProxy(name) {
56
56
  if (resolved) return resolved;
57
57
  switch (name) {
58
58
  case "gcp": {
59
- const mod = await import("./gcp-SKURG3L6.js");
59
+ const mod = await import("./gcp-BXDTC6EK.js");
60
60
  resolved = mod.default;
61
61
  return resolved;
62
62
  }
63
63
  case "aws": {
64
- const mod = await import("./aws-KQBWY43W.js");
64
+ const mod = await import("./aws-FRE2JVAZ.js");
65
65
  resolved = mod.default;
66
66
  return resolved;
67
67
  }
68
68
  case "azure": {
69
- const mod = await import("./azure-4EJFVJZL.js");
69
+ const mod = await import("./azure-PVC3AQVC.js");
70
70
  resolved = mod.default;
71
71
  return resolved;
72
72
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-YTH4L2GN.js";
5
5
  import {
6
6
  buildContext
7
- } from "./chunk-ACYJBSLJ.js";
7
+ } from "./chunk-T5EX55GP.js";
8
8
  import {
9
9
  getConfig
10
10
  } from "./chunk-CX5SL5HP.js";
@@ -45,7 +45,7 @@ async function generatePlan(intent, _opts) {
45
45
  "plan/apply is not supported for the local provider. Use `clawops up` directly."
46
46
  );
47
47
  }
48
- const { version } = await import("./package-SE3M4NJA.js");
48
+ const { version } = await import("./package-WAJRGBBM.js");
49
49
  const config = getConfig();
50
50
  const instanceType = intent.instanceType ?? "small";
51
51
  const openclawVersion = intent.openclawVersion ?? "latest";
@@ -20,7 +20,7 @@ async function execWithFallbackSudo(session, cmd, signal) {
20
20
  async function readRemoteConfig(session, signal) {
21
21
  const os = await detectOS(session, signal);
22
22
  const configPath = configPathForOS(os);
23
- const result = await session.exec(`cat ${configPath}`, signal);
23
+ const result = os === "Darwin" ? await session.exec(`cat ${configPath}`, signal) : await execWithFallbackSudo(session, `cat ${configPath}`, signal);
24
24
  if (result.code !== 0) {
25
25
  throw new Error(`Cannot read ${configPath}: ${result.stderr}`);
26
26
  }
@@ -2,18 +2,21 @@
2
2
  import {
3
3
  validatePlan
4
4
  } from "./chunk-YTH4L2GN.js";
5
+ import {
6
+ saveOverlay
7
+ } from "./chunk-6ZFIFDBJ.js";
5
8
  import {
6
9
  resolveSecrets
7
10
  } from "./chunk-BOPSG2LI.js";
8
11
  import {
9
12
  buildContext
10
- } from "./chunk-ACYJBSLJ.js";
13
+ } from "./chunk-T5EX55GP.js";
11
14
  import {
12
15
  atomicWriteConfig,
13
16
  deepMerge,
14
17
  readRemoteConfig,
15
18
  restartGateway
16
- } from "./chunk-UDNZUSKA.js";
19
+ } from "./chunk-ZFNPM2WG.js";
17
20
  import {
18
21
  UsageError
19
22
  } from "./chunk-KGXPLI7W.js";
@@ -106,6 +109,7 @@ async function applyConfigOverlay(plan, outputs, ctx, signal) {
106
109
  });
107
110
  await atomicWriteConfig(session, merged, signal);
108
111
  await restartGateway(session, signal);
112
+ saveOverlay(plan.spec.stackName, configOverlay, plan.spec.secrets ?? []);
109
113
  } finally {
110
114
  session.close();
111
115
  }