@composable-os/cli 0.1.0-beta.13 → 0.1.0-beta.14

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.
@@ -16,8 +16,8 @@ import {
16
16
  pngInfo,
17
17
  runApp,
18
18
  writeBrand
19
- } from "./chunk-QJZGYJVV.js";
20
- import "./chunk-QQ3YSL5F.js";
19
+ } from "./chunk-5YDYQM6V.js";
20
+ import "./chunk-O37YUZ52.js";
21
21
  import "./chunk-3OGDWKJ3.js";
22
22
  import "./chunk-KGHA67HG.js";
23
23
  import "./chunk-SMJZIK2O.js";
@@ -5,11 +5,11 @@ import {
5
5
  listingLocales,
6
6
  listingText,
7
7
  loadClientProduct
8
- } from "./chunk-QJZGYJVV.js";
8
+ } from "./chunk-5YDYQM6V.js";
9
9
  import {
10
10
  CliError,
11
11
  str
12
- } from "./chunk-QQ3YSL5F.js";
12
+ } from "./chunk-O37YUZ52.js";
13
13
  import "./chunk-3OGDWKJ3.js";
14
14
  import "./chunk-KGHA67HG.js";
15
15
  import "./chunk-SMJZIK2O.js";
@@ -4,11 +4,11 @@ import {
4
4
  lineDiff,
5
5
  loadClientProduct,
6
6
  requiredPacks
7
- } from "./chunk-QJZGYJVV.js";
7
+ } from "./chunk-5YDYQM6V.js";
8
8
  import {
9
9
  CliError,
10
10
  str
11
- } from "./chunk-QQ3YSL5F.js";
11
+ } from "./chunk-O37YUZ52.js";
12
12
  import "./chunk-3OGDWKJ3.js";
13
13
  import "./chunk-KGHA67HG.js";
14
14
  import "./chunk-SMJZIK2O.js";
