@popina/cli 5.0.2-20260412084641Z → 5.0.2-20260520160910Z
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @popina/cli
|
|
2
2
|
|
|
3
|
+
## 5.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Refreshed Knowledge onboarding and software tooling docs, including improved software cards with inline website links and copyable install commands.
|
|
8
|
+
|
|
9
|
+
Updated Popina CLI onboarding support by raising the required pnpm version and extending `popina list` with clearer docs metadata and background services.
|
|
10
|
+
|
|
11
|
+
- Aligned auth and environment tooling changes used by Knowledge and deployment scripts, added a new admin permission for Knowledge access control, and updated related CLI and admin translation support so the rollout works consistently across apps.
|
|
12
|
+
|
|
3
13
|
## 5.0.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/build/index.js
CHANGED
|
@@ -279,8 +279,8 @@ async function loginGoogle() {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
// src/utils/get-env-config.ts
|
|
282
|
-
import path from "path";
|
|
283
282
|
import fse2 from "fs-extra";
|
|
283
|
+
import path from "path";
|
|
284
284
|
var removeDirectory = (dir) => {
|
|
285
285
|
try {
|
|
286
286
|
fse2.rmSync(dir, { recursive: true });
|
|
@@ -11461,7 +11461,7 @@ function date4(params) {
|
|
|
11461
11461
|
config(en_default());
|
|
11462
11462
|
|
|
11463
11463
|
// package.json
|
|
11464
|
-
var version2 = "5.0.2-
|
|
11464
|
+
var version2 = "5.0.2-20260520160910Z";
|
|
11465
11465
|
|
|
11466
11466
|
// src/utils/get-package-info.ts
|
|
11467
11467
|
async function getPackageInfo() {
|
|
@@ -11477,8 +11477,8 @@ import * as p12 from "@clack/prompts";
|
|
|
11477
11477
|
import { $ as $14 } from "zx/core";
|
|
11478
11478
|
|
|
11479
11479
|
// src/utils/gh/login-to-github.ts
|
|
11480
|
-
import { spawnSync } from "child_process";
|
|
11481
11480
|
import * as p11 from "@clack/prompts";
|
|
11481
|
+
import { spawnSync } from "child_process";
|
|
11482
11482
|
async function loginGH() {
|
|
11483
11483
|
p11.log.info("Logging in with GitHub CLI using device authentication...");
|
|
11484
11484
|
await p11.group(
|
|
@@ -11568,7 +11568,7 @@ async function checkPnpm() {
|
|
|
11568
11568
|
);
|
|
11569
11569
|
process.exit(0);
|
|
11570
11570
|
});
|
|
11571
|
-
const requiredVersion = "10.
|
|
11571
|
+
const requiredVersion = "10.33.0";
|
|
11572
11572
|
const currentVersion = pnpmVersion.trim();
|
|
11573
11573
|
if (!compareVersions(currentVersion, requiredVersion)) {
|
|
11574
11574
|
p13.log.warn(
|
|
@@ -11678,7 +11678,7 @@ var SERVICE_REGISTRY = [
|
|
|
11678
11678
|
name: "API",
|
|
11679
11679
|
packageName: "@pragma/api",
|
|
11680
11680
|
url: "http://localhost:4000",
|
|
11681
|
-
description: "
|
|
11681
|
+
description: "Popina API for third parties",
|
|
11682
11682
|
path: "apps/api",
|
|
11683
11683
|
group: "api"
|
|
11684
11684
|
},
|
|
@@ -11767,7 +11767,7 @@ var SERVICE_REGISTRY = [
|
|
|
11767
11767
|
name: "Admin",
|
|
11768
11768
|
packageName: "@pragma/admin",
|
|
11769
11769
|
url: "http://localhost:3000",
|
|
11770
|
-
description: "Manage, monitor and configure
|
|
11770
|
+
description: "Manage, monitor and configure Popina APIs",
|
|
11771
11771
|
path: "apps/admin",
|
|
11772
11772
|
group: "app"
|
|
11773
11773
|
},
|
|
@@ -11824,8 +11824,8 @@ var SERVICE_REGISTRY = [
|
|
|
11824
11824
|
name: "Public Docs",
|
|
11825
11825
|
packageName: "@pragma/public-docs",
|
|
11826
11826
|
url: "http://localhost:3001",
|
|
11827
|
-
description: "Public documentation for
|
|
11828
|
-
path: "apps/docs",
|
|
11827
|
+
description: "Public documentation for Popina APIs",
|
|
11828
|
+
path: "apps/public-docs",
|
|
11829
11829
|
group: "docs"
|
|
11830
11830
|
},
|
|
11831
11831
|
{
|
|
@@ -11840,7 +11840,7 @@ var SERVICE_REGISTRY = [
|
|
|
11840
11840
|
name: "Knowledge Documentation",
|
|
11841
11841
|
packageName: "@pragma/knowledge",
|
|
11842
11842
|
url: "http://localhost:3009",
|
|
11843
|
-
description: "
|
|
11843
|
+
description: "Internal Popina engineering documentation",
|
|
11844
11844
|
path: "apps/knowledge",
|
|
11845
11845
|
group: "docs"
|
|
11846
11846
|
},
|
|
@@ -11901,6 +11901,9 @@ function getAppServices() {
|
|
|
11901
11901
|
function getDocServices() {
|
|
11902
11902
|
return getServicesByGroup("docs");
|
|
11903
11903
|
}
|
|
11904
|
+
function getOtherServices() {
|
|
11905
|
+
return getServicesByGroup("other");
|
|
11906
|
+
}
|
|
11904
11907
|
function getDatabaseTools() {
|
|
11905
11908
|
return DATABASE_TOOLS;
|
|
11906
11909
|
}
|
|
@@ -12547,10 +12550,25 @@ var init = new Command12().name("init").alias("i").description(
|
|
|
12547
12550
|
});
|
|
12548
12551
|
s.stop(`\u{1F331} We added some data to your database! You're ready to go!`);
|
|
12549
12552
|
}
|
|
12550
|
-
const
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12553
|
+
const nextStepsLines = [`cd ${init2.name}`];
|
|
12554
|
+
if (!init2.install) {
|
|
12555
|
+
nextStepsLines.push("pnpm");
|
|
12556
|
+
}
|
|
12557
|
+
if (!db.database) {
|
|
12558
|
+
nextStepsLines.push("pnpm db:start && pnpm db:migrate && pnpm db:seed");
|
|
12559
|
+
}
|
|
12560
|
+
if (!env2.fetch) {
|
|
12561
|
+
nextStepsLines.push(
|
|
12562
|
+
"Run `popina env pull` to download local environment variables"
|
|
12563
|
+
);
|
|
12564
|
+
}
|
|
12565
|
+
nextStepsLines.push("popina list");
|
|
12566
|
+
nextStepsLines.push("popina dev");
|
|
12567
|
+
nextStepsLines.push("");
|
|
12568
|
+
nextStepsLines.push(
|
|
12569
|
+
"In popina dev, keep default selected services for a minimal setup."
|
|
12570
|
+
);
|
|
12571
|
+
const nextSteps = nextStepsLines.join("\n");
|
|
12554
12572
|
p20.note(nextSteps, `Discover Popina \u{1F50D}`);
|
|
12555
12573
|
p20.note(
|
|
12556
12574
|
`Check out Linear : https://linear.app/pragmapos/team/WEB
|
|
@@ -12595,6 +12613,7 @@ var cmdList = new Command13().name("list").description(
|
|
|
12595
12613
|
const apiList = getAPIServices();
|
|
12596
12614
|
const appsList = getAppServices();
|
|
12597
12615
|
const docList = getDocServices();
|
|
12616
|
+
const otherList = getOtherServices();
|
|
12598
12617
|
const databaseList = getDatabaseTools();
|
|
12599
12618
|
p22.intro(`${color7.bgCyan(color7.black(` Popina CLI - list `))}`);
|
|
12600
12619
|
p22.log.message(`
|
|
@@ -12607,6 +12626,9 @@ ${color7.bold("Web Applications:")}`);
|
|
|
12607
12626
|
${color7.bold("Documentations:")}`);
|
|
12608
12627
|
printAppsList(docList);
|
|
12609
12628
|
p22.log.message(`
|
|
12629
|
+
${color7.bold("Background services:")}`);
|
|
12630
|
+
printAppsList(otherList);
|
|
12631
|
+
p22.log.message(`
|
|
12610
12632
|
${color7.bold("Database tools:")}`);
|
|
12611
12633
|
printAppsList(databaseList);
|
|
12612
12634
|
p22.outro(
|