@distributionos/cli 0.1.14 → 0.1.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/package.json +1 -1
- package/src/bootstrap.js +19 -12
- package/src/cli.js +4 -3
- package/src/constants.js +1 -1
- package/src/plan.js +1 -1
package/package.json
CHANGED
package/src/bootstrap.js
CHANGED
|
@@ -26,11 +26,17 @@ export function buildLocalBootstrapBlock(version = CURRENT_BOOTSTRAP_VERSION, ap
|
|
|
26
26
|
'',
|
|
27
27
|
'Hard preflight: before editing files, creating assets, generating images, or changing copy for SEO, blog, launch, content, visual asset, competitor, social, email, or growth work, fetch the current instructions from DistributionOS:',
|
|
28
28
|
'',
|
|
29
|
-
instructionCall,
|
|
30
|
-
'',
|
|
31
|
-
'This preflight applies even when the user does not mention DistributionOS by name. Do not start from local repo files alone for those tasks.',
|
|
32
|
-
'',
|
|
33
|
-
'
|
|
29
|
+
instructionCall,
|
|
30
|
+
'',
|
|
31
|
+
'This preflight applies even when the user does not mention DistributionOS by name. Do not start from local repo files alone for those tasks.',
|
|
32
|
+
'',
|
|
33
|
+
'If the user asks about DistributionOS analytics, context, setup state, or connection checks and DistributionOS tools are not visible, do not inspect unrelated dashboards or repos. Tell the user to restart or reconnect the agent session from this app repo and approve the DistributionOS MCP server.',
|
|
34
|
+
'',
|
|
35
|
+
'If only DistributionOS authentication tools are visible, authenticate first, wait for the user to approve OAuth in the browser, complete authentication, then call check_distributionos_connection, get_agent_instructions, and the task-specific tool such as get_analytics_summary.',
|
|
36
|
+
'',
|
|
37
|
+
'If MCP remains unavailable, ask before using an API-key fallback. Never write API keys into tracked files, repo instructions, committed MCP config, README, or logs.',
|
|
38
|
+
'',
|
|
39
|
+
'For existing blog posts or DistributionOS artifacts, fetch the artifact/context first. Use DistributionOS image/media workflows before local image tools.',
|
|
34
40
|
'',
|
|
35
41
|
'When you create a plan, strategy, roadmap, campaign, content ideas, keyword priorities, or next-step recommendations, save it to DistributionOS as proposed work for review before executing.',
|
|
36
42
|
'',
|
|
@@ -94,13 +100,14 @@ export function getBootstrapAction(instructionFiles, recommendedBlock) {
|
|
|
94
100
|
|
|
95
101
|
export function buildFallbackMcpInstructions(appId) {
|
|
96
102
|
return [
|
|
97
|
-
`App ID: ${appId}`,
|
|
98
|
-
`DistributionOS MCP server: ${MCP_SERVER_URL}`,
|
|
99
|
-
'Use OAuth sign-in when prompted, then call get_agent_instructions and submit_initialization_context.',
|
|
100
|
-
'If
|
|
101
|
-
'
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
`App ID: ${appId}`,
|
|
104
|
+
`DistributionOS MCP server: ${MCP_SERVER_URL}`,
|
|
105
|
+
'Use OAuth sign-in when prompted, then call get_agent_instructions and submit_initialization_context.',
|
|
106
|
+
'If only DistributionOS authentication tools appear, authenticate first, wait for the user to approve OAuth, then complete authentication before calling any other DistributionOS tool.',
|
|
107
|
+
'If OAuth is unavailable, create an app-scoped write API key in DistributionOS and expose it only as DISTRIBUTIONOS_API_KEY for the command invocation.',
|
|
108
|
+
'Never write the API key into AGENTS.md, CLAUDE.md, README, committed MCP config, or any tracked file.',
|
|
109
|
+
];
|
|
110
|
+
}
|
|
104
111
|
|
|
105
112
|
function shellToken(value) {
|
|
106
113
|
if (/^[a-zA-Z0-9._:-]+$/.test(value)) return value;
|
package/src/cli.js
CHANGED
|
@@ -587,9 +587,10 @@ function formatApplyResult(plan, changes, initialization, validation, inspection
|
|
|
587
587
|
'- Open this DistributionOS review page now:',
|
|
588
588
|
` ${reviewUrl}`,
|
|
589
589
|
'- If .mcp.json was created or updated, restart or reconnect your agent session so it can load the DistributionOS MCP server.',
|
|
590
|
-
'- On the review page, copy the
|
|
591
|
-
'- DistributionOS
|
|
592
|
-
'-
|
|
590
|
+
'- On the review page, copy the tool-list prompt first so your agent can show whether DistributionOS MCP loaded.',
|
|
591
|
+
'- If your agent only sees DistributionOS authentication tools, copy the auth prompt from the review page and complete OAuth before continuing.',
|
|
592
|
+
'- Then copy the verification prompt from the review page and ask your agent to call check_distributionos_connection, get_agent_instructions, and get_analytics_summary.',
|
|
593
|
+
'- DistributionOS will wait for a successful app-scoped MCP call before you continue to Brain Doc review.',
|
|
593
594
|
'- After review, come back to this repo and inspect git diff before committing, pushing, or deploying.',
|
|
594
595
|
);
|
|
595
596
|
} else {
|
package/src/constants.js
CHANGED
|
@@ -6,7 +6,7 @@ export const CLI_PACKAGE_NAME = '@distributionos/cli';
|
|
|
6
6
|
export const CLI_LOCAL_VERSION = typeof cliPackageJson.version === 'string' ? cliPackageJson.version : '0.0.0-local';
|
|
7
7
|
export const DEFAULT_API_BASE = 'https://distributionos.dev';
|
|
8
8
|
export const MCP_SERVER_URL = 'https://distributionos.dev/api/mcp';
|
|
9
|
-
export const CURRENT_BOOTSTRAP_VERSION = '2026.06.
|
|
9
|
+
export const CURRENT_BOOTSTRAP_VERSION = '2026.06.18';
|
|
10
10
|
export const CURRENT_ANALYTICS_CONTRACT_VERSION = '2026.06.14';
|
|
11
11
|
export const CURRENT_SETUP_CONTRACT_VERSION = '2026.06.18';
|
|
12
12
|
|
package/src/plan.js
CHANGED
|
@@ -201,7 +201,7 @@ function nextStepLines(plan) {
|
|
|
201
201
|
lines.push(
|
|
202
202
|
'',
|
|
203
203
|
'DistributionOS expects to edit only the managed agent instruction block, supported analytics layout, and non-secret project MCP config. Review git diff before committing or deploying.',
|
|
204
|
-
'After apply, return to the DistributionOS onboarding page. It will wait for a real MCP
|
|
204
|
+
'After apply, return to the DistributionOS onboarding page. It will show the exact restart, auth, and verification prompts and will wait for a real MCP call before letting you continue.',
|
|
205
205
|
);
|
|
206
206
|
|
|
207
207
|
return lines;
|