@distributionos/cli 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -6,7 +6,7 @@ Installer for connecting an app repo to DistributionOS.
6
6
  npx @distributionos/cli setup --app <appId>
7
7
  ```
8
8
 
9
- Default setup opens the DistributionOS MCP OAuth approval flow when needed, then prints a plan first. In an interactive terminal, approve the plan to apply the managed setup changes. In non-interactive agent runs, use `--apply` only after reviewing the dry-run output.
9
+ Default setup opens the DistributionOS MCP OAuth approval flow when needed, then prints a setup review first. In an interactive terminal, approve the plan to apply the managed setup changes. In non-interactive agent runs, use `--apply` only after reviewing the setup output.
10
10
 
11
11
  Agents that support installable skills can also load the public DistributionOS agent skill before using the CLI:
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distributionos/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "DistributionOS repo setup CLI for agent onboarding and first-party analytics.",
5
5
  "homepage": "https://distributionos.dev",
6
6
  "repository": {
package/src/constants.js CHANGED
@@ -48,9 +48,11 @@ export const PRIVATE_ROUTE_PATTERNS = [
48
48
  '/products/**',
49
49
  '/project/**',
50
50
  '/projects/**',
51
- '/workspace/**',
52
- '/workspaces/**',
53
- '/customer/**',
51
+ '/workspace/**',
52
+ '/workspaces/**',
53
+ '/workflow/**',
54
+ '/workflows/**',
55
+ '/customer/**',
54
56
  '/customers/**',
55
57
  '/client/**',
56
58
  '/clients/**',
@@ -129,16 +129,31 @@ async function readProjectDocs(cwd) {
129
129
  return {};
130
130
  }
131
131
 
132
- function extractOverviewExcerpt(text) {
133
- const normalized = text.replace(/\r\n/g, '\n');
134
- const overviewIndex = normalized.search(/(^|\n)#{1,3}\s+(Project Overview|Overview|Solution|What it does)\s*\n/i);
135
- const source = overviewIndex >= 0 ? normalized.slice(overviewIndex) : normalized;
136
- return source
137
- .split(/\n{2,}/)
138
- .map(block => block.replace(/^#{1,6}\s+[^\n]+\n?/, '').trim())
139
- .find(block => block.length >= 80 && !/secret|api key|environment variables/i.test(block))
140
- ?.slice(0, 700) ?? null;
141
- }
132
+ function extractOverviewExcerpt(text) {
133
+ const normalized = text.replace(/\r\n/g, '\n');
134
+ if (isScaffoldReadme(normalized)) {
135
+ return null;
136
+ }
137
+ const overviewIndex = normalized.search(/(^|\n)#{1,3}\s+(Project Overview|Overview|Solution|What it does)\s*\n/i);
138
+ const source = overviewIndex >= 0 ? normalized.slice(overviewIndex) : normalized;
139
+ return source
140
+ .split(/\n{2,}/)
141
+ .map(block => block.replace(/^#{1,6}\s+[^\n]+\n?/, '').trim())
142
+ .find(block => block.length >= 80 && !/secret|api key|environment variables/i.test(block) && !isScaffoldReadme(block))
143
+ ?.slice(0, 700) ?? null;
144
+ }
145
+
146
+ function isScaffoldReadme(value) {
147
+ const text = value.toLowerCase();
148
+ return [
149
+ 'this is a [next.js]',
150
+ 'bootstrapped with [`create-next-app`]',
151
+ 'next.js documentation',
152
+ 'learn next.js',
153
+ 'deploy on vercel',
154
+ 'you can start editing the page by modifying',
155
+ ].filter(needle => text.includes(needle)).length >= 2;
156
+ }
142
157
 
143
158
  function routeReference(route, files) {
144
159
  if (route === '/blog' && files.includes('src/app/blog/page.tsx')) return 'src/app/blog/page.tsx';
package/src/plan.js CHANGED
@@ -39,7 +39,7 @@ export async function createSetupPlan(options) {
39
39
  return {
40
40
  appId,
41
41
  cwd,
42
- mode: options.apply ? 'apply' : 'dry-run',
42
+ mode: options.apply ? 'apply' : 'review',
43
43
  packageName: CLI_PACKAGE_NAME,
44
44
  futureCommand: buildSetupCommand(appId),
45
45
  localCommand: `npm run cli:setup -- --app ${appId}`,