@composable-os/cli 0.1.0-beta.14 → 0.1.0-beta.15
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/dist/{accounts-GOCNY6WI.js → accounts-UYSD32YT.js} +2 -2
- package/dist/{app-OSPZHKOI.js → app-JP5XQ7OR.js} +5 -5
- package/dist/{app-upload-LH4PXKI4.js → app-upload-TFOVJFHE.js} +5 -5
- package/dist/{blocks-6DZIP47W.js → blocks-2ZNI77V2.js} +5 -5
- package/dist/{chunk-ZJSFX4RD.js → chunk-6QJUMQUR.js} +6 -1
- package/dist/{chunk-5YDYQM6V.js → chunk-CUUFXHHG.js} +12 -12
- package/dist/{chunk-Z7OVQ6BC.js → chunk-JFAYPQ6C.js} +2 -2
- package/dist/{chunk-O37YUZ52.js → chunk-KKKVC7OR.js} +9 -9
- package/dist/{chunk-3OGDWKJ3.js → chunk-KNUHUPGX.js} +1 -1
- package/dist/{chunk-HAYF4G5V.js → chunk-L67L5J7T.js} +2 -2
- package/dist/{chunk-5D7BDF4Y.js → chunk-NH6DW3XZ.js} +1 -1
- package/dist/{chunk-HCG6T53D.js → chunk-OVIQ2AS6.js} +12 -12
- package/dist/{chunk-SMJZIK2O.js → chunk-RE7XHPMH.js} +1 -1
- package/dist/{chunk-O3R4FS2J.js → chunk-VIKNWMBD.js} +1 -1
- package/dist/{chunk-2B6YUYZV.js → chunk-XYLRUKF6.js} +4 -4
- package/dist/{cli-OKQHHSOE.js → cli-H3TXCKDF.js} +8 -8
- package/dist/{cli-VYSD2S4Z.js → cli-H4ROA2Y3.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{client-repo-MPCPTXLF.js → client-repo-6Y2CMY6X.js} +5 -5
- package/dist/create.js +5 -5
- package/dist/{invoke-MRONRZ5Q.js → invoke-YEZCS5UE.js} +6 -6
- package/dist/{moves-UAUCMWL5.js → moves-XDS7NB4M.js} +3 -3
- package/dist/{person-YOZTFV4Q.js → person-SDJXD4C5.js} +2 -2
- package/dist/{plan-on-sale-H4F26YIN.js → plan-on-sale-LZV3PQHN.js} +3 -3
- package/dist/{products-GCQLSZ3U.js → products-6P5WC43N.js} +2 -2
- package/dist/{src-PHRELWN5.js → src-4EYQUG7M.js} +7 -7
- package/package.json +2 -2
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
normaliseCustomerEmail,
|
|
18
18
|
sameEmailPeople,
|
|
19
19
|
samePeople
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XYLRUKF6.js";
|
|
21
21
|
import "./chunk-KMFMD52Z.js";
|
|
22
22
|
import "./chunk-KGHA67HG.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-6QJUMQUR.js";
|
|
24
24
|
import "./chunk-KFHKNXGH.js";
|
|
25
25
|
import "./chunk-RSEWEFAV.js";
|
|
26
26
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
pngInfo,
|
|
17
17
|
runApp,
|
|
18
18
|
writeBrand
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-CUUFXHHG.js";
|
|
20
|
+
import "./chunk-KKKVC7OR.js";
|
|
21
|
+
import "./chunk-KNUHUPGX.js";
|
|
22
22
|
import "./chunk-KGHA67HG.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RE7XHPMH.js";
|
|
24
|
+
import "./chunk-6QJUMQUR.js";
|
|
25
25
|
import "./chunk-5KSXSK7Y.js";
|
|
26
26
|
export {
|
|
27
27
|
APP_SECRETS,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
listingLocales,
|
|
6
6
|
listingText,
|
|
7
7
|
loadClientProduct
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CUUFXHHG.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
str
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-KKKVC7OR.js";
|
|
13
|
+
import "./chunk-KNUHUPGX.js";
|
|
14
14
|
import "./chunk-KGHA67HG.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-RE7XHPMH.js";
|
|
16
|
+
import "./chunk-6QJUMQUR.js";
|
|
17
17
|
import "./chunk-5KSXSK7Y.js";
|
|
18
18
|
|
|
19
19
|
// src/app-upload.ts
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
lineDiff,
|
|
5
5
|
loadClientProduct,
|
|
6
6
|
requiredPacks
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUUFXHHG.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
str
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KKKVC7OR.js";
|
|
12
|
+
import "./chunk-KNUHUPGX.js";
|
|
13
13
|
import "./chunk-KGHA67HG.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-RE7XHPMH.js";
|
|
15
|
+
import "./chunk-6QJUMQUR.js";
|
|
16
16
|
import "./chunk-5KSXSK7Y.js";
|
|
17
17
|
|
|
18
18
|
// src/blocks.ts
|
|
@@ -232,7 +232,12 @@ function clientNameMaps(release, client, manifest) {
|
|
|
232
232
|
);
|
|
233
233
|
return {
|
|
234
234
|
workers: map(manifest.workers.map((w) => w.name)),
|
|
235
|
-
|
|
235
|
+
// A Durable Object class (`<worker>:<Class>` in the manifest) is not a named resource of the
|
|
236
|
+
// account: it belongs to its Worker, which the workers map renames. Listing it here made the
|
|
237
|
+
// installer refuse the names (`--names`), so no client product could be installed.
|
|
238
|
+
resources: map(
|
|
239
|
+
manifest.resources.filter((r) => r.type !== "durable_object").map((r) => r.name)
|
|
240
|
+
)
|
|
236
241
|
};
|
|
237
242
|
}
|
|
238
243
|
var PRODUCT_LABEL_VAR = "COS_PRODUCT_LABEL";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
str,
|
|
9
9
|
upgrade,
|
|
10
10
|
verified
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KKKVC7OR.js";
|
|
12
12
|
import {
|
|
13
13
|
APP_PLATFORMS,
|
|
14
14
|
AppBuildRefused,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
releaseAssetNames,
|
|
24
24
|
sha256Hex,
|
|
25
25
|
toBase64
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KNUHUPGX.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_PRODUCT,
|
|
29
29
|
products
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RE7XHPMH.js";
|
|
31
31
|
import {
|
|
32
32
|
LIVE_ENVIRONMENT,
|
|
33
33
|
appBuild,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
gatekeeperSettings,
|
|
42
42
|
isLiveEnvironment,
|
|
43
43
|
mobileRole
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6QJUMQUR.js";
|
|
45
45
|
|
|
46
46
|
// src/app.ts
|
|
47
47
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
@@ -439,8 +439,8 @@ function appClients(product) {
|
|
|
439
439
|
return out;
|
|
440
440
|
}
|
|
441
441
|
async function generateClients(root, product, kit, io) {
|
|
442
|
-
const { releaseContract, renderClient } = await import("./src-
|
|
443
|
-
const { loadExtension } = await import("./cli-
|
|
442
|
+
const { releaseContract, renderClient } = await import("./src-4EYQUG7M.js");
|
|
443
|
+
const { loadExtension } = await import("./cli-H3TXCKDF.js");
|
|
444
444
|
const perAudience = ["customer", "public", "staff"].map((audience) => {
|
|
445
445
|
const bytes = kit.get(`${KIT.contract}${audience}.json`);
|
|
446
446
|
if (!bytes) throw new CliError(`The release's client kit has no ${audience} contract.`);
|
|
@@ -458,7 +458,7 @@ async function generateClients(root, product, kit, io) {
|
|
|
458
458
|
const roles = product.mobile?.roles ?? [];
|
|
459
459
|
const owner = product.mobile?.owner === true;
|
|
460
460
|
if ((roles.length || owner) && product.mobile) {
|
|
461
|
-
const { renderOwnerClient, renderRoleClient } = await import("./src-
|
|
461
|
+
const { renderOwnerClient, renderRoleClient } = await import("./src-4EYQUG7M.js");
|
|
462
462
|
const rolesFile = kit.get(`${KIT.contract}roles.json`);
|
|
463
463
|
if (!rolesFile) {
|
|
464
464
|
throw new CliError(
|
|
@@ -668,7 +668,7 @@ ${MOBILE_ENTRY}`));
|
|
|
668
668
|
const skills = writeSkills(root, kit);
|
|
669
669
|
const product = await loadClientProduct(root);
|
|
670
670
|
if (mobile && product.mobile && kit.has("blocks/native-account/block.json")) {
|
|
671
|
-
const { copyBlocks, saveLock } = await import("./blocks-
|
|
671
|
+
const { copyBlocks, saveLock } = await import("./blocks-2ZNI77V2.js");
|
|
672
672
|
const lock = {};
|
|
673
673
|
copyBlocks(root, product, kit, version, ["native-account"], lock);
|
|
674
674
|
saveLock(root, lock);
|
|
@@ -1018,7 +1018,7 @@ function orgExtensionSources(root) {
|
|
|
1018
1018
|
async function checkOrgExtensions(root, io) {
|
|
1019
1019
|
const dirs = orgExtensionDirs(root);
|
|
1020
1020
|
if (!dirs.length) return true;
|
|
1021
|
-
const { runExt } = await import("./cli-
|
|
1021
|
+
const { runExt } = await import("./cli-H4ROA2Y3.js");
|
|
1022
1022
|
let ok = true;
|
|
1023
1023
|
for (const dir of dirs) {
|
|
1024
1024
|
io.out(`cos ext check ${relative2(root, dir)}`);
|
|
@@ -1402,7 +1402,7 @@ async function upgradeRepo(flags, deps) {
|
|
|
1402
1402
|
if (version === product.platform.version) {
|
|
1403
1403
|
io.out(`Already on ${version}. Checking the host modules against its template.`);
|
|
1404
1404
|
upgradeHostModules(root, product, kit, version, io);
|
|
1405
|
-
const { rewriteAccountSections: rewriteAccountSections2 } = await import("./blocks-
|
|
1405
|
+
const { rewriteAccountSections: rewriteAccountSections2 } = await import("./blocks-2ZNI77V2.js");
|
|
1406
1406
|
rewriteAccountSections2(root, product, kit, version, io);
|
|
1407
1407
|
return packagesAndTypes(root, product, version, io);
|
|
1408
1408
|
}
|
|
@@ -1423,7 +1423,7 @@ async function upgradeRepo(flags, deps) {
|
|
|
1423
1423
|
const moved = await loadClientProduct(root);
|
|
1424
1424
|
await generateClients(root, moved, kit, io);
|
|
1425
1425
|
io.out(`Skills: ${writeSkills(root, kit)} replaced.`);
|
|
1426
|
-
const { rewriteAccountSections } = await import("./blocks-
|
|
1426
|
+
const { rewriteAccountSections } = await import("./blocks-2ZNI77V2.js");
|
|
1427
1427
|
rewriteAccountSections(root, moved, kit, version, io);
|
|
1428
1428
|
upgradeHostModules(root, moved, kit, version, io);
|
|
1429
1429
|
return packagesAndTypes(root, moved, version, io);
|
|
@@ -2142,7 +2142,7 @@ async function runApp(argv, deps) {
|
|
|
2142
2142
|
credentials,
|
|
2143
2143
|
"build-info": buildInfo,
|
|
2144
2144
|
record,
|
|
2145
|
-
upload: async (flags2, d) => (await import("./app-upload-
|
|
2145
|
+
upload: async (flags2, d) => (await import("./app-upload-TFOVJFHE.js")).upload(flags2, d)
|
|
2146
2146
|
};
|
|
2147
2147
|
const command = commands[argv[0] ?? ""];
|
|
2148
2148
|
if (!command) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadOrderRow,
|
|
8
8
|
normaliseCustomerEmail,
|
|
9
9
|
sameEmailPeople
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XYLRUKF6.js";
|
|
11
11
|
import {
|
|
12
12
|
UNREADABLE,
|
|
13
13
|
assertCreateRules,
|
|
@@ -81,7 +81,7 @@ async function personForAddress(ctx, address, options) {
|
|
|
81
81
|
}
|
|
82
82
|
const creator = await creatorFor(ctx.db, email);
|
|
83
83
|
if (!creator) throw new ConfigError("There is no admin to create the Person for");
|
|
84
|
-
const { personCreate } = await import("./person-
|
|
84
|
+
const { personCreate } = await import("./person-SDJXD4C5.js");
|
|
85
85
|
const asCreator = Object.create(ctx, {
|
|
86
86
|
user: { value: creator },
|
|
87
87
|
actor: { value: "automation" },
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
withDeploymentVar,
|
|
44
44
|
workersDevHostname,
|
|
45
45
|
writeDeploymentState
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KNUHUPGX.js";
|
|
47
47
|
import {
|
|
48
48
|
PROVIDER_INFO,
|
|
49
49
|
ROLE_PRESETS,
|
|
@@ -53,12 +53,12 @@ import {
|
|
|
53
53
|
import {
|
|
54
54
|
DEFAULT_PRODUCT,
|
|
55
55
|
products
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-RE7XHPMH.js";
|
|
57
57
|
import {
|
|
58
58
|
LOCATION_HINTS,
|
|
59
59
|
PRODUCT_LABEL_VAR,
|
|
60
60
|
isLocationHint
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6QJUMQUR.js";
|
|
62
62
|
|
|
63
63
|
// src/io.ts
|
|
64
64
|
import { createInterface } from "node:readline/promises";
|
|
@@ -1174,7 +1174,7 @@ async function uninstall(flags, deps) {
|
|
|
1174
1174
|
async function ext(argv, deps) {
|
|
1175
1175
|
let runExt;
|
|
1176
1176
|
try {
|
|
1177
|
-
({ runExt } = await import("./cli-
|
|
1177
|
+
({ runExt } = await import("./cli-H4ROA2Y3.js"));
|
|
1178
1178
|
return await runExt(argv, deps.io);
|
|
1179
1179
|
} catch (error) {
|
|
1180
1180
|
if (error.code === "ERR_MODULE_NOT_FOUND") {
|
|
@@ -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-
|
|
1191
|
+
const repo = await import("./client-repo-6Y2CMY6X.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)) {
|
|
@@ -1202,7 +1202,7 @@ async function client(argv, deps) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
try {
|
|
1205
|
-
const { runClient } = await import("./cli-
|
|
1205
|
+
const { runClient } = await import("./cli-H3TXCKDF.js");
|
|
1206
1206
|
return await runClient(argv, deps.io);
|
|
1207
1207
|
} catch (error) {
|
|
1208
1208
|
if (error.code === "ERR_MODULE_NOT_FOUND") {
|
|
@@ -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-
|
|
1402
|
+
if (argv[0] === "app") return (await import("./app-JP5XQ7OR.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-
|
|
1416
|
-
const blocks = await import("./blocks-
|
|
1415
|
+
const repo = await import("./client-repo-6Y2CMY6X.js");
|
|
1416
|
+
const blocks = await import("./blocks-2ZNI77V2.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
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
SHAPE_CALIBRATED,
|
|
12
12
|
STATEMENTS_CALIBRATED,
|
|
13
13
|
coreRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OVIQ2AS6.js";
|
|
15
15
|
import {
|
|
16
16
|
JOB_CHANGE_CALIBRATED,
|
|
17
17
|
ROUTINE_GATE_CALIBRATED,
|
|
18
18
|
choice,
|
|
19
19
|
toolOperation
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XYLRUKF6.js";
|
|
21
21
|
import {
|
|
22
22
|
AUDIENCES,
|
|
23
23
|
audiencesOf,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
forgetPlanOnSale,
|
|
13
13
|
hasPlanOnSale,
|
|
14
14
|
subscriptionSetup
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NH6DW3XZ.js";
|
|
16
16
|
import {
|
|
17
17
|
ORDER_TOKEN,
|
|
18
18
|
hashOrderToken,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveBuyer,
|
|
25
25
|
startHeld,
|
|
26
26
|
usableAddress
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JFAYPQ6C.js";
|
|
28
28
|
import {
|
|
29
29
|
A2UI_CATALOGUE_VERSION,
|
|
30
30
|
ACCOUNTING_HOST_ONLY,
|
|
@@ -509,7 +509,7 @@ import {
|
|
|
509
509
|
withdrawOffer,
|
|
510
510
|
workOutDeal,
|
|
511
511
|
writeDeal
|
|
512
|
-
} from "./chunk-
|
|
512
|
+
} from "./chunk-XYLRUKF6.js";
|
|
513
513
|
import {
|
|
514
514
|
AGREEMENT_CHANGES,
|
|
515
515
|
AGREEMENT_FOR,
|
|
@@ -844,7 +844,7 @@ import {
|
|
|
844
844
|
killSwitchControl,
|
|
845
845
|
newRunId,
|
|
846
846
|
preflight
|
|
847
|
-
} from "./chunk-
|
|
847
|
+
} from "./chunk-KNUHUPGX.js";
|
|
848
848
|
import {
|
|
849
849
|
MODEL_CATALOGUE,
|
|
850
850
|
MODEL_ROLES,
|
|
@@ -863,7 +863,7 @@ import {
|
|
|
863
863
|
import {
|
|
864
864
|
product,
|
|
865
865
|
productName
|
|
866
|
-
} from "./chunk-
|
|
866
|
+
} from "./chunk-6QJUMQUR.js";
|
|
867
867
|
import {
|
|
868
868
|
ACTORS,
|
|
869
869
|
ALL_ACTORS,
|
|
@@ -14513,7 +14513,7 @@ async function assertRosterApprover(ctx, db, targets) {
|
|
|
14513
14513
|
// ../core/src/approvals/redact.ts
|
|
14514
14514
|
async function operationOf(db, name3) {
|
|
14515
14515
|
if (name3.startsWith("x.")) return resolveExtensionOperation(db, name3);
|
|
14516
|
-
const { coreRegistry: coreRegistry2 } = await import("./invoke-
|
|
14516
|
+
const { coreRegistry: coreRegistry2 } = await import("./invoke-YEZCS5UE.js");
|
|
14517
14517
|
return coreRegistry2.get(name3);
|
|
14518
14518
|
}
|
|
14519
14519
|
async function couldApprove(ctx, op, input) {
|
|
@@ -23981,7 +23981,7 @@ async function confirmEmailChange(ctx, own, code2) {
|
|
|
23981
23981
|
ctx.db.updateTable("core_customer_email_change").set({ confirmed_at: ctx.now }).where("id", "=", open.id)
|
|
23982
23982
|
);
|
|
23983
23983
|
const label = emails.find((e) => e.email === open.oldEmail)?.label ?? null;
|
|
23984
|
-
const { updatePerson } = await import("./person-
|
|
23984
|
+
const { updatePerson } = await import("./person-SDJXD4C5.js");
|
|
23985
23985
|
const { orgReader: orgReader2 } = await import("./visibility-SZCINPP4.js");
|
|
23986
23986
|
const host = Object.create(ctx, {
|
|
23987
23987
|
principal: { value: orgReader2(ctx.db).principal },
|
|
@@ -28937,7 +28937,7 @@ async function applyVerifiedPayment(ctx, payment) {
|
|
|
28937
28937
|
const erased = row3.person_id === null && row3.email === null;
|
|
28938
28938
|
if (row3.state !== "pending" && row3.state !== "part_paid" || erased) {
|
|
28939
28939
|
record("late");
|
|
28940
|
-
const owed = await (await import("./moves-
|
|
28940
|
+
const owed = await (await import("./moves-XDS7NB4M.js")).oweLateRefund(ctx, row3.id, {
|
|
28941
28941
|
paymentRef: payment.paymentRef ?? null,
|
|
28942
28942
|
amount: payment.amount,
|
|
28943
28943
|
orderState: row3.state
|
|
@@ -29078,7 +29078,7 @@ async function applyOtherPayment(ctx, input) {
|
|
|
29078
29078
|
);
|
|
29079
29079
|
}
|
|
29080
29080
|
const owed = owedOn(row3);
|
|
29081
|
-
const { movedRecords } = await import("./moves-
|
|
29081
|
+
const { movedRecords } = await import("./moves-XDS7NB4M.js");
|
|
29082
29082
|
if (amount2 < owed && (await movedRecords(ctx, row3.id)).length) {
|
|
29083
29083
|
throw new ValidationError(
|
|
29084
29084
|
`This order books a place when it is paid, so it is paid in full: ${formatMoney(owed, row3.currency)}`,
|
|
@@ -29196,7 +29196,7 @@ async function reverseOtherPayment(ctx, input) {
|
|
|
29196
29196
|
state: row3.state
|
|
29197
29197
|
});
|
|
29198
29198
|
}
|
|
29199
|
-
const { movedRecords } = await import("./moves-
|
|
29199
|
+
const { movedRecords } = await import("./moves-XDS7NB4M.js");
|
|
29200
29200
|
if ((await movedRecords(ctx, row3.id)).some((r) => r.paid)) {
|
|
29201
29201
|
throw new ConflictError(
|
|
29202
29202
|
"This payment booked a place that is still booked: cancel the booking first, then reverse the payment",
|
|
@@ -40886,7 +40886,7 @@ async function fillEmptyFields(ctx, personId4, given) {
|
|
|
40886
40886
|
if (given.name && unnamed && given.name.length <= 200) changes.displayName = given.name;
|
|
40887
40887
|
if (given.phone && !phones.length && given.phone.length <= 50) changes.primaryPhone = given.phone;
|
|
40888
40888
|
if (!Object.keys(changes).length) return;
|
|
40889
|
-
const { updatePerson } = await import("./person-
|
|
40889
|
+
const { updatePerson } = await import("./person-SDJXD4C5.js");
|
|
40890
40890
|
const asHost = Object.create(ctx, {
|
|
40891
40891
|
recordChange: { value: (change) => recordHostChange(ctx, change) }
|
|
40892
40892
|
});
|
|
@@ -49797,7 +49797,7 @@ async function personForInvite(ctx, email, name3) {
|
|
|
49797
49797
|
);
|
|
49798
49798
|
}
|
|
49799
49799
|
if (matches[0]) return matches[0];
|
|
49800
|
-
const { personCreate: personCreate2 } = await import("./person-
|
|
49800
|
+
const { personCreate: personCreate2 } = await import("./person-SDJXD4C5.js");
|
|
49801
49801
|
const input = personCreate2.input.parse({
|
|
49802
49802
|
displayName: name3,
|
|
49803
49803
|
emails: [{ email, primary: true }]
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
import {
|
|
125
125
|
product,
|
|
126
126
|
productName
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-6QJUMQUR.js";
|
|
128
128
|
import {
|
|
129
129
|
CORE_PERMISSION_NAMESPACES,
|
|
130
130
|
CompiledQuery,
|
|
@@ -13580,7 +13580,7 @@ async function customerCodeReason(db, email2, now = (/* @__PURE__ */ new Date())
|
|
|
13580
13580
|
if (invite) return "invite";
|
|
13581
13581
|
if (signup === "buyers" && await hasBought(db, address2)) return "buyer";
|
|
13582
13582
|
if (await loadCustomerSignupSubscribers(db)) {
|
|
13583
|
-
const { findPlanOnSale } = await import("./plan-on-sale-
|
|
13583
|
+
const { findPlanOnSale } = await import("./plan-on-sale-LZV3PQHN.js");
|
|
13584
13584
|
const found = await findPlanOnSale(db, now, options);
|
|
13585
13585
|
if (found.state === "on_sale") return "subscription";
|
|
13586
13586
|
}
|
|
@@ -13631,7 +13631,7 @@ async function creatorFor(db, address2) {
|
|
|
13631
13631
|
async function createPersonFor(db, address2, customerId, now) {
|
|
13632
13632
|
const user = await creatorFor(db.query, address2);
|
|
13633
13633
|
if (!user) throw new ConfigError("There is no admin to create the customer's Person for");
|
|
13634
|
-
const { invoke } = await import("./invoke-
|
|
13634
|
+
const { invoke } = await import("./invoke-YEZCS5UE.js");
|
|
13635
13635
|
const person2 = await invoke(
|
|
13636
13636
|
"person.create",
|
|
13637
13637
|
{ emails: [{ email: address2, primary: true }] },
|
|
@@ -15170,7 +15170,7 @@ async function importOffers(ctx, input) {
|
|
|
15170
15170
|
);
|
|
15171
15171
|
}
|
|
15172
15172
|
const { timezone } = await loadGeneralSettings(ctx.db);
|
|
15173
|
-
const { normaliseCustomerEmail: normaliseCustomerEmail2, inviteCustomerStatement: inviteCustomerStatement2 } = await import("./accounts-
|
|
15173
|
+
const { normaliseCustomerEmail: normaliseCustomerEmail2, inviteCustomerStatement: inviteCustomerStatement2 } = await import("./accounts-UYSD32YT.js");
|
|
15174
15174
|
const addresses = input.rows.map((r) => normaliseCustomerEmail2(r.email));
|
|
15175
15175
|
const valid = [...new Set(addresses.filter((a) => a !== null))];
|
|
15176
15176
|
const owners = /* @__PURE__ */ new Map();
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
productContract,
|
|
4
4
|
renderClient
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-L67L5J7T.js";
|
|
6
|
+
import "./chunk-OVIQ2AS6.js";
|
|
7
7
|
import "./chunk-6CM3WZG5.js";
|
|
8
8
|
import "./chunk-JX4IFWNT.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-NH6DW3XZ.js";
|
|
10
|
+
import "./chunk-JFAYPQ6C.js";
|
|
11
|
+
import "./chunk-XYLRUKF6.js";
|
|
12
12
|
import "./chunk-KMFMD52Z.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-KNUHUPGX.js";
|
|
14
14
|
import "./chunk-KGHA67HG.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6QJUMQUR.js";
|
|
16
16
|
import "./chunk-KFHKNXGH.js";
|
|
17
17
|
import "./chunk-RSEWEFAV.js";
|
|
18
18
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -92,7 +92,7 @@ async function runClient(argv, io) {
|
|
|
92
92
|
io.err("--out <dir> is required");
|
|
93
93
|
return 2;
|
|
94
94
|
}
|
|
95
|
-
const { products, DEFAULT_PRODUCT } = await import("./products-
|
|
95
|
+
const { products, DEFAULT_PRODUCT } = await import("./products-6P5WC43N.js");
|
|
96
96
|
const id = parsed.product ?? DEFAULT_PRODUCT;
|
|
97
97
|
const product = products[id];
|
|
98
98
|
if (!product) {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
checkEvaluated,
|
|
7
7
|
checkManifest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XYLRUKF6.js";
|
|
9
9
|
import "./chunk-KMFMD52Z.js";
|
|
10
10
|
import "./chunk-KGHA67HG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6QJUMQUR.js";
|
|
12
12
|
import {
|
|
13
13
|
refreshSchemaRegistry
|
|
14
14
|
} from "./chunk-KFHKNXGH.js";
|
package/dist/cli.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ghAvailable,
|
|
4
4
|
ghVerifier
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VIKNWMBD.js";
|
|
6
6
|
import {
|
|
7
7
|
Redactor,
|
|
8
8
|
runCli,
|
|
9
9
|
terminalIo
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KKKVC7OR.js";
|
|
11
|
+
import "./chunk-KNUHUPGX.js";
|
|
12
12
|
import "./chunk-KGHA67HG.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-RE7XHPMH.js";
|
|
14
|
+
import "./chunk-6QJUMQUR.js";
|
|
15
15
|
import "./chunk-5KSXSK7Y.js";
|
|
16
16
|
|
|
17
17
|
// src/cli.ts
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
upgradeRepo,
|
|
24
24
|
withEnvBinding,
|
|
25
25
|
withTsExtensions
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-CUUFXHHG.js";
|
|
27
|
+
import "./chunk-KKKVC7OR.js";
|
|
28
|
+
import "./chunk-KNUHUPGX.js";
|
|
29
29
|
import "./chunk-KGHA67HG.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-RE7XHPMH.js";
|
|
31
|
+
import "./chunk-6QJUMQUR.js";
|
|
32
32
|
import "./chunk-5KSXSK7Y.js";
|
|
33
33
|
export {
|
|
34
34
|
IMPORT_LOOPBACK_REDIRECT,
|
package/dist/create.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ghAvailable,
|
|
4
4
|
ghVerifier
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VIKNWMBD.js";
|
|
6
6
|
import {
|
|
7
7
|
Redactor,
|
|
8
8
|
runCli,
|
|
9
9
|
terminalIo
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KKKVC7OR.js";
|
|
11
|
+
import "./chunk-KNUHUPGX.js";
|
|
12
12
|
import "./chunk-KGHA67HG.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-RE7XHPMH.js";
|
|
14
|
+
import "./chunk-6QJUMQUR.js";
|
|
15
15
|
import "./chunk-5KSXSK7Y.js";
|
|
16
16
|
|
|
17
17
|
// src/create.ts
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
invoke,
|
|
7
7
|
invokeByName,
|
|
8
8
|
listOperations
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OVIQ2AS6.js";
|
|
10
10
|
import "./chunk-6CM3WZG5.js";
|
|
11
11
|
import "./chunk-JX4IFWNT.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-NH6DW3XZ.js";
|
|
13
|
+
import "./chunk-JFAYPQ6C.js";
|
|
14
|
+
import "./chunk-XYLRUKF6.js";
|
|
15
15
|
import "./chunk-KMFMD52Z.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KNUHUPGX.js";
|
|
17
17
|
import "./chunk-KGHA67HG.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-6QJUMQUR.js";
|
|
19
19
|
import "./chunk-KFHKNXGH.js";
|
|
20
20
|
import "./chunk-RSEWEFAV.js";
|
|
21
21
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
releaseUnsettledGuest,
|
|
11
11
|
startHeld,
|
|
12
12
|
unsettledGuests
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-JFAYPQ6C.js";
|
|
14
|
+
import "./chunk-XYLRUKF6.js";
|
|
15
15
|
import "./chunk-KMFMD52Z.js";
|
|
16
16
|
import "./chunk-KGHA67HG.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6QJUMQUR.js";
|
|
18
18
|
import "./chunk-KFHKNXGH.js";
|
|
19
19
|
import "./chunk-RSEWEFAV.js";
|
|
20
20
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
phoneInputSchema,
|
|
26
26
|
socialProfileSchema,
|
|
27
27
|
updatePerson
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XYLRUKF6.js";
|
|
29
29
|
import {
|
|
30
30
|
TRASH_RETENTION_DAYS
|
|
31
31
|
} from "./chunk-KMFMD52Z.js";
|
|
32
32
|
import "./chunk-KGHA67HG.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-6QJUMQUR.js";
|
|
34
34
|
import "./chunk-KFHKNXGH.js";
|
|
35
35
|
import "./chunk-RSEWEFAV.js";
|
|
36
36
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
findPlanOnSale,
|
|
6
6
|
forgetPlanOnSale,
|
|
7
7
|
hasPlanOnSale
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-NH6DW3XZ.js";
|
|
9
|
+
import "./chunk-XYLRUKF6.js";
|
|
10
10
|
import "./chunk-KMFMD52Z.js";
|
|
11
11
|
import "./chunk-KGHA67HG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6QJUMQUR.js";
|
|
13
13
|
import "./chunk-KFHKNXGH.js";
|
|
14
14
|
import "./chunk-RSEWEFAV.js";
|
|
15
15
|
import "./chunk-CIBJGB5H.js";
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
renderOwnerClient,
|
|
10
10
|
renderRoleClient,
|
|
11
11
|
schemaToTs
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-L67L5J7T.js";
|
|
13
|
+
import "./chunk-OVIQ2AS6.js";
|
|
14
14
|
import "./chunk-6CM3WZG5.js";
|
|
15
15
|
import "./chunk-JX4IFWNT.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-NH6DW3XZ.js";
|
|
17
|
+
import "./chunk-JFAYPQ6C.js";
|
|
18
|
+
import "./chunk-XYLRUKF6.js";
|
|
19
19
|
import "./chunk-KMFMD52Z.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KNUHUPGX.js";
|
|
21
21
|
import "./chunk-KGHA67HG.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6QJUMQUR.js";
|
|
23
23
|
import "./chunk-KFHKNXGH.js";
|
|
24
24
|
import "./chunk-RSEWEFAV.js";
|
|
25
25
|
import "./chunk-CIBJGB5H.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composable-os/cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.15",
|
|
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.
|
|
32
|
+
"@composable-os/sdk": "0.1.0-beta.15",
|
|
33
33
|
"zod": "4.6.7"
|
|
34
34
|
}
|
|
35
35
|
}
|