@@ -8,7 +8,7 @@ import {
8
8
  str,
9
9
  upgrade,
10
10
  verified
11
- } from "./chunk-QQ3YSL5F.js";
11
+ } from "./chunk-O37YUZ52.js";
12
12
  import {
13
13
  APP_PLATFORMS,
14
14
  AppBuildRefused,
@@ -105,7 +105,11 @@ import { createHash } from "node:crypto";
105
105
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
106
106
  import { dirname, join } from "node:path";
107
107
  var STATE_FILE = "composable-os.lock.json";
108
- var MODULES = { web: ["host.ts"], mobile: ["host.ts", "secure-store.ts", "secure-random.ts"] };
108
+ var HOST_MODULES = {
109
+ web: ["host.ts", "agreements.ts"],
110
+ mobile: ["host.ts", "secure-store.ts", "secure-random.ts"]
111
+ };
112
+ var MODULES = HOST_MODULES;
109
113
  var sha = (text) => createHash("sha256").update(text).digest("hex");
110
114
  var decode = (bytes) => new TextDecoder().decode(bytes);
111
115
  function readState(root) {
@@ -664,7 +668,7 @@ ${MOBILE_ENTRY}`));
664
668
  const skills = writeSkills(root, kit);
665
669
  const product = await loadClientProduct(root);
666
670
  if (mobile && product.mobile && kit.has("blocks/native-account/block.json")) {
667
- const { copyBlocks, saveLock } = await import("./blocks-DE4RRWPJ.js");
671
+ const { copyBlocks, saveLock } = await import("./blocks-6DZIP47W.js");
668
672
  const lock = {};
669
673
  copyBlocks(root, product, kit, version, ["native-account"], lock);
670
674
  saveLock(root, lock);
@@ -851,8 +855,8 @@ export const product = defineClientProduct(${JSON.stringify(product, null, 2)});
851
855
  added.push(`skills/ (${skills} skills)`);
852
856
  added.push(...await generateClients(root, defineClientProduct(product), kit, io));
853
857
  const hostModules = [
854
- [webDir, "web", ["host.ts"]],
855
- [mobileDir, "mobile", ["host.ts", "secure-store.ts", "secure-random.ts"]]
858
+ [webDir, "web", HOST_MODULES.web],
859
+ [mobileDir, "mobile", HOST_MODULES.mobile]
856
860
  ];
857
861
  for (const [app, kind, files] of hostModules) {
858
862
  if (!app) continue;
@@ -1398,7 +1402,7 @@ async function upgradeRepo(flags, deps) {
1398
1402
  if (version === product.platform.version) {
1399
1403
  io.out(`Already on ${version}. Checking the host modules against its template.`);
1400
1404
  upgradeHostModules(root, product, kit, version, io);
1401
- const { rewriteAccountSections: rewriteAccountSections2 } = await import("./blocks-DE4RRWPJ.js");
1405
+ const { rewriteAccountSections: rewriteAccountSections2 } = await import("./blocks-6DZIP47W.js");
1402
1406
  rewriteAccountSections2(root, product, kit, version, io);
1403
1407
  return packagesAndTypes(root, product, version, io);
1404
1408
  }
@@ -1419,7 +1423,7 @@ async function upgradeRepo(flags, deps) {
1419
1423
  const moved = await loadClientProduct(root);
1420
1424
  await generateClients(root, moved, kit, io);
1421
1425
  io.out(`Skills: ${writeSkills(root, kit)} replaced.`);
1422
- const { rewriteAccountSections } = await import("./blocks-DE4RRWPJ.js");
1426
+ const { rewriteAccountSections } = await import("./blocks-6DZIP47W.js");
1423
1427
  rewriteAccountSections(root, moved, kit, version, io);
1424
1428
  upgradeHostModules(root, moved, kit, version, io);
1425
1429
  return packagesAndTypes(root, moved, version, io);
@@ -2138,7 +2142,7 @@ async function runApp(argv, deps) {
2138
2142
  credentials,
2139
2143
  "build-info": buildInfo,
2140
2144
  record,
2141
- upload: async (flags2, d) => (await import("./app-upload-YJVEKZC6.js")).upload(flags2, d)
2145
+ upload: async (flags2, d) => (await import("./app-upload-LH4PXKI4.js")).upload(flags2, d)
2142
2146
  };
2143
2147
  const command = commands[argv[0] ?? ""];
2144
2148
  if (!command) {
@@ -1188,7 +1188,7 @@ async function ext(argv, deps) {
1188
1188
  }
1189
1189
  async function client(argv, deps) {
1190
1190
  if (argv[0] === "generate" && !argv.includes("--out")) {
1191
- const repo = await import("./client-repo-NNUCHQ2Y.js");
1191
+ const repo = await import("./client-repo-MPCPTXLF.js");
1192
1192
  const parsed = parseArgs(["client", ...argv.slice(1)]);
1193
1193
  const dir = str(parsed.flags, "dir") ?? process.cwd();
1194
1194
  if (repo.isClientRepo(dir)) {
@@ -1399,7 +1399,7 @@ async function runCli(argv, input) {
1399
1399
  if (argv[0] === "programs") return programsCommand(argv.slice(1), deps);
1400
1400
  if (argv[0] === "ext") return ext(argv.slice(1), deps);
1401
1401
  if (argv[0] === "client") return client(argv.slice(1), deps);
1402
- if (argv[0] === "app") return (await import("./app-RPRZMLU5.js")).runApp(argv.slice(1), deps);
1402
+ if (argv[0] === "app") return (await import("./app-OSPZHKOI.js")).runApp(argv.slice(1), deps);
1403
1403
  const positional = ["create", "add", "diff"].includes(argv[0] ?? "") && argv[1] && !argv[1].startsWith("-") ? [argv[1]] : [];
1404
1404
  let parsed;
1405
1405
  try {
@@ -1412,8 +1412,8 @@ async function runCli(argv, input) {
1412
1412
  deps.io.out(HELP);
1413
1413
  return argv.length ? 0 : 2;
1414
1414
  }
1415
- const repo = await import("./client-repo-NNUCHQ2Y.js");
1416
- const blocks = await import("./blocks-DE4RRWPJ.js");
1415
+ const repo = await import("./client-repo-MPCPTXLF.js");
1416
+ const blocks = await import("./blocks-6DZIP47W.js");
1417
1417
  const commands = {
1418
1418
  install,
1419
1419
  // In a client repo (its product.ts is a client product), `cos upgrade` moves the repo to a
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  Redactor,
8
8
  runCli,
9
9
  terminalIo
10
- } from "./chunk-QQ3YSL5F.js";
10
+ } from "./chunk-O37YUZ52.js";
11
11
  import "./chunk-3OGDWKJ3.js";
12
12
  import "./chunk-KGHA67HG.js";
13
13
  import "./chunk-SMJZIK2O.js";
@@ -23,8 +23,8 @@ import {
23
23
  upgradeRepo,
24
24
  withEnvBinding,
25
25
  withTsExtensions
26
- } from "./chunk-QJZGYJVV.js";
27
- import "./chunk-QQ3YSL5F.js";
26
+ } from "./chunk-5YDYQM6V.js";
27
+ import "./chunk-O37YUZ52.js";
28
28
  import "./chunk-3OGDWKJ3.js";
29
29
  import "./chunk-KGHA67HG.js";
30
30
  import "./chunk-SMJZIK2O.js";
package/dist/create.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  Redactor,
8
8
  runCli,
9
9
  terminalIo
10
- } from "./chunk-QQ3YSL5F.js";
10
+ } from "./chunk-O37YUZ52.js";
11
11
  import "./chunk-3OGDWKJ3.js";
12
12
  import "./chunk-KGHA67HG.js";
13
13
  import "./chunk-SMJZIK2O.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composable-os/cli",
3
- "version": "0.1.0-beta.13",
3
+ "version": "0.1.0-beta.14",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "type": "module",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "esbuild": "0.28.2",
31
31
  "typescript": "6.0.3",
32
- "@composable-os/sdk": "0.1.0-beta.13",
32
+ "@composable-os/sdk": "0.1.0-beta.14",
33
33
  "zod": "4.6.7"
34
34
  }
35
35
  }