@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.
- package/README.md +98 -1
- package/dist/{apply-KBF7OPWL.js → apply-5RREMN3L.js} +5 -4
- package/dist/{aws-KQBWY43W.js → aws-FRE2JVAZ.js} +9 -4
- package/dist/{azure-4EJFVJZL.js → azure-PVC3AQVC.js} +11 -4
- package/dist/{bootstrap-UYCOEJQX.js → bootstrap-G4UZ2FKH.js} +3 -3
- package/dist/chunk-6ZFIFDBJ.js +41 -0
- package/dist/{chunk-BRPU7AQC.js → chunk-A2I76FTA.js} +13 -1
- package/dist/chunk-JYQZJMD3.js +764 -0
- package/dist/{chunk-ACYJBSLJ.js → chunk-T5EX55GP.js} +4 -4
- package/dist/{chunk-SSB6SGPQ.js → chunk-UAA6YOOP.js} +2 -2
- package/dist/{chunk-UDNZUSKA.js → chunk-ZFNPM2WG.js} +1 -1
- package/dist/{chunk-LU63NZD3.js → chunk-ZONXY3C6.js} +6 -2
- package/dist/cli.js +369 -79
- package/dist/{context-VUAYRAJY.js → context-PSGEX2D7.js} +2 -2
- package/dist/{gcp-SKURG3L6.js → gcp-BXDTC6EK.js} +60 -17
- package/dist/{generate-PZPLG3ZM.js → generate-Z7DBMANX.js} +3 -3
- package/dist/overlay-store-ADZPD7EU.js +11 -0
- package/dist/{package-SE3M4NJA.js → package-WAJRGBBM.js} +2 -1
- package/dist/{remote-config-JQ77SRC2.js → remote-config-QF5TT7GU.js} +1 -1
- package/dist/{server-4DNHLGEG.js → server-IWLZJ4EU.js} +98 -24
- package/dist/state-PRBIIN7I.js +17 -0
- package/package.json +2 -1
- package/dist/chunk-QJ6ERXHN.js +0 -266
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readLocalState
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
+
} from "./chunk-T5EX55GP.js";
|
|
11
14
|
import {
|
|
12
15
|
atomicWriteConfig,
|
|
13
16
|
deepMerge,
|
|
14
17
|
readRemoteConfig,
|
|
15
18
|
restartGateway
|
|
16
|
-
} from "./chunk-
|
|
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
|
}
|