twenty-sdk 2.25.0 → 2.26.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/LICENSE +21 -0
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs +1 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{catalog-sync-BQ4qqj5b.js → catalog-sync-BhcRTPpY.js} +1 -1
- package/dist/{catalog-sync-Bd0XMuNL.mjs → catalog-sync-CMzypQBt.mjs} +1 -1
- package/dist/cli.cjs +7 -7
- package/dist/cli.mjs +65 -65
- package/dist/define/index.cjs +18 -18
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +823 -1295
- package/dist/define/index.mjs +5902 -5818
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs +1 -1
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-GNk3NRLJ-DmwN8d1n.mjs → get-function-input-schema-GNk3NRLJ-BFDLBpFh.mjs} +1 -1
- package/dist/logic-function/index.cjs +7 -7
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +17 -2
- package/dist/logic-function/index.mjs +58 -50
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/{login-CjlKXuH6.mjs → login-CAb32cRd.mjs} +5867 -5781
- package/dist/{login-C1meSrEJ.js → login-CY_XIBxf.js} +52 -52
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { fileURLToPath as t } from "node:url";
|
|
|
4
4
|
import { dirname as n } from "node:path";
|
|
5
5
|
e(import.meta.url);
|
|
6
6
|
const r = t(import.meta.url), i = n(r);
|
|
7
|
-
import { $ as a, At as o, B as s, C as c, Ct as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as T, R as E, S as D, St as O, Tt as k, U as A, V as j, W as M, Z as ee, _ as te, _t as N, a as P, at as F, b as ne, bt as re, c as ie, ct as ae, d as oe, dt as se, f as ce, ft as le, g as ue, gt as de, h as I, ht as fe, i as pe, it as me, jt as he, k as ge, kt as _e, l as ve, lt as ye, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, vt as Ie, w as Le, wt as Re, x as ze, xt as Be, y as Ve, yt as He, z as Ue } from "./login-
|
|
7
|
+
import { $ as a, At as o, B as s, C as c, Ct as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as T, R as E, S as D, St as O, Tt as k, U as A, V as j, W as M, Z as ee, _ as te, _t as N, a as P, at as F, b as ne, bt as re, c as ie, ct as ae, d as oe, dt as se, f as ce, ft as le, g as ue, gt as de, h as I, ht as fe, i as pe, it as me, jt as he, k as ge, kt as _e, l as ve, lt as ye, m as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, vt as Ie, w as Le, wt as Re, x as ze, xt as Be, y as Ve, yt as He, z as Ue } from "./login-CAb32cRd.mjs";
|
|
8
8
|
import We, { dirname as Ge, join as Ke, relative as qe } from "path";
|
|
9
9
|
import { readFile as Je, readdir as Ye, writeFile as Xe } from "node:fs/promises";
|
|
10
10
|
import { v4 as Ze } from "uuid";
|
|
@@ -3818,18 +3818,18 @@ export default defineViewField({
|
|
|
3818
3818
|
let { overwrite: e } = await this.handleFileExist();
|
|
3819
3819
|
if (!e) return;
|
|
3820
3820
|
}
|
|
3821
|
-
await Xe(c, s), console.log(ct.green(`✓ Created ${i}:`), ct.cyan(qe(_e, c))), r ===
|
|
3821
|
+
await Xe(c, s), console.log(ct.green(`✓ Created ${i}:`), ct.cyan(qe(_e, c))), r === fe.Object && await this.promptAndCreateObjectCompanions({
|
|
3822
3822
|
objectName: o,
|
|
3823
3823
|
applicationUniversalIdentifier: n,
|
|
3824
3824
|
customPath: t
|
|
3825
|
-
}), r ===
|
|
3825
|
+
}), r === fe.ConnectionProvider && await this.registerConnectionProviderServerVariables(o);
|
|
3826
3826
|
} catch (e) {
|
|
3827
3827
|
console.error(ct.red("Add new entity failed:"), e instanceof Error ? e.message : e), process.exit(1);
|
|
3828
3828
|
}
|
|
3829
3829
|
}
|
|
3830
3830
|
async getEntityData(e, t) {
|
|
3831
3831
|
switch (e) {
|
|
3832
|
-
case
|
|
3832
|
+
case fe.Object: {
|
|
3833
3833
|
let e = await this.getObjectData(), t = e.nameSingular, n = Ze(), r = Ze();
|
|
3834
3834
|
return this.lastObjectUniversalIdentifier = n, this.lastNameFieldUniversalIdentifier = r, this.lastObjectLabelSingular = e.labelSingular, {
|
|
3835
3835
|
name: t,
|
|
@@ -3841,7 +3841,7 @@ export default defineViewField({
|
|
|
3841
3841
|
})
|
|
3842
3842
|
};
|
|
3843
3843
|
}
|
|
3844
|
-
case
|
|
3844
|
+
case fe.Field: {
|
|
3845
3845
|
let e = await this.getFieldData(), t = e.name;
|
|
3846
3846
|
return {
|
|
3847
3847
|
name: t,
|
|
@@ -3851,49 +3851,49 @@ export default defineViewField({
|
|
|
3851
3851
|
})
|
|
3852
3852
|
};
|
|
3853
3853
|
}
|
|
3854
|
-
case
|
|
3854
|
+
case fe.LogicFunction: {
|
|
3855
3855
|
let t = await this.getEntityName(e);
|
|
3856
3856
|
return {
|
|
3857
3857
|
name: t,
|
|
3858
3858
|
file: Lt({ name: t })
|
|
3859
3859
|
};
|
|
3860
3860
|
}
|
|
3861
|
-
case
|
|
3861
|
+
case fe.FrontComponent: {
|
|
3862
3862
|
let t = await this.getEntityName(e);
|
|
3863
3863
|
return {
|
|
3864
3864
|
name: t,
|
|
3865
3865
|
file: It({ name: t })
|
|
3866
3866
|
};
|
|
3867
3867
|
}
|
|
3868
|
-
case
|
|
3868
|
+
case fe.Role: {
|
|
3869
3869
|
let t = await this.getEntityName(e);
|
|
3870
3870
|
return {
|
|
3871
3871
|
name: t,
|
|
3872
3872
|
file: Wt({ name: t })
|
|
3873
3873
|
};
|
|
3874
3874
|
}
|
|
3875
|
-
case
|
|
3875
|
+
case fe.Skill: {
|
|
3876
3876
|
let t = await this.getEntityName(e);
|
|
3877
3877
|
return {
|
|
3878
3878
|
name: t,
|
|
3879
3879
|
file: qt({ name: t })
|
|
3880
3880
|
};
|
|
3881
3881
|
}
|
|
3882
|
-
case
|
|
3882
|
+
case fe.Agent: {
|
|
3883
3883
|
let t = await this.getEntityName(e);
|
|
3884
3884
|
return {
|
|
3885
3885
|
name: t,
|
|
3886
3886
|
file: Gt({ name: t })
|
|
3887
3887
|
};
|
|
3888
3888
|
}
|
|
3889
|
-
case
|
|
3889
|
+
case fe.ConnectionProvider: {
|
|
3890
3890
|
let t = await this.getEntityName(e);
|
|
3891
3891
|
return {
|
|
3892
3892
|
name: t,
|
|
3893
3893
|
file: Kt({ name: t })
|
|
3894
3894
|
};
|
|
3895
3895
|
}
|
|
3896
|
-
case
|
|
3896
|
+
case fe.View: {
|
|
3897
3897
|
let e = (await this.getViewData()).name;
|
|
3898
3898
|
return {
|
|
3899
3899
|
name: e,
|
|
@@ -3903,18 +3903,18 @@ export default defineViewField({
|
|
|
3903
3903
|
})
|
|
3904
3904
|
};
|
|
3905
3905
|
}
|
|
3906
|
-
case
|
|
3906
|
+
case fe.ViewField: return {
|
|
3907
3907
|
name: await this.getEntityName(e),
|
|
3908
3908
|
file: Xt({})
|
|
3909
3909
|
};
|
|
3910
|
-
case
|
|
3910
|
+
case fe.NavigationMenuItem: {
|
|
3911
3911
|
let t = await this.getEntityName(e);
|
|
3912
3912
|
return {
|
|
3913
3913
|
name: t,
|
|
3914
3914
|
file: Rt({ name: t })
|
|
3915
3915
|
};
|
|
3916
3916
|
}
|
|
3917
|
-
case
|
|
3917
|
+
case fe.PageLayout: {
|
|
3918
3918
|
let t = await this.getEntityName(e), { type: n } = await lt.prompt([{
|
|
3919
3919
|
type: "select",
|
|
3920
3920
|
name: "type",
|
|
@@ -3929,21 +3929,21 @@ export default defineViewField({
|
|
|
3929
3929
|
})
|
|
3930
3930
|
};
|
|
3931
3931
|
}
|
|
3932
|
-
case
|
|
3932
|
+
case fe.PageLayoutTab: {
|
|
3933
3933
|
let t = await this.getEntityName(e);
|
|
3934
3934
|
return {
|
|
3935
3935
|
name: t,
|
|
3936
3936
|
file: Ht({ name: t })
|
|
3937
3937
|
};
|
|
3938
3938
|
}
|
|
3939
|
-
case
|
|
3939
|
+
case fe.CommandMenuItem: {
|
|
3940
3940
|
let t = await this.getEntityName(e);
|
|
3941
3941
|
return {
|
|
3942
3942
|
name: t,
|
|
3943
3943
|
file: Bt({ name: t })
|
|
3944
3944
|
};
|
|
3945
3945
|
}
|
|
3946
|
-
default:
|
|
3946
|
+
default: He(e);
|
|
3947
3947
|
}
|
|
3948
3948
|
}
|
|
3949
3949
|
async promptAndCreateObjectCompanions({ objectName: e, applicationUniversalIdentifier: t, customPath: n }) {
|
|
@@ -3965,7 +3965,7 @@ export default defineViewField({
|
|
|
3965
3965
|
isVisible: !0,
|
|
3966
3966
|
size: 200
|
|
3967
3967
|
}] : []
|
|
3968
|
-
}), s = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(
|
|
3968
|
+
}), s = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(fe.View));
|
|
3969
3969
|
await ye(s);
|
|
3970
3970
|
let c = Ke(s, `all-${Ft(e)}.ts`);
|
|
3971
3971
|
if (await Pe(c)) {
|
|
@@ -3978,7 +3978,7 @@ export default defineViewField({
|
|
|
3978
3978
|
universalIdentifier: a,
|
|
3979
3979
|
objectUniversalIdentifier: this.lastObjectUniversalIdentifier,
|
|
3980
3980
|
applicationUniversalIdentifier: t,
|
|
3981
|
-
type:
|
|
3981
|
+
type: O.FIELDS_WIDGET,
|
|
3982
3982
|
fields: l
|
|
3983
3983
|
}), d = Ke(s, `${Ft(e)}-record-page-fields.ts`);
|
|
3984
3984
|
if (await Pe(d)) {
|
|
@@ -3990,7 +3990,7 @@ export default defineViewField({
|
|
|
3990
3990
|
name: e,
|
|
3991
3991
|
type: "OBJECT",
|
|
3992
3992
|
targetObjectUniversalIdentifier: this.lastObjectUniversalIdentifier
|
|
3993
|
-
}), p = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(
|
|
3993
|
+
}), p = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(fe.NavigationMenuItem));
|
|
3994
3994
|
await ye(p);
|
|
3995
3995
|
let m = Ke(p, `${Ft(e)}.ts`);
|
|
3996
3996
|
if (await Pe(m)) {
|
|
@@ -4002,7 +4002,7 @@ export default defineViewField({
|
|
|
4002
4002
|
objectLabelSingular: this.lastObjectLabelSingular ?? e,
|
|
4003
4003
|
objectUniversalIdentifier: this.lastObjectUniversalIdentifier,
|
|
4004
4004
|
fieldsWidgetViewUniversalIdentifier: a
|
|
4005
|
-
}), g = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(
|
|
4005
|
+
}), g = n ? Ke(_e, n) : Ke(_e, B, this.getFolderName(fe.PageLayout));
|
|
4006
4006
|
await ye(g);
|
|
4007
4007
|
let _ = Ke(g, `${Ft(e)}-record-page-layout.ts`);
|
|
4008
4008
|
if (await Pe(_)) {
|
|
@@ -4064,7 +4064,7 @@ export default defineViewField({
|
|
|
4064
4064
|
name: "entity",
|
|
4065
4065
|
message: "What entity do you want to create?",
|
|
4066
4066
|
default: "",
|
|
4067
|
-
choices: Object.values(
|
|
4067
|
+
choices: Object.values(fe)
|
|
4068
4068
|
}]);
|
|
4069
4069
|
return e;
|
|
4070
4070
|
}
|
|
@@ -4143,16 +4143,16 @@ export default defineViewField({
|
|
|
4143
4143
|
type: "select",
|
|
4144
4144
|
name: "relationType",
|
|
4145
4145
|
message: "Select the relation type:",
|
|
4146
|
-
choices: Object.values(
|
|
4147
|
-
default:
|
|
4146
|
+
choices: Object.values(k),
|
|
4147
|
+
default: k.ONE_TO_MANY,
|
|
4148
4148
|
when: (t) => e(t.type)
|
|
4149
4149
|
},
|
|
4150
4150
|
{
|
|
4151
4151
|
type: "select",
|
|
4152
4152
|
name: "onDelete",
|
|
4153
4153
|
message: "Select the onDelete behavior:",
|
|
4154
|
-
choices: Object.values(
|
|
4155
|
-
default:
|
|
4154
|
+
choices: Object.values(Re),
|
|
4155
|
+
default: Re.CASCADE,
|
|
4156
4156
|
when: (t) => e(t.type)
|
|
4157
4157
|
}
|
|
4158
4158
|
]);
|
|
@@ -4209,7 +4209,7 @@ export default defineViewField({
|
|
|
4209
4209
|
}
|
|
4210
4210
|
getFileName(e, t) {
|
|
4211
4211
|
switch (t) {
|
|
4212
|
-
case
|
|
4212
|
+
case fe.FrontComponent: return `${Ft(e)}.tsx`;
|
|
4213
4213
|
default: return `${Ft(e)}.ts`;
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
@@ -4367,7 +4367,7 @@ export default defineViewField({
|
|
|
4367
4367
|
}
|
|
4368
4368
|
}), e.command("catalog-sync", { hidden: !0 }).option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
4369
4369
|
an("catalog-sync", "dev:catalog-sync");
|
|
4370
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
4370
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-CMzypQBt.mjs");
|
|
4371
4371
|
await new t().execute({ remote: e.remote });
|
|
4372
4372
|
});
|
|
4373
4373
|
}, sn = class {
|
|
@@ -4594,7 +4594,7 @@ export default defineViewField({
|
|
|
4594
4594
|
}
|
|
4595
4595
|
}), this.watcher.on("all", (e, t) => {
|
|
4596
4596
|
if (e === "addDir" || e === "unlinkDir") return;
|
|
4597
|
-
let n = qe(this.appPath, t), r = n.startsWith(
|
|
4597
|
+
let n = qe(this.appPath, t), r = n.startsWith(de), i = ["package.json", "yarn.lock"].includes(n);
|
|
4598
4598
|
!(n.endsWith(".ts") || n.endsWith(".tsx")) && !r && !i || this.handleChangeDetected(n, e);
|
|
4599
4599
|
});
|
|
4600
4600
|
}
|
|
@@ -4689,15 +4689,15 @@ export default defineViewField({
|
|
|
4689
4689
|
async startAssetWatcher() {
|
|
4690
4690
|
this.assetWatcher = new dn({
|
|
4691
4691
|
appPath: this.state.appPath,
|
|
4692
|
-
fileFolder:
|
|
4693
|
-
watchPaths: [
|
|
4692
|
+
fileFolder: l.PublicAsset,
|
|
4693
|
+
watchPaths: [de],
|
|
4694
4694
|
handleFileBuilt: this.handleFileBuilt.bind(this)
|
|
4695
4695
|
}), await this.assetWatcher.start();
|
|
4696
4696
|
}
|
|
4697
4697
|
async startDependencyWatcher() {
|
|
4698
4698
|
this.dependencyWatcher = new dn({
|
|
4699
4699
|
appPath: this.state.appPath,
|
|
4700
|
-
fileFolder:
|
|
4700
|
+
fileFolder: l.Dependencies,
|
|
4701
4701
|
watchPaths: ["package.json", "yarn.lock"],
|
|
4702
4702
|
handleFileBuilt: this.handleFileBuilt.bind(this)
|
|
4703
4703
|
}), this.dependencyWatcher.start();
|
|
@@ -5052,19 +5052,19 @@ export default defineViewField({
|
|
|
5052
5052
|
}), !0);
|
|
5053
5053
|
}
|
|
5054
5054
|
}, Cn = {
|
|
5055
|
-
objects:
|
|
5056
|
-
fields:
|
|
5057
|
-
logicFunctions:
|
|
5058
|
-
frontComponents:
|
|
5059
|
-
roles:
|
|
5060
|
-
skills:
|
|
5061
|
-
connectionProviders:
|
|
5062
|
-
views:
|
|
5063
|
-
viewFields:
|
|
5064
|
-
navigationMenuItems:
|
|
5065
|
-
pageLayouts:
|
|
5066
|
-
pageLayoutTabs:
|
|
5067
|
-
commandMenuItems:
|
|
5055
|
+
objects: fe.Object,
|
|
5056
|
+
fields: fe.Field,
|
|
5057
|
+
logicFunctions: fe.LogicFunction,
|
|
5058
|
+
frontComponents: fe.FrontComponent,
|
|
5059
|
+
roles: fe.Role,
|
|
5060
|
+
skills: fe.Skill,
|
|
5061
|
+
connectionProviders: fe.ConnectionProvider,
|
|
5062
|
+
views: fe.View,
|
|
5063
|
+
viewFields: fe.ViewField,
|
|
5064
|
+
navigationMenuItems: fe.NavigationMenuItem,
|
|
5065
|
+
pageLayouts: fe.PageLayout,
|
|
5066
|
+
pageLayoutTabs: fe.PageLayoutTab,
|
|
5067
|
+
commandMenuItems: fe.CommandMenuItem
|
|
5068
5068
|
}, wn = 200, Tn = {
|
|
5069
5069
|
pending: [
|
|
5070
5070
|
"building",
|
|
@@ -5284,20 +5284,20 @@ export default defineViewField({
|
|
|
5284
5284
|
"↑",
|
|
5285
5285
|
"⇡"
|
|
5286
5286
|
], Nn = {
|
|
5287
|
-
[
|
|
5288
|
-
[
|
|
5289
|
-
[
|
|
5290
|
-
[
|
|
5291
|
-
[
|
|
5292
|
-
[
|
|
5293
|
-
[
|
|
5294
|
-
[
|
|
5295
|
-
[
|
|
5296
|
-
[
|
|
5297
|
-
[
|
|
5298
|
-
[
|
|
5299
|
-
[
|
|
5300
|
-
[
|
|
5287
|
+
[fe.Object]: "Objects",
|
|
5288
|
+
[fe.Field]: "Fields",
|
|
5289
|
+
[fe.LogicFunction]: "Logic functions",
|
|
5290
|
+
[fe.FrontComponent]: "Front components",
|
|
5291
|
+
[fe.CommandMenuItem]: "Command menu items",
|
|
5292
|
+
[fe.Role]: "Roles",
|
|
5293
|
+
[fe.Skill]: "Skills",
|
|
5294
|
+
[fe.View]: "Views",
|
|
5295
|
+
[fe.ViewField]: "View fields",
|
|
5296
|
+
[fe.NavigationMenuItem]: "Navigation menu items",
|
|
5297
|
+
[fe.PageLayout]: "Page layouts",
|
|
5298
|
+
[fe.PageLayoutTab]: "Page layout tabs",
|
|
5299
|
+
[fe.Agent]: "Agents",
|
|
5300
|
+
[fe.ConnectionProvider]: "Connection providers"
|
|
5301
5301
|
}, Pn = Object.keys(Nn), Fn = {
|
|
5302
5302
|
info: "gray",
|
|
5303
5303
|
success: "green",
|
|
@@ -136260,10 +136260,10 @@ ${t.message}`), t;
|
|
|
136260
136260
|
});
|
|
136261
136261
|
}), e.command("dev:typecheck [appPath]").description("Run TypeScript type checking").action(async (e) => {
|
|
136262
136262
|
await i.execute({ appPath: ht(e) });
|
|
136263
|
-
}), e.command("dev:add [entityType]").description(`Scaffold a new entity (${Object.values(
|
|
136263
|
+
}), e.command("dev:add [entityType]").description(`Scaffold a new entity (${Object.values(fe).join("|")})`).option("--path <path>", "Path in which the entity should be created.").action(async (e, t) => {
|
|
136264
136264
|
await a.execute(e, t?.path);
|
|
136265
136265
|
}), e.command("dev:catalog-sync").description("Trigger marketplace catalog sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
136266
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
136266
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-CMzypQBt.mjs");
|
|
136267
136267
|
await new t().execute({ remote: e.remote });
|
|
136268
136268
|
}), e.command("dev:generate-client [appPath]").description("Generate the typed API client from the active remote (no app definition required)").action(async (e) => {
|
|
136269
136269
|
await o.execute({ appPath: ht(e) });
|
|
@@ -136350,7 +136350,7 @@ ${t.message}`), t;
|
|
|
136350
136350
|
n("upgrade", "docker:upgrade"), await $r(e, t);
|
|
136351
136351
|
}), t.command("catalog-sync").option("-r, --remote <name>", "Sync on a specific remote").action(async (e) => {
|
|
136352
136352
|
n("catalog-sync", "dev:catalog-sync");
|
|
136353
|
-
let { CatalogSyncCommand: t } = await import("./catalog-sync-
|
|
136353
|
+
let { CatalogSyncCommand: t } = await import("./catalog-sync-CMzypQBt.mjs");
|
|
136354
136354
|
await new t().execute({ remote: e.remote });
|
|
136355
136355
|
});
|
|
136356
136356
|
}, ti = /^(\d{1,3}\.){3}\d{1,3}$/, ni = (e) => {
|
|
@@ -136389,10 +136389,10 @@ ${t.message}`), t;
|
|
|
136389
136389
|
return;
|
|
136390
136390
|
}
|
|
136391
136391
|
let i = e.url ?? e.apiUrl;
|
|
136392
|
-
if (i) i =
|
|
136392
|
+
if (i) i = Ie(i);
|
|
136393
136393
|
else {
|
|
136394
136394
|
let t = await be();
|
|
136395
|
-
e.local ? (t || (console.error(ct.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(ct.gray(`Found local server at ${t}`)), i = t) : i =
|
|
136395
|
+
e.local ? (t || (console.error(ct.red("No local Twenty server found.\nStart one with: yarn twenty docker:start")), process.exit(1)), console.log(ct.gray(`Found local server at ${t}`)), i = t) : i = Ie((await lt.prompt([{
|
|
136396
136396
|
type: "input",
|
|
136397
136397
|
name: "serverUrl",
|
|
136398
136398
|
message: "Twenty server URL:",
|