@distributionos/cli 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distributionos/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "DistributionOS repo setup CLI for agent onboarding and first-party analytics.",
5
5
  "homepage": "https://distributionos.dev",
6
6
  "repository": {
@@ -4,7 +4,9 @@ import path from 'node:path';
4
4
  export async function buildInitializationPayload(plan, options = {}) {
5
5
  const appName = titleFromPackageName(plan.repo.packageJson?.name ?? plan.appId);
6
6
  const docs = await readProjectDocs(plan.cwd);
7
- const publicBlogRoute = plan.repo.routes.find(route => route === '/blog' || route.startsWith('/blog/'));
7
+ const routes = plan.repo.routes ?? [];
8
+ const publicBlogRoute = routes.find(route => route === '/blog' || route.startsWith('/blog/'));
9
+ const routePrivacy = plan.repo.routePrivacy ?? { allowed: [], blocked: [], review: [] };
8
10
  const appIdentity = {
9
11
  name: appName,
10
12
  };
@@ -19,6 +21,12 @@ export async function buildInitializationPayload(plan, options = {}) {
19
21
  frameworks: [plan.repo.framework].filter(value => value && value !== 'unknown'),
20
22
  languages: ['TypeScript', 'JavaScript'],
21
23
  packageManagers: [plan.repo.packageManager].filter(value => value && value !== 'unknown'),
24
+ routes: routes.slice(0, 80),
25
+ routePrivacy: {
26
+ allowed: (routePrivacy.allowed ?? []).slice(0, 40),
27
+ blocked: (routePrivacy.blocked ?? []).slice(0, 40),
28
+ review: (routePrivacy.review ?? []).slice(0, 40),
29
+ },
22
30
  notableFiles: [
23
31
  'package.json',
24
32
  ...plan.repo.layoutCandidates